Link to home
Start Free TrialLog in
Avatar of E C
E CFlag for United States of America

asked on

Moving a D drive in VMWare

Running on ESX 4.1, I have a Windows 2008 Server running Exchange 2010 Server. Inside of the Virtual Machine, I have a C drive and a D drive. This entire virtual machine (including both C and D drives) are running on one single RAID 5 storage device.

I want to "move" the D drive so that it is running on a different physical storage device.

Is this possible using VMWare ESX? If so how do I do this? I'm new to VMWare and am trying to learn how the concept of "Windows" drives (like 'C' and 'D') work with physical storage devices.

Do I simply shut down the VM and, using vCenter, "move" drive D? If so how do I do this? and when my Windows Server boots back up (the OS is on the C drive), how will it know how to "find" the D drive?

Hope this makes sense.
Avatar of coolsport00
coolsport00
Flag of United States of America image

You can download/use Veeam FastSCP: http://www.veeam.com/vmware-esxi-fastscp.html

~coolsport00
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Okay, are you C drives and D drives two different virtual disks?

or are they C and D partitions on one single virtual disk?
if you don't know what I talking about, check the Virtual Machine settings, do you have one or two virtual disks defined in the Virtual Machine.
also do you have the second storage device, what we like to call datastores in VMware terms.
SOLUTION
Avatar of coolsport00
coolsport00
Flag of United States of America 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
If you created only 1 virtual disk for your VM and partitioned it into 2 'drives' in your W2K8 OS, then the procedure I provided is inaccurate. You will need to do it in a different way. Go into your VM's Edit Settings area and click the 'Add' button (Hardware tab). Select Hard Disk. In the 'Add Disk' wizard, select a new virtual disk. Choose the datastore/storage you want the new virtual disk to be on, then finish it. Once created, what you'll then have to do is simply copy/paste or 'move' the data from the current d: drive to your new drive/disk (you'll need to initialize & format your newly created drive in Disk Mgmt).

~coolsport00
Avatar of E C

ASKER

hanccocka,
when I right-click on the VM and select "Edit Settings", I see:

- Memory: 12288 MB
- CPUs: 4
       .
       .
       .
- Hard disk 1: Virtual Disk   215 GB   VD Node SCSI (0:0) Hard disk 1
- Hard disk 2: Virtual Disk     75 GB   VD Node SCSI (0:2) Hard disk 2

The smaller Virtual Disk (75 GB) is my 'D' drive.

I want to move it from one datastore to another.
I have the second datastore already.
Remove it from your VM, install FastSCP, then perform the copy/paste as mentioned above.

~coolsport00
Okay, the quickest way copy this disk to the new datastore is as follows.


Do you know if you have Storage vMotion?

Click on the Virtual Machine and Select Migrate?

Follow the prompts, select the same ESX Host, but when you get the options to select datastore, select the new datastore for disk 2 (d: drive)
If you use sVmotion, you must have either Ent Plus license or in trial mode...
Oops...that's right...thanks "hanccocka" :)
ASKER CERTIFIED 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 E C

ASKER

oh man this is scary stuff :o ... i'm gonna back up my VM tonight and then follow your steps above.
thanks a million ... i'll report back, hopefully with good news.

Avatar of E C

ASKER

Just an update ...
I discovered that with VMWare Converter, I can do the following:

- Copy (clone) my existing Exchange VM to a new datastore or physical machine (or both)
- Resize the Virtual Disk
- Relocate the Virtual Disk (to a different datastore)

This is exactly what I am looking for!
However, it seemed to corrupt the VM (my copy of it, anyway).

Here's what I did:

1. I stopped all of my Exchange services
2. I set them all to disabled
3. I shut down the VM
4. Using VMWare Converter (standalone), I 'copied' the VM to a new VM.
5. At the same time, I reduced the size of one of the Virtual Disks from 220 GB to 120 GB.

Converter ran all night, and was successful.

However, if I log into vCenter, select my newly-cloned Exchange Server VM, and click 'Power On'...
I see the BIOS
I see a message "Windows Error Recovery: Windows Failed to Start. A recent hardware or software change might be the cause"

My options are:
- Launch Startup Repair (recommended)
- Start Windows Normally

If I select either option, the VM reboots. It's caught in a loop and will NOT boot into Windows.

I have tried converting my Exchange VM two more times, and each time I get the same result.

Why/how could VMWare converter corrupt the Operating System inside of the VM?
I thought these VMs were pretty bullet proof.

Also, I have resized drives before and the VMs have always started up just fine.

Need to know how to fix. This is mildly annoying.
In the meantime, my original Exchange VM is running just fine.
The requirements seem to have changed, because the original question was about moving, and not moving and resizing.

Yes, a conversion will perform those functions. There is always a risk when converting a virtual machine, the conversion can fail. To be honest with you I would trash the converted vm, and start again.

How did you complete the conversion, and did you follow any of these best practices.

For the conversion steps, read fellow Expert Bestway's article.

https://www.experts-exchange.com/Software/VMWare/A_3639-VMware-vConverter-P2V-for-Windows-Servers.html

Best Practice Video Guide here

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1004588

We are really going off topic, now with why the conversion has failed.
Avatar of E C

ASKER

hanccocka,
sorry, you are correct.

however, assuming the conversion worked, it appears that using VMWare Converter is the best way to 'move' a Virtual Drive from one datastore to another, but I do appreciate the methods described above.

thank you everyone for your assistance.
Personally, I don't like performing conversions, unless I really have to. Because they are exactly that, a conversion, what goes in, does necessarily come out the same the otherside.

As a straight copy of the virtual disk, is a copy. Either Copy, Clone etc