Hello!
the initial hard disk size for a VM running RHEL5 was 20 GB and now I need to extend it somehow, so I opened up the VMware Infrastructure Client, edited the VM's properties and set a new size to 40 GB.
Now I have a 40 GB hard disk on the datastore that can't be seen by the guest OS so my question is how to add those 40 GB to the existing virtual disk.
If it's not possible, is it safe to just delete de 40 GB-virtual disk from the datastore and start over? Which would be the right procedure?
TIA,
Martin
see this link for guides on how to extend your vm's disk files
Hello Martin
From you text i guess you have VC 2.5: is the easyest way to expand a HD
Windows System:
start -> run ->diskpart-> select disk x -> select volume x -> expand
Linux System (i am not expert on this OS)
lvextend -L5410M /dev/VolGroup00/LogVol00 -> you should deep inside the correct command line to expand the partition.
Regards
actually the idea now is to remove the 40 GB virtual disk and get back to the initial 20 GB... is it possible at all?
TIA,
Martin
shrinking a disk is probably better done using VMware vCenter Converter Standalone 4.0
if you havent run the expand disk in the OS im pretty sure you can change the size of the disk back to its original size if the change was only made in VC.
hi,
that was my first (natural) step... to set back the size to 20 GB but the VC won't allow me to change it and it stays at 40 GB always... therefore my post
the tool can't retrieve the hardware information form the ESXi... hmmm... ideas? maybe need to open some ports? which ones?
TIA
You can't shrink disks using VC, too much chance of corruption of you shrink past a partion boundary. You used to be able to do it in ESX 2.5 at the command line, but that's when I found out about crossing the partion boundary, the hard way.
There is limited support for Linux in the converter products so you may run into issues trying to get that to work. If you have data to save I would say create a 20 GB disk attached to the machine and mount it, copy your data and then delete the 40 GB disk after you power down. You may have to change the disk number in the VM settings so the new 20 GB drive matches the old 40 GB designation (probabaly scsi0:0)
Tom Cronin, VCP, VMware vExpert 2009 - Co-Leader Buffalo, NY VMUG
during all this grow/shrink/migration procedure something went wrong and my .vmdk files are gone so the VM won't come start up anymore due to a missing file...
I'm now following these steps http://www.itexperience.net/2008/03/03/howto-recreate-vmdk-files/ hoping to save my ass before going home...
odd to reply to myself...
just wanted to add that the steps decribed on the link above will result in an empty VM... everything is lost. It's a nice exercise though...
Anyway, as now everything is ruined is better to delete the old VM, forget it and start from scratch.
my 2 cents...