Thursday, April 15, 2010

Expanding Windows System NTFS Partitions in ESX

1. Shut down VM
2. Increase disk size in VIC or via command line with

#vmkfstools -X

#vmkfstools -X 30G /vmfs/volumes/datastore_name/vm_name/vm_name.vmdk


3. Boot off Windows 2008 CD
4. At welcome screen choose "Next"
5. Choose "Repair Your Computer"
6. Choose "next"
7. Choose "Command Prompt"
8. At dos prompt, type: diskpart
9. Type: list volume
10. Type: select volume 1
11. Type: extend
12. Type: list volume
13. Type: exit
14. Type: exit
15. Choose "restart"

Reference: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1007266
KB Article: 1007266

2 comments:

  1. A great reason to use a dedicated system partition on VMs and put your data on a seperate partition. Windows 2008 lets you extend a non-system partition while windows is running from Disk Manager -- 2003 can do it too, but from the cli.

    ReplyDelete
  2. Thanks for the advice Ben. The system we did this on has 2 dedicated volumes, one for data and one for the system like you suggested. However, the machine was not originally provisioned for production and did not have a system partition big enough to accommodate what we were trying to accomplish.

    ReplyDelete