Increase CentOS 6.2 hard drive space / partition

Increase CentOS 6.2 hard drive space / partition / VMWare

To increase the hard drive space, first increase the hard drive size in VMWare.

fdisk /dev/sda
p
n, p, enter, enter
p (to verify new partition)
w
reboot
pvcreate /dev/sda5 # <-- modify sda3 to the last sda

vgdisplay
vgextend vg_mail /dev/sda5  # <-- modify sda3 to the last sdan
lvextend /dev/vg_mail/lv_root /dev/sda5 # <-- modify sda3 to the last sdan
resize2fs /dev/vg_mail/lv_root
reboot
df -h