How to migrate SQL databases to a new SAN volume?

Posted on 2011-05-12
Medium Priority
Last Modified: 2012-05-11
I have a virtual machine with a SQL server 2008 installed. All data (MSSQL10.MSSQLSERVER folder) sits on a separate drive from a SAN. I need to move it now from one SAN vdisk to another. Here is how I want to do it and my question is will it work and is it possible to brake something?

- create a new SAN volume and map it on a SQL server
- stop all SQL services
- move everything from an old drive to the new drive
- change the letter of the new drive to the old drive
- enable all SQL services

I would assume that everything should work exactly the same after I do that - am I correct?
Question by:MisUszatek
LVL 42

Assisted Solution

by:Paul Solovyovsky
Paul Solovyovsky earned 600 total points
ID: 35750081
Sounds about right.  I would dismount the database first, move the database and logs file then remount from new location

Author Comment

ID: 35750098
I have a lot of databases in two instances (sharepoint). Will it still work if I just move the data folders and map it as the same drive?
LVL 40

Accepted Solution

lcohan earned 1200 total points
ID: 35750132
First take a FULL backup of ALL your user databases as this may save you lots of headaces and make sure that the exact same paths exists on the new drive.
Also make sure all the SQL Server system databases are installed in the same path.
Free recovery tool for Microsoft Active Directory

Veeam Explorer for Microsoft Active Directory provides fast and reliable object-level recovery for Active Directory from a single-pass, agentless backup or storage snapshot — without the need to restore an entire virtual machine or use third-party tools.


Assisted Solution

driskollt earned 200 total points
ID: 35750264
Can't you just do a storage vmotion since it's a VM and not have to shut down the server?

Create a new VMFS on the new array
Migrate the VM to the new VMFS volume.

Author Comment

ID: 35750296
I am not migrating the VM. I am migrating data between two vdisks on a SAN and presenting it to the VM as the volume.

Expert Comment

ID: 35750403
Maybe I'm confused, but what I see you wanting to do is
1.  You have 1 SQL Server VM
2.  You want to move the data volume on that VM from one LUN to another LUN and keep the same drive letter.

If this is what you want to do, then svmotion is perfect - No downtime.

Maybe I misunderstand.

Author Comment

ID: 35750419
It is possible but I guess you are talking about the VMware and I have Hyper-v. I also need to do the same on a physical server.

Author Closing Comment

ID: 35771080
I did that without dismounting and it seems to be working OK.

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
In the below post we have mentioned the best hosting type for startups. Also, check out some of the superlative web hosting companies that are proposing affordable web hosting solutions to host your startup website.
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…
This Micro Tutorial will teach you how to reformat your flash drive. Sometimes your flash drive may have issues carrying files so this will completely restore it to manufacturing settings. Make sure to backup all files before reformatting. This w…

831 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