Allargare un file system su un Logical Volume Linux

– Aggiungere un HD al server
– Riavviare il server in maniere che veda il disco
– fdisk -l verficare il nome del device nel mio caso /dev/sdc
– vgdisplay e verficare il nome del volume group nel mio caso VolGroup00
– pvcreate /dev/sdc
– vgextend VolGroup00 /dev/sdc

Con il seguente commando estendo il logical volume

[root@xxxxxx ~]# lvextend -L+10G /dev/VolGroup00/LogVol01
Extending logical volume LogVol01 to 33.81 GB
Logical volume LogVol01 successfully resized

E con il seguente commando allargo il file system senza fare l'umount

ext2online -d -v /var

Allargare un file system su un Logical Volume Linux

Leave a Reply

Your email address will not be published. Required fields are marked *