Answered by:
moving mirrored databases to a new lun

Question
-
Guys I have mirrored SQL server 2008 boxes I need to move the the databases over to a set of new luns. My question is do I need to break the mirror before moving the databases over to the new lun basically I'm asking what is the proper process when moving mirrored databases to a new set of disk.Friday, February 4, 2011 2:54 PM
Answers
-
If the drive letter and paths will be the same, then you do not need to break mirroring. This is how you can do it without breaking mirroring:
Let's assume that my data files are on H:\ drive and my log files are on O:\.
- Add 2 new luns as I:\ and P:\ (or some unused letters)
- Create the directory structures and copy all files that are not in use
- Stop SQL Server service on Mirror
- Copy the database files to new luns
- Rename old luns to some new unused letters
- Rename new luns to H:\ and O:\
- Restart the SQL Service
My blog: SQL Soldier
Twitter: @SQLSoldier
Microsoft Certified Master: SQL Server 2008
My book: Pro SQL Server 2008 Mirroring- Proposed as answer by Robert L Davis Friday, February 4, 2011 5:40 PM
- Marked as answer by Alex Feng (SQL) Monday, February 14, 2011 10:14 AM
Friday, February 4, 2011 5:40 PM
All replies
-
If the drive letter and paths will be the same, then you do not need to break mirroring. This is how you can do it without breaking mirroring:
Let's assume that my data files are on H:\ drive and my log files are on O:\.
- Add 2 new luns as I:\ and P:\ (or some unused letters)
- Create the directory structures and copy all files that are not in use
- Stop SQL Server service on Mirror
- Copy the database files to new luns
- Rename old luns to some new unused letters
- Rename new luns to H:\ and O:\
- Restart the SQL Service
My blog: SQL Soldier
Twitter: @SQLSoldier
Microsoft Certified Master: SQL Server 2008
My book: Pro SQL Server 2008 Mirroring- Proposed as answer by Robert L Davis Friday, February 4, 2011 5:40 PM
- Marked as answer by Alex Feng (SQL) Monday, February 14, 2011 10:14 AM
Friday, February 4, 2011 5:40 PM -
alphabanks
If you do need to keep old LUNs, you can just use Robert's method to move mirrored and system databases, and get everything else to "NEW" (Old LUN, new drive letters) using normal deattch/attach way.
Sevengiants.comFriday, February 4, 2011 6:40 PM -
Actually guys the mirrored databases will stay there current storage I'm going to be moving the principle databases however I assume I can use the above method to move the principal as well.Friday, February 18, 2011 11:28 AM