HOWTO:LVM

Da Helpedia.

Espansione LVM su due dischi (a+b)

fdisk /dev/sdb and select n for new partition, p for primary, partition #1, then press t to change the type, and hit L to list the types, one of the types will be Linux LVM. ender the 2 digit code for it create the lvm on /dev/sdb1 with pvcreate /dev/sdb1 extend the lvm onto sdb1 with vgextend pve /dev/sdb1 now increase the size of the lvm with lvextend --size +10GB -n /dev/mapper/pve-data and keep repeating until you get an error about not enough blocks, then do it in 1GB increments until you can't extend anymore. now you need to resize the ext3 filesystem with resize2fs /dev/mapper/pve-data

then do a df -h to see your new drive space.

note

pvscan mostra lo spazio disponibile sui dischi fisici


Espansione LVM2 su partizioni differenti

fdisk -l
fdisk
pvcreate /dev/sda3
pvdisplay
vgdisplay
vgextend vg_computersoftware01 /dev/sda3
vgdisplay 
lvextend -L+30GB /dev/vg_computersoftware01/lv_root
resize2fs /dev/vg_computersoftware01/lv_root
Strumenti personali
Namespace
Varianti
Azioni
Navigazione
Strumenti