I must have extended 30 server C: drives. To the point where I feel like I am the master. It is very simple in the virtual world, but always be cautious and make backups. With that said let me take you through some quick steps.
STEP 1: Make a backup or take a snapshot.
STEP 2: Shut down the VM that you want to extend the C or /boot drive on.
STEP 3: Edit Settings in the VM and click on the hard drive you want to give extra space to. Then append 10-20 (whatever) Gigs to the drive and then click ok. You will see vCenter progress back complete with success. **Note the datastore location of the VMDK**
STEP 4: With the server still shut down, add the server to another existing server. I like to use a 2008 server since we can extend it through the GUI. However, I will show both ways with command line as well.
——-2008 – Right click my computer and click manage. (+) Expand Storage – Then click on Disk Management. From here you will notice your drive has the free space. Just right click on the drive and hit Extend. From here it should be a Next – Next thing. If it stops you with the next, just adjust the MB down one number and then take it back to make sure you get all MB’s.
——-2003 or CMD – Right click my computer and click manage. Right click disk manager and rescan the disks. Once you can see the disk, open up a command prompt. Type in “diskpart”. This should start up the diskpart program from within your C:\windows\system32. If it doesn’t, then you may want to install the admin tools on that machine. Next you want to type “List vol”. This will list all the corresponding volumes of HDD on that particular server. Hopefully, you will see the one with the space you desired. Beside that volume will be a number. Then just type “Select Vol (?)”. Obviously the ? will be the volume number you recently found. Then just type “extend”. You should get a successful response if all went well.
Step 5: Remove the HDD from the server you added it to. Make sure not to click Remove and Delete *duh. This would be very, very bad.
Step 6: Power on your newly extended VM.
If for some reason you were to get a error message like Windows Boot Failed – 0xc000000e Attach a 2008 server cd and then Boot from it. Click on Recover. Open up a command prompt and use the following commands. cd boot bootsect /nt60 c: /force /mbr bootrec /rebuildbcd Answer Yes to the following question to complete the rebuild. Then just restart the server.