SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


sql server how to split a mirrored db on to multiple devices


sql server how to split a mirrored db on to multiple devices

Author
Message
rgagne99
rgagne99
Grasshopper
Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)

Group: General Forum Members
Points: 20 Visits: 157
Say I have a large production mirrored 1TB DB that resides on a single MDF device and I would like to split that up into say 5 200 Gig devices. I want to do this without interruption to Production.

I thought I could break the mirror and use the RESTORE process for creating a mirror to achieve the split to multiple devices quickly and without interruption to Production. Doing this twice would allow me to get this done in a few hours.

Has anyone done this? Is it the preferred method seeing as we are mirroring anyways?

What are other my alternatives, Pros and Cons? And gotchas?

Also, I recall another more organic process where one would create the 5 new New Devices and somehow, over time get the objects to move over to the new devices. Not sure of the process for this but I seem to recall it being discussed. Sounds like this could take a long time and possibly cause some clocking at times?

Thanks

...Ray
Perry Whittle
Perry Whittle
SSCoach
SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)

Group: General Forum Members
Points: 19704 Visits: 17239
First question is

Do the database file paths match on both servers?

So, for instance if the database files on the Principal are located in

D:\MSSQL_10.50.Prod\MSSQL\Data



Does this path exist on the mirror or is the mirror using another path such as

D:\MSSQL_10.50.Mirror\MSSQL\Data



-----------------------------------------------------------------------------------------------------------

"Ya can't make an omelette without breaking just a few eggs" ;-)
rgagne99
rgagne99
Grasshopper
Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)

Group: General Forum Members
Points: 20 Visits: 157
No the actual Drive for the .MDF device is different on both servers.

relative path however is identical. .\MSSQL\Data
Perry Whittle
Perry Whittle
SSCoach
SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)

Group: General Forum Members
Points: 19704 Visits: 17239
In that case the create file operations on the principal will put the mirror session into suspended mode. Check this link for details of how to fix this scenario.

-----------------------------------------------------------------------------------------------------------

"Ya can't make an omelette without breaking just a few eggs" ;-)
rgagne99
rgagne99
Grasshopper
Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)

Group: General Forum Members
Points: 20 Visits: 157
Ah but I started this post saying I didn't mind using the technique to break and rebuild a mirror as the means to the end.

I don't think I mind mirroring being suspended as I would break the mirror anyway.

Here is the process I had in mind;
Break Mirror
Backup
RESTORE to multiple devices on future Mirror
Restore tlog
Create Mirror
Failover
Break mirror
and so on..

I'm exhausted just thinking about it but I think it would result in my DB being on multiple devices, evenly distributed among 5 200 Gig devices without interruption

Am I missing something? Like a much easier way of achieving same result?

Thanks for your help.

...Ray
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search