- Enlarge the disk using fdisk
-
fdisk -l
(to see the partition layout, typically we're dealing with /dev/sda2) fdisk /dev/sda
-
d
(delete a partition) -
2
(if the part we want to grow is /dev/sda2; note this does not delete any data on disk) -
n
(create a new partition) -
p
(primary partition) 2
-
<return>
(default starting block, typically 14 since swap is first) -
<return>
(default ending block, full size of the partition) - make sure partition type is 8e for Linux LVM
t
8e
-
w
(write changes to disk)
-
- reboot to get new partition table
pvresize /dev/sda2
-
pvscan
should show new larger size -
lvextend -l +100%FREE /dev/vg_centos6/lv_root
(-L +10G to add 10GB is another option) resize2fs /dev/vg_centos6/lv_root
-
df
should show new free space
From:http://superuser.com/questions/335038/how-do-you-add-more-space-to-a-fedora-lvm-partition