To expand VMDK and extend a partition:
Log into the VMware ESX/ESXi host as the root user. Verify that the virtual machine does not have any snapshots by going into the virtual machine's directory and looking for Delta files. Run the command:
#ls -lah /vmfs/volumes/datastore_na
-rw------- 1 root root 1.8G Oct 10 10:58 vm_name-000001-delta.vmdk
Note: For more information on logging into the ESX/ESXi, see the following:
For more information on VMware ESX Service Console, Unable to connect to an ESX host using Secure Shell (SSH) (1003807)
For more information on VMware ESXi Technical Support Mode, Tech Support Mode for Emergency Support (1003677)
For more information on VMware ESXi 4.1 and ESXi 5.0 Technical Support Mode, Using Tech Support Mode in ESXi 4.1 and ESXi 5.x (1017910)
If the virtual machine does have snapshots, commit them using these commands:
#vmware-cmd -l /vmfs/volumes/datastore_na
me/vm_name /vm_name.v mx
me/vm_name /vm_name.v mx removesnapshots removesnapshots() = 1
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.