How do I increase VM hard drive size in ESXi 4.0 ??

Tyson0317
Tyson0317 used Ask the Experts™
on
We have a new VMWare ESXi 4.0 server and one of the things that we used to be able to do in 3.5 was alter the size of the HD on the VM after the VM was created. You could not make it smaller, but you could make it larger... Now the Size window is always greyed out... What gives?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
Have you tried with the virtual machine off?
nappy_dThere are a 1000 ways to skin the technology cat.

Commented:
What is the current size of the drive?

What is the current block size in use by the VMFS volume?

Author

Commented:
Yes we tried with the VM off.

The current size is 10GB

I dont know how to look up block size, but it is whatever the default is - we didnt not change it.

Thanks,

T
Success in ‘20 With a Profitable Pricing Strategy

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

za_mkhIT Manager

Commented:
Do you have any snapshots for the VM. That normally prevents the disk from being expanded.

Author

Commented:
Nope. I know the snapshot thing too... No Snapshots.
Top Expert 2009
Commented:
Ensure you have space on the datastore before extending vmdk size
You can also use vmkfstools to extend the vmdk size
Stop the VM
SHH or login to console and run the following command to extend the vmdk to new capacity, eg. 100GB
vmkfstools -X 100G /vmfs/volumes/your_datastore/your_vm/vm01.vmdk
Start the VM
Extend accordingly in guest OS

Author

Commented:
Ryder, I hoped there would be a way to do it in vSphere - kindda stupid that functionality that was there in the previous version is now gone. But I guess that seems to be the trend now-a-days with Microsoft leading the way...

Thanks for the workaround - I will give it a try when I get SSH enabled on that box...
Top Expert 2009

Commented:
Actually you can in vSphere as well especially virtual disk with scsi controller
Perhaps you have this issue for ide disk?
Well, knowing command line is always helpful :)

Author

Commented:
The physical server is an HP DL360G6 with the p410i controller and 2 SATA drives on a mirror RAID...
Top Expert 2009

Commented:
I'm talking about the VM disc controller or disk type

Author

Commented:
Buslogic? And the "Virtual Device Node" reads IDE (0:0) Hard Disk 1
Top Expert 2009

Commented:
Yup that could be the issue

Author

Commented:
Alright, with the SCSI it does let us change the size... Dang! Wonder if I can re-make my existing machines without trashing them...

Author

Commented:
Does not look like there is a way to change this once the machine is already created... Any ideas?
Top Expert 2009

Commented:
What OS is that? You can do V2V using vmware converter and select scsi controller
http://www.vmware.com/products/converter/

Author

Commented:
XP Pro 32. I'll check out that article. Thanks.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial