User Tools

Site Tools



en:linux:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:linux:start [2024/04/07 19:07] – [LVM] franken:linux:start [2024/04/07 19:40] (current) – [LVM] frank
Line 410: Line 410:
 https://wiki.debian.org/LVM#Create_a_PV https://wiki.debian.org/LVM#Create_a_PV
  
 +prepared initrd
 <code> <code>
 +  apt install initramfs-tools
 +  kernelversion=$(uname -r)
 +  echo $kernelversion
 +  zcat /proc/config.gz > /boot/config-$kernelversion
 +  less /boot/config-$kernelversion
 +  update-initramfs -k $kernelversion -c
 +</code>
 +
 +<code>
 +root@bpi-r3-mini:~# apt install lvm2
 root@bpi-r3-mini:~# fdisk /dev/nvme0n1 root@bpi-r3-mini:~# fdisk /dev/nvme0n1
 #changed type of partition 3 to lvm #changed type of partition 3 to lvm
Line 438: Line 449:
   VG UUID               w22Wdx-Fhch-YNsA-roWh-Zq81-qv0R-d5fnvw                     VG UUID               w22Wdx-Fhch-YNsA-roWh-Zq81-qv0R-d5fnvw                  
                                                                                                                                                                  
 +root@bpi-r3-mini:~# lvcreate -n var -L 10g vg-nvme                              
 +  Logical volume "var" created.
 +root@bpi-r3-mini:~# mkfs -t ext4 /dev/vg-nvme/var
 +root@bpi-r3-mini:~# mount /dev/mapper/vg--nvme-var /var_lvm
 +[ 5279.856899] EXT4-fs (dm-0): mounted filesystem 520d434d-fdfc-48f3-823d-77e602
 +7e84e7 r/w with ordered data mode. Quota mode: disabled.
 root@bpi-r3-mini:~# root@bpi-r3-mini:~#
 </code> </code>
  
en/linux/start.1712509638.txt.gz · Last modified: 2024/04/07 19:07 by frank