Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


After breaking mirror, the mirrored database is in restoring state


After breaking mirror, the mirrored database is in restoring state

Author
Message
yuemo
yuemo
Forum Newbie
Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)

Group: General Forum Members
Points: 8 Visits: 38
Hi,

I mirrored one database in high protection mode. When I break the mirror by click Stop Mirroring within the the database Properties, Mirroring page for the principal database, I got a message on the mirror server read "The database 'xyz' is marked RESTORING and is in a state that does not allow recovery to be run."

Later on, I managed to restore the tail log from the principal database to bring the "mirrored" database on line.

Anything did I do wrong?

Thanks,

-Yuemo
Adam Haines
Adam Haines
SSCrazy
SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)

Group: General Forum Members
Points: 2324 Visits: 3135
Why did you choose to stop Mirroring? Were you trying to backup the Mirrored database?

When you stop mirroring, the databases can get out of sync. The only way to bring the databases to a consistent state is to restore from the latest backups of the principal server, which you did with the transaction log backups.



My blog: http://jahaines.blogspot.com
yuemo
yuemo
Forum Newbie
Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)

Group: General Forum Members
Points: 8 Visits: 38
Well, we were trying disaster recovery test to simulate one server down.

So if the principal is down, how to make mirror into production?

Thanks,

-Yuemo
Deepak-405225
Deepak-405225
SSC-Addicted
SSC-Addicted (406 reputation)SSC-Addicted (406 reputation)SSC-Addicted (406 reputation)SSC-Addicted (406 reputation)SSC-Addicted (406 reputation)SSC-Addicted (406 reputation)SSC-Addicted (406 reputation)SSC-Addicted (406 reputation)

Group: General Forum Members
Points: 406 Visits: 598
[font="Verdana"]In high protection or high performance mode if the principal server is down then your mirror db will be in restoring state. Now inorder to make the mirror db as principal you need to connect to the mirror server and type the following command to perform manual failover,

Alter database mirrordbname set partner force_service_allow_data_loss

that will bring the mirror db online and you can work on it !
hope this helps

- Deepak
yuemo
yuemo
Forum Newbie
Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)

Group: General Forum Members
Points: 8 Visits: 38
Thanks, that makes sense!

I re-read the section of mirroring. I missed that part.

Our application is not suitable to failover automatically. This is why I did not add the witness, as I though we have to break the mirror manually anyway.

It looks like having a witness will be better.

Thanks again!

-Yuemo
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