Solved

hyper-v virtual server

Posted on 2010-09-22
5
456 Views
Last Modified: 2013-11-06
i have a 3 virtual servers using microsoft hyper-v
each server has 3 vhd;s a C:\ , D:\ and a E:\ drive
the D and Edrives are raid groups on a DAS device

the DAS device is attached to the host server via a sas card

I need to expand the driives from 150gb to 300gb each
i just purchased a second DAS with larger hard drives
my plan is to move D and E to this new DAS

this is where i need advice, once i configure the new DAS and create 2 new raid groups how do i move the D and E drives off the virtual server to this new DAS device

this is a SQL database server and these drives are used for the sql data files, also will need to keep downtime to a minimum as this is a pruduction environment and my maitenance window is small to say the least
0
Comment
Question by:dano992
  • 3
  • 2
5 Comments
 
LVL 42

Accepted Solution

by:
kevinhsieh earned 500 total points
ID: 33739578
If I understand you correctly, you have 1 physical machine with 3 guests.

Once the new DAS is configured, the simplest thing is to

1. Shut down 1 VM
2. Copy the D VHD and the E VHDs to the new DAS.
3. Use Hyper-V manager to edit those VHD files and make them the new desired size.
4. Edit the VM to remove the old VHD files and reattach to the new VHD files.
5. Boot the VM.
6. Use disk manager or diskpart.exe to expand the partitions to fill the now larger drives.
7. Delete the old VHD files for D and E when you feep comfortable.

Repeat for the remaining 2 VMs.

Since you're dealing with SQL files, it's not like you can easily prestage the data on your new DAS to minimize downtime.
0
 

Author Comment

by:dano992
ID: 33753713
also whats the safest and easiest way to move a VM to a new host?
0
 
LVL 42

Expert Comment

by:kevinhsieh
ID: 33757471
You are not moving to a new host, you are only moving the file. Shut down the VM, go to the hard drives section, and where it shows where your VHD is stored, click on edit to expand the VHD file, or browse to pick the new location for the file. Obviously you need to copy it to the new location first.
ScreenShot005.png
0
 

Author Comment

by:dano992
ID: 33769721
kevinhsieh, i also want to phyisically move the VM to a new host (a more powerfull server)
0
 
LVL 42

Expert Comment

by:kevinhsieh
ID: 33771990
There is an export/import function that I have never figured out. What I always do is shut down the VM and copy over the VHD files to the new host, and then create a new VM with whatever settings are appropriate for CPU, RAM, network, etc. This requires you to reconfigure the network interface if you're using a static IP, but you can't get into any trouble this way because you can always just start the VM on the old host.

Once the VM is running on the new host, you can delete the VM from the old host and delete the VHD files.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now