Just a quick cheatsheet for increasing disk sizes for my TrueNAS scale VMs with debian os and lvm.
- Make sure you created a snapshot!
- Stop VM
- Increase ZVOL
- Start VM
-
lsblk=> Check new size of /dev/sda -
fdisk /dev/sda-
p(print) - Copy partition row
-
d(delete) -
n(new) - - KEEP lvm signature!
-
t(change type) => 30 for Linux LVM -
p(print again) - Compare row (startbytes, size, type) with row from above
-
w(write changes)
-
- Reboot VM
-
pvresize /dev/sdaX(Replace X with actual number) -
pvs=> Check -
lvs=> Get VG and LV lvresize -l +100%FREE /dev/<VG>/<LV>resize2fs /dev/<VG>/<LV>- Reboot VM
Top comments (0)