When Database Mirroring fails, testing recovery scenarios

  • I have a mirror setup, and I want to test failover recovery when things go bad.

    Like in clustering, I can probably disable a NIC and simulate failover. For example, we loosing a Principal server, its gone, and I want to bring my mirror online. I would alter database <dbname> set partner force_service_allow_data_loss.

    Is that possible? let say I reboot the principal server and it doesn't come back, how do I bring my mirror back online? If it's setup in a mirroring session, I can't use the alter above because it is part of a mirroring session.

    What about testing when a corruption occurs.

    I am looking for scenarios laid out that show me how to create problems and recovery from them for database mirroring.

    Any ideas?

    Alan.

  • If you set up a witness, you should be able to get the secondary running when the primary goes down for a long enough time (the witness has a timeout value). Using FORCE_SERVICE_ALLOW_DATA_LOSS will allow you to get the mirror back up, but if the primary is only isolated, and not actually down, it is basically breaking the mirror, as both replicas are now on their own individual LSNs. have a look at the cautions and caveats on the Technet article:

    http://technet.microsoft.com/en-us/library/ms189977%28v=sql.105%29.aspx

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply