Resize your VMWare Disks on CentOS

  1. Modify you VM settings and increase the hard disk size for example add an additional 10GB.
  2. Boot system
  3. Run fdisk and recreate partition #2
  4. fdisk /dev/sda2
    1. Issue the following commands
    2. D
    3. 2
    4. N
    5. P
    6. 2
    7. <enter>
    8. <enter>
    9. t
    10. 2
    11. 8e
    12. w
  5. Reboot System
  6. lvm pvresize /dev/sda2
  7. lvm pvdisplay # Take a note of the free PE (physical extents)
  8. lvm vgchange -a y
  9. lvm lvdisplay  # Take a note of logical volume
  10. lvm lvextend -l +320 /dev/VolGroup00/LogVol00
  11. resize2fs /dev/VolGroup00/LogVol00

You will need to tweak as  you go along.  In some examples above on the web, some people don’t do any reboot after step 4, but I needed to do a reboot.  Also after step 9ome people run an e2fsck, when ever I did this step 10 failed


  1. Hello,

    Could you please contact me at I could use some help with a dedicated server?

    Thanks a lot.


Post a Comment

Popular posts from this blog

ActiveMQ, easy to use open source message oriented middleware (MOM)

Basic Send Message to MQ with Java and IBM MQ JMS

Apache Apollo