Resize your VMWare Disks on CentOS
- Modify you VM settings and increase the hard disk size for example add an additional 10GB.
- Boot system
- Run fdisk and recreate partition #2
- fdisk /dev/sda2
- Issue the following commands
- D
- 2
- N
- P
- 2
- <enter>
- <enter>
- t
- 2
- 8e
- w
- Reboot System
- lvm pvresize /dev/sda2
- lvm pvdisplay # Take a note of the free PE (physical extents)
- lvm vgchange -a y
- lvm lvdisplay # Take a note of logical volume
- lvm lvextend -l +320 /dev/VolGroup00/LogVol00
- 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
Hello,
ReplyDeleteCould you please contact me at info@techpros.ie I could use some help with a dedicated server?
Thanks a lot.
Rathnam