• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 443
  • Last Modified:

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.
0
gtapcs
Asked:
gtapcs
  • 23
  • 14
  • 7
  • +1
3 Solutions
 
David BrennanSenior Integration EngineerCommented:
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 ?
0
 
David BrennanSenior Integration EngineerCommented:
Actually the server edition isn't free and I'm not sure if the home version will suit your needs. GParted is a fully free open source solution - http://gparted.sourceforge.net/
0
 
gtapcsAuthor Commented:
I will give Gparted a try, I will let you know of the results.
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
David BrennanSenior Integration EngineerCommented:
Make sure to backup VM beforehand!
0
 
kevinhsiehCommented:
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.
0
 
gtapcsAuthor Commented:
I've already tried the solution provided by kevinhsieh and it doesn't work for me :(
0
 
kevinhsiehCommented:
Which part failed, because it has worked for me every time with no issues.
0
 
gtapcsAuthor Commented:
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.
0
 
kevinhsiehCommented:
Is the disk basic or dynamic? Which OS if the disk from, and which OS are you mounting it on?
0
 
gtapcsAuthor Commented:
its a dynamic disk. The OS is server 03 and the OS is the same. Theyre actual the exact same disks
0
 
kevinhsiehCommented:
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.

0
 
gtapcsAuthor Commented:
Thats the problem. It won't let me import it.
0
 
noxchoGlobal Support CoordinatorCommented:
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.
0
 
gtapcsAuthor Commented:
Sorry, I need a free solution
0
 
David BrennanSenior Integration EngineerCommented:
have you tried gParted ?
0
 
gtapcsAuthor Commented:
No, I haven't. I will hopefully try today.
0
 
David BrennanSenior Integration EngineerCommented:
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.
0
 
noxchoGlobal Support CoordinatorCommented:
Gparted will not run on dynamic drives.
0
 
David BrennanSenior Integration EngineerCommented:
fair enough
0
 
David BrennanSenior Integration EngineerCommented:
0
 
kevinhsiehCommented:
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/
0
 
noxchoGlobal Support CoordinatorCommented:
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.
0
 
kevinhsiehCommented:
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
0
 
gtapcsAuthor Commented:
i still haven't tried these solutions. But does anyone know if this can be done using a V2V in Hyper-v?
0
 
noxchoGlobal Support CoordinatorCommented:
Dynamic drive is your trap. Get yourself out of it first.
0
 
gtapcsAuthor Commented:
I was able to convert the disk to a basic volume. Now I have 2 partitions and need to merge them into one.
0
 
noxchoGlobal Support CoordinatorCommented:
What OS is used?
0
 
gtapcsAuthor Commented:
Win2003 Standard
0
 
noxchoGlobal Support CoordinatorCommented:
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.
0
 
gtapcsAuthor Commented:
0
 
noxchoGlobal Support CoordinatorCommented:
What is there with your partitions? They have no file system and you could hardly read data on them.
0
 
gtapcsAuthor Commented:
I am trying to merge the 17gb of space on disk volume 1 with the 19.99gb of space on the same volume.
0
 
noxchoGlobal Support CoordinatorCommented:
So there is no data on both 17GB and 19GB drives?
0
 
gtapcsAuthor Commented:
Theres data on the 19gb and nothing on 17gb. Im trying to extend the 19gb to include the 17gb for a total of 36gb
0
 
noxchoGlobal Support CoordinatorCommented:
But you see both are now having problems. Are you able to browse 19GB partition and see your data?
0
 
gtapcsAuthor Commented:
Yes i can see what's in the 19gb. I just need the drives to be 1
0
 
gtapcsAuthor Commented:
As you can see they are listed as 2 seperate partitions
0
 
noxchoGlobal Support CoordinatorCommented:
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.
0
 
gtapcsAuthor Commented:
But the 19gb is a copy of the system partition. Will I be able to boot from the partition if I use that method?
0
 
noxchoGlobal Support CoordinatorCommented:
So your original goal was to move the OS to bigger drive? Then it would be better to give properly formulated question.
Download trial version of Paragon Drive Backup 10 Server: www.drive-backup.com Install it.
Backup your C: drive with it.
Then delete all partitions from this bigger drive.
Restore from backup file to this drive. You can store the backup on network share.
0
 
gtapcsAuthor Commented:
I have properly stated in my question that I would like to extend the boot drive. I will look into this method.
0
 
noxchoGlobal Support CoordinatorCommented:
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.
0
 
gtapcsAuthor Commented:
Ok. Will try and I let you know the results.
0
 
gtapcsAuthor Commented:
Do I have to install this software on the host or the guest machine?
0
 
noxchoGlobal Support CoordinatorCommented:
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.
0
 
gtapcsAuthor Commented:
Thanks. I will try this and let you know the results.
0
 
gtapcsAuthor Commented:
I tried it and it doesn't work. Im not able to boot from the restored drive
0
 
noxchoGlobal Support CoordinatorCommented:
What error do you get when trying to boot from it?
0
 
gtapcsAuthor Commented:
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.
0
 
gtapcsAuthor Commented:
Only a partial solution. I will have to use another method to accomplish my goal
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 23
  • 14
  • 7
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now