Virtual Disk Drives/Partition Issues

I inherited a VMWare server environment where the old admin setup 1 hard disk and split that hard disk into two partitions for the OS Partition and the Data partition. It wouldn't be that bad, however the person only made the OS partition 40 GB and I'm constantly running into disk space issues. Windows will not allow me to extend the partition because it is at the beginning of the virtual disk and when I add more space through vSphere, it only allows to extend the Data partition. Does anyone have any suggestions on either how to actually get the OS partition extended or move it to a new virtual disk that I could add through VMWare? Thanks
TSC SupportAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David Johnson, CD, MVPRetiredCommented:
create a new virtual disk, attach, create new drive (should be drive f: if not just change the reference in the robocopy to the actual drive letter.
copy over the current data disk
robocopy d:\ f:\ /copyall /e /sec /b
change the drive letters using diskmgmt.msc
delete the data partition on the original virtual disk
if the partition d: was a primary partition you are good to expand the current c:
otherwise you have to delete the logical partition as well
TSC SupportAuthor Commented:
Thank you for the post. And this command will keep all current share and ntfs permissions in place for the folders and files on the Data drive?
randomsenseCommented:
Your other option would be to extend the virtual disk in VMware, and then use a 3rd party utility to move the data/extend the partition you want to expand.

GParted or another similar software could be used.
http://gparted.org

When manipulating partitions its always a good idea to have a good backup just in case.

Additionally you could try using a tool like VMware importer to import the machine into another host (possibly same host different datastore; haven't tried this). When going through the options it gives you the opportunity to separate partions into different drives. That would allow you more flexibility down the road.

https://www.vmware.com/support/ws55/doc/ws_newguest_vm_importer.html

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
JavaScript Best Practices

Save hours in development time and avoid common mistakes by learning the best practices to use for JavaScript.

David Johnson, CD, MVPRetiredCommented:
it will keep the ntfs permissions

Just to be safe

to save:
reg export HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Shares shareperms.reg
icacls d:\ /save ntfsperms.txt /t /c

Open in new window


to restore:
    reg import shareperms.reg
    icacls d:\ /restore ntfsperms.txt

Open in new window

TSC SupportAuthor Commented:
Thanks! I've looked into some 3rd party tools, but haven't had any verified any yet. Thanks. I'll look into the VMWare tool as well, but I'm running 5.1 Update 3 and not 5.5.
David Johnson, CD, MVPRetiredCommented:
upon testing you will have to run icals per each directory
 Directory of D:\
$RECYCLE.BIN
FEBE
msdownld.tmp
Music
Pictures
Recovery
Setup
SPVHD
System Volume Information
Videos
              10 Dir(s)   5,816,766,464 bytes free

Open in new window



icacls d:\febe /save febe-ntfsperms.txt /t /c
icacls d:\ /restore febe-ntfsperms.txt
icacls d:\music /save music-ntfsperms.txt /t /c
icacls d:\ /restore music-ntfsperms.txt

Open in new window

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2008

From novice to tech pro — start learning today.