VMWare Vsphere 4 VM Disk

Jack_son_
Jack_son_ used Ask the Experts™
on
I have a VM that I am unable to resize the disk space.  This option is greyed out whether it is shut down or powered on.  I have tried moving to a new data store and this did not fix the issue.  Does anyone know an easy way to fix this?
Comment
Watch Question

Do more with

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

Commented:
Hello,

Is there any snapshot for that VM?
Top Expert 2010

Commented:
Is your virtual hard disk an IDE (check VM settings -> SCSI Controller)? If so, look at this KB to change your disk from IDE to SCSI:
http://kb.vmware.com/kb/1016192

Regards,
~coolsport00
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
Is the disk IDE or do you have any snapshots.

IDE disks do not support resize.

If you have an IDE disk, try VMware Converter to Convert your VM to a new VM, resize disk at the same time, and use a SCSI disk for the conversion.

Download VMware vCenter Converter here

http://downloads.vmware.com/d/info/datacenter_downloads/vmware_vcenter_converter_standalone/4_0

VMware vCenter Converter Standalone 4.x Documentation

http://www.vmware.com/support/pubs/converter_pubs.html

VMware vCenter Converter Standalone 4.3 User Guide

http://www.vmware.com/pdf/convsa_43_guide.pdf

For the conversion steps, read fellow Expert Bestway's article.

http://www.experts-exchange.com/Software/VMWare/A_3639-VMware-vConverter-P2V-for-Windows-Servers.html

Best Practice Video Guide here

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1004588
How to Generate Services Revenue the Easiest Way

This Tuesday! Learn key insights about modern cyber protection services & gain practical strategies to skyrocket business:

- What it takes to build a cloud service portfolio
- How to determine which services will help your unique business grow
- Various use-cases and examples

Author

Commented:
i just checked.  this server has 2 drives and both are SCSI
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
Snapshots?
Top Expert 2010

Commented:
do you have snapshots?
Top Expert 2010

Commented:
or maybe even a VM backup job running against your VM?
Top Expert 2010

Commented:
A 'quick fix' for you would be to create a new VM, or just use a non-critical VM already created. Detach the virtual disk from this VM (*DO NOT DELETE IT FROM DISK*). Attach the disk to a 2nd VM. Assuming this is Windows, log into the 2nd VM to make sure the disk is initialized and shows up. Go into the 2nd VM's settings and modify the disk size as needed. Log into Windows again and use diskpart to then modify the partition (see MS KB: http://support.microsoft.com/kb/325590). Once complete, detach this disk from your 2nd VM, then reattach it to your orig VM. Before doing this, if possible, make a backup of the virtual disk (vmdk).

Regards,
~coolsport00

Author

Commented:
it has 1 snapshot

Author

Commented:
can i attach even the primary OS disk to the new vm?  
Top Expert 2010

Commented:
'commit' the snapshot, wait for it to complete (could take a little while depending on its size), then try to resize it....or use my method above....
Top Expert 2010

Commented:
is this a system volume or secondary volume you wanna resize? if system volume, and after you commit the snap your disk is then enabled to resize, you need to use a 3rd party tool like GParted or Paragon to modify the disk partition to the increased size you want (GParted: http://gparted.sourceforge.net/download.php). If a secondary volume, you can simply use Windows diskpart (see my link above) to modify the volume. Or....you can just simply use vCenter Converter as noted above by "hanccocka"
Top Expert 2010

Commented:
Yep...sure can; that's the beauty of that method. Regardless that its a primary volume on 1 VM, when you attach it to a 2nd VM, it automatically becomes a 2nd volume and diskpart can then be used.

Author

Commented:
one question, how do i detach and then re-attach to the new VM?
Top Expert 2010
Commented:
Go into the orig VM's settings (rt-click VM -> Edit Settings). Select the hard disk from the Hardware tab you want to resize (and that seems to be greyed out). Click the Remove button. *CRITICAL - make sure you do NOT select to delete it from disk, but just to remove it from the VM*. Click OK out of the VM's settings. Go into the Settings of the 2nd VM. In the Hardware tab, click the 'Add' button. On the next screen, click hard disk. In the 'Add hard disk' wizard, select to add an existing virtual disk, then browse to the datstore location of the disk you want to resize. Follow my steps above on resizing it. Once the resizing is done, detach the disk from this 2nd VM the same away as just described, then reattach to your 1st/orig VM.

Author

Commented:
Ok, thanks!  This fixed it, I am not sure why all of a sudden I was unable to resize the disk, do you know what causes this to happen?
Top Expert 2010

Commented:
There's several reasons...some of which we covered but seemingly didn't apply. Your disk could have a 'lock' on it by a b/u running against it, the disk is IDE, and snapshot attached to it, causing a lock (which u had).

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