1: Turn off the system which is having the boot volume.
2: Make sure you have a backup copy of your virtual disk, optional.
3: Go into the service console and increase the size of the .dsk or .vmdk virtual disk file.
Code:
[root@esx-mydisk local]# ls -lah mydisk.vmdk
-rw------- 1 root root current_size_of_the_disk mydisk.vmdk
Extend the virtual disk with vmkfstools. The -X switch denotes the size of the file that you want the disk file to be.
Code:
[root@esx-mydisk local]# vmkfstools -X new_size_of_the_disk mydisk.vmdk
View the new size of mydisk.vmdk
Code:
[root@esx-mydisk local]# ls -lah mydisk.vmdk
-rw------- 1 root root new_size_of_the_disk mydisk.vmdk
4: Take a new Virtual Machine with Windows Server 2008 already installed in it. Turn it off and add the disk from the first system to it through the mui. Turn on the second Virtual Machine and make sure the imported disk has unallocated space on it.
Now go to Start - Run and type "diskpart.exe" (also refer Learn how to master the DISKPART command) to enter the command line utility. It will display all the available volumes. Select your volume which you want to extend and then use "extend" command. Make sure you see the changes under the Disk Management snap in.
5: Turn off the second Virtual Machine and take the disk out of the second Virtual Machine. Turn on the first Virtual Machine and see if you can notice the changes in your drive volume.
Bookmarks