And, for a couple of different reasons, I would like to allocate space on the external SSD using the Linux Volume Manager [LVM].
- Is LVM supported by DietPi?
- What are the recommendations for using LVM on DietPi?
TIA,
Code: Select all
dietpi@DietPi:~$ sudo apt install thin-provisioning-tools lvm2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
dmeventd libaio1 libdevmapper-event1.02.1 liblvm2cmd2.03 libreadline5
The following NEW packages will be installed:
dmeventd libaio1 libdevmapper-event1.02.1 liblvm2cmd2.03 libreadline5 lvm2 thin-provisioning-tools
0 upgraded, 7 newly installed, 0 to remove and 1 not upgraded.
Need to get 2,090 kB of archives.
After this operation, 8,324 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Code: Select all
dietpi@DietPi:~$ sudo pvcreate /dev/sda1
WARNING: ext4 signature detected on /dev/sda1 at offset 1080. Wipe it? [y/n]: y
Wiping ext4 signature on /dev/sda1.
Physical volume "/dev/sda1" successfully created.
dietpi@DietPi:~$ sudo vgcreate Rock64 /dev/sda1
Volume group "Rock64" successfully created
dietpi@DietPi:~$ sudo lvcreate -L 100G -n WD500 /dev/Rock64
Logical volume "WD500" created.
dietpi@DietPi:~$ sudo pvs
PV VG Fmt Attr PSize PFree
/dev/sda1 Rock64 lvm2 a-- <465.73g <365.73g
dietpi@DietPi:~$ sudo vgs
VG #PV #LV #SN Attr VSize VFree
Rock64 1 1 0 wz--n- <465.73g <365.73g
dietpi@DietPi:~$ sudo lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
WD500 Rock64 -wi-a----- 100.00g