Login or Sign Up to become a member!
LessThanDot Sit Logo

LessThanDot

Data Management

Less Than Dot is a community of passionate IT professionals and enthusiasts dedicated to sharing technical knowledge, experience, and assistance. Inside you will find reference materials, interesting technical discussions, and expert tips and commentary. Once you register for an account you will have immediate access to the forums and all past articles and commentaries.

LTD Social Sitings

Lessthandot twitter Lessthandot Linkedin Lessthandot friendfeed Lessthandot facebook Lessthandot rss

Note: Watch for social icons on posts by your favorite authors to follow their postings on these and other social sites.

Your profile

Search

XML Feeds

Google Ads

« SMO Script Index and FK's on a databaseSSIS Import all text files. Use RegEx parse out strings »
comments
Rate Post:
submit to reddit Digg!FacebookDotnetkicks

Read something just now (I'll leave that link out in respect for others) where a individual asked how they can reboot a server without having to manually fail-back all the mirrored databases once it is back up. The type of mirroring was high availability so the witness would of course fail the principle to the mirror if the decided the server had to be restarted. The answer that seemed to be accepted was to

  1. ALTER DATABASE <database_name> SET PARTNER OFF;

Honestly I was surprised the author of the question didn't come back in a flaming fury once he had to set his mirrors all back up sense that statement removes mirroring. I was curious so I google'd the SET PARTNER OFF and this seems to be a common answer to it. Wow! All I could come up with. Either the DB's are so small it wasn't an issue or the transactions out of sync were so small the mirroring simply started back up after reconfiguring it.

For anyone that finds this and wants to know, you should pause mirroring

  1. ALTER DATABASE <database_name> SET PARTNER SUSPEND

Then use the RESUME to start mirroring back up. Really, I almost feel like this is a copy/paste from BOL. It's pretty well documented SQL Server 2005 and for SQL Server 2008.

Don't forget logs can be an issue when doing things like this on mirrors. If you are going to be off or failed over for a long period of time with the principle down, it may be a good choice to force a reconfigure. If you're DB's are pushing the 100GB and into the TB range, backup and restore along with the tail of the log can be a longer task that it sounds like. It is a trivial one, but a long and vulnerable one to say the least.

I still feel sorry for that person that actually ran the PARTNER OFF statement. Goes to show you really should be careful with some of the answers you get off forums these days. I mean if anything, wouldn't common sense say, shut the witness down if you really didn't know how to pause mirroring? Then at least that thing that says go can't say anything ;-)

About the Author

Ted Krueger has been working in development and database administration for 13+ years. Specialties range from High Availability and Disaster / Recovery setup and testing methods down to custom assembly development for SQL Server Reporting Services. Ted blogs and is also one of the founders of LessThanDot.com technology community. Some of the articles focused on are Backup / Recovery, Security, SSIS and working on SQL Server and using all of the SQL Server features available to create stable and scalable database services. Recent community contributions have been to organize SQL Saturday events in the Chicago-land to Milwaukee-land area for 2010 where he will also be speaking about various SQL Server topics. @onpnt
Social SitingsTwitterLinkedInLTD RSS Feed
601 views
submit to reddit Digg!FacebookDotnetkicks

Comments and Feedback

No feedback yet

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)