Link to home
Start Free TrialLog in
Avatar of gtapcs
gtapcs

asked on

I need to extend the OS drive on a MS virtual server virtual machine

Hello everyone,

I've been given the task of extending the volume of a boot drive on a Microsoft virtual server VM. I have used VHD resizer to extend but when I use diskpart.exe in the VM i get an error that I can't extend a boot drive. Please assist, I can add another drive but I need the boot drive expanded.
Avatar of David Brennan
David Brennan
Flag of Ireland image

What about a free bootable ISO that resizes the partition while the system is offline -
http://www.partitionwizard.com/

Or is downtime a major issue for this VM ?
ASKER CERTIFIED SOLUTION
Avatar of David Brennan
David Brennan
Flag of Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gtapcs
gtapcs

ASKER

I will give Gparted a try, I will let you know of the results.
Make sure to backup VM beforehand!
Avatar of kevinhsieh
There is a safe easy way to do this. Shut down the VM and edit the VHD to expand it to the new size. Attach the VHD to another Windows VM and use Disk Manager or diskpart.exe to expand the partition. Shut down that VM, disconnect the VHD, and boot the original VM.

I have done this many times, and you don't need to use the same version of Windows to expand the partition as what was running. I have used XP to expand the partition of a 2003 R2 server.
Avatar of gtapcs

ASKER

I've already tried the solution provided by kevinhsieh and it doesn't work for me :(
Which part failed, because it has worked for me every time with no issues.
Avatar of gtapcs

ASKER

I've added the resized disk to a vm, but when I go to disk management it says foreign disk and I can't import it.
Is the disk basic or dynamic? Which OS if the disk from, and which OS are you mounting it on?
Avatar of gtapcs

ASKER

its a dynamic disk. The OS is server 03 and the OS is the same. Theyre actual the exact same disks
Okay, I hate dynamic disks and I always recommend not using them unless that is the ONLY way to get to where you need to go. A dynamic disk needs to be imported under Disk Management before you can do anything with it. You should be able to do that on the new VM, and then extend the partition. I would backup the VHD before doing it, though.

Avatar of gtapcs

ASKER

Thats the problem. It won't let me import it.
Can you take screen shot of your Windows Disk Management and post it here?
Paragon Partition Manager 11 Server Edition can convert dynamic drives into basic without dataloss and then let you resize the partitions on basic HDD. www.partition-manager.com
Worked for me always.
Avatar of gtapcs

ASKER

Sorry, I need a free solution
have you tried gParted ?
Avatar of gtapcs

ASKER

No, I haven't. I will hopefully try today.
Obviously you will have to boot the VM but use the ISO as CD drive and boot that. But I'm sure you already knew that. Make sure to backup first.
Gparted will not run on dynamic drives.
fair enough
I am starting to think that the only way to do this is to convert to a basic disk. The 15 day trial from Acronis may do the trick to backup the VM and and then restore to a basic disk.

http://www.acronis.com/backup-recovery/server-windows/
You can convert the drive to Basic by editing sectors of the drive but this operation is potentially dangerous. If you have backup already and ready to risk then I can guide you through the process. And it will be free as you wish.
Good idea noxcho! Backing up a VHD is very easy, so it's not risky like it is for a physical disk. Just shut down the VM and copy the VHD in case it blows up.

Here's a link to some instructions.

http://www.wilderssecurity.com/showthread.php?t=191006
Avatar of gtapcs

ASKER

i still haven't tried these solutions. But does anyone know if this can be done using a V2V in Hyper-v?
Dynamic drive is your trap. Get yourself out of it first.
Avatar of gtapcs

ASKER

I was able to convert the disk to a basic volume. Now I have 2 partitions and need to merge them into one.
What OS is used?
Avatar of gtapcs

ASKER

Win2003 Standard
If you have place to copy out data from second partition then copy it out. Delete second partition.
Then boot from Gparted CD - run partitioner there - right click on first parttiion - resize - drag the end to right. Apply changes. In few seconds resize will be done.
This operation is more save than merge.
What is there with your partitions? They have no file system and you could hardly read data on them.
Avatar of gtapcs

ASKER

I am trying to merge the 17gb of space on disk volume 1 with the 19.99gb of space on the same volume.
So there is no data on both 17GB and 19GB drives?
Avatar of gtapcs

ASKER

Theres data on the 19gb and nothing on 17gb. Im trying to extend the 19gb to include the 17gb for a total of 36gb
But you see both are now having problems. Are you able to browse 19GB partition and see your data?
Avatar of gtapcs

ASKER

Yes i can see what's in the 19gb. I just need the drives to be 1
Avatar of gtapcs

ASKER

As you can see they are listed as 2 seperate partitions
Ok, copy out data from 19GB partition. Then delete both 19Gb and 17GB drives in Disk Management.
After that create single partition of the 36GB from the free space via same Windows Disk Management.
Avatar of gtapcs

ASKER

But the 19gb is a copy of the system partition. Will I be able to boot from the partition if I use that method?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gtapcs

ASKER

I have properly stated in my question that I would like to extend the boot drive. I will look into this method.
Sorry, according to your screen shot it was not listed as boot drive. Backup and recovery with trial version will work for sure. Don;t forget to delete both 19 & 17GB partitions before you restore the image.
Avatar of gtapcs

ASKER

Ok. Will try and I let you know the results.
Avatar of gtapcs

ASKER

Do I have to install this software on the host or the guest machine?
If the drive is in guest machine then install it in guest OS. If the drive is in host machine then install the SW in Host OS.
Avatar of gtapcs

ASKER

Thanks. I will try this and let you know the results.
Avatar of gtapcs

ASKER

I tried it and it doesn't work. Im not able to boot from the restored drive
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gtapcs

ASKER

Im not getting any errors, it just wont boot into the os. I've given up and will just migrate this machine to our esx host and extend it that way. This seems to be the easiest method.
Avatar of gtapcs

ASKER

Only a partial solution. I will have to use another method to accomplish my goal