extend disk space
by maxwell2k19 from LinuxQuestions.org on (#5H181)
Hi All i am new to linux i want to extend disk space on one of the partition.
i want to extend /data from 500 GB to 900GB, so i have added another drive to the VM with 400GB.
root@server01# df -Th
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/vg_test-lv_root ext4 32GB 6.9G 23G 24% /
tmpfs tmpfs 1.9G 280K 1.9G 1% /dev/shm
/dev/sda1 ext4 477M 37M 415M 9% /boot
/dev/mapper/vol1-data1 ext3 493G 471G 17G 97% /data
root@server01# pvs
PV VG Fmt PSize
/dev/sda2 vg_test lvm2 19.51g
/dev/sdb1 vol1 lvm2 499.99g
/dev/sdc vg_test lvm2 16.00g
will the below syntax extend me /data from 500GB to 900GB
I am not clear of the sytnax lvextend please correct me if this is the right syntax. will it take filesystem ext3
pvcreate /dev/sdd
vgextend vol1 /dev/sdd
lvextend -l +100%FREE -r /dev/mapper/vol1-data1


i want to extend /data from 500 GB to 900GB, so i have added another drive to the VM with 400GB.
root@server01# df -Th
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/vg_test-lv_root ext4 32GB 6.9G 23G 24% /
tmpfs tmpfs 1.9G 280K 1.9G 1% /dev/shm
/dev/sda1 ext4 477M 37M 415M 9% /boot
/dev/mapper/vol1-data1 ext3 493G 471G 17G 97% /data
root@server01# pvs
PV VG Fmt PSize
/dev/sda2 vg_test lvm2 19.51g
/dev/sdb1 vol1 lvm2 499.99g
/dev/sdc vg_test lvm2 16.00g
will the below syntax extend me /data from 500GB to 900GB
I am not clear of the sytnax lvextend please correct me if this is the right syntax. will it take filesystem ext3
pvcreate /dev/sdd
vgextend vol1 /dev/sdd
lvextend -l +100%FREE -r /dev/mapper/vol1-data1