VMware Cloud Community
stanj
Enthusiast
Enthusiast

RHEL Disk Size - increase ?

I have a RHEL 5.7 VM running on ESXi 5.0.

The attached screens shows the settings for the VM.

I need to increase the disk size of the data disk which is currently 50GB.

What is the best process to use to up the size from 50GB to 120 GB?

thanks

Reply
0 Kudos
3 Replies
jdptechnc
Expert
Expert

You can increase the size of the disk from the same Virtual Machine Properties screen that you attached to your post.  Then use a partitioning tool like gparted to increase the partition size to use the newly added space on your data disk.

Please consider marking as "helpful", if you find this post useful. Thanks!... IT Guy since 12/2000... Virtual since 10/2006... VCAP-DCA #2222
Reply
0 Kudos
nielse
Expert
Expert

Depending on the layout on RHEL itself you have 2 options:

- The system is LVM based, extending this is very easy and there are quite some guides on the internet

- The system is pure disk based, you can extend the system live with fdisk -l /dev/sdX (where X is the disk) but this might be dangerous. The safest solution is to use a tool like gparted Smiley Happy

@nielsengelen - http://foonet.be - VCP4/5
Reply
0 Kudos
stanj
Enthusiast
Enthusiast

ok,

i increased disk 2 to 200GB and booted gpartition,,but I do not see the 50 GB disk in gpartition that is reported by the df comamnd in RHEL5

see attached screens (last one shows gpartition)

Reply
0 Kudos