Automatic failover doesn't failback to the first server if the second server is lost.

Hi Everybody,
   We use the database mirroring a lot in our product solutions and we have recently experienced a strange behaviour in our failover tests with SQL2008R2.
We have 2 servers running Windows 2008 R2 standard and SQL 2008 R2 standard SP2. (let's call them DB1 and DB2)
We also have a Witness workstation running SQL 2008 Express on a Windows 7
A database from DB1 is mirrored to DB2 in "safety full" mode, with witness. At this stage, the database is principal on DB1 and mirror on DB2
To test the automatic failover, we first restart the DB1 server which has the database in principal mode
After a few seconds, the database on DB2 becomes principal, which is normal , that's exactly what we want.
After a few minutes, DB1 comes back online and its database takes the mirror role (still OK). At this stage then, the database is principal on DB2 and mirror on DB1
when the monitoring application shows that the mirror is synchronized and that both servers are connected to the witness, we restart DB2 to trigger an automatic failover to DB1.
What we see is that DB1 never takes the principal role and the database stays in mirror.
In the DB1 Errorlog, I only see these 2 lines when DB2 disappears, no other message related to the mirroring session.
2014-01-22 08:57:26.91 spid43s     Starting up database 'Test123'.
2014-01-22 08:57:26.95 spid43s     Bypassing recovery for database 'Test123' because it is marked as a mirror database, which cannot be recovered. This is an informational message only. No user action is required.
When DB2 comes back online, the database on DB2 keeps its principal status and the database on DB1 stays mirror.
And what is really really strange is that, if I restart DB2 once again, directly after that, DB1 failover normally and the database on DB1 takes the principal role after a few seconds. without any configuration changes between the 2 restarts.
DB1 errorlog shows then :
2014-01-22 09:00:37.53 spid29s     Error: 1474, Severity: 16, State: 1.
2014-01-22 09:00:37.53 spid29s     Database mirroring connection error 4 'An error occurred while receiving data: '64(The specified network name is no longer available.)'.' for 'TCP://DB2:5022'.
2014-01-22 09:00:37.53 spid18s     Database mirroring is inactive for database 'Test123'. This is an informational message only. No user action is required.
2014-01-22 09:00:42.37 spid32s     The mirrored database "Test123" is changing roles from "MIRROR" to "PRINCIPAL" due to Auto Failover.
2014-01-22 09:00:42.39 spid32s     Recovery is writing a checkpoint in database 'Test123' (7). This is an informational message only. No user action is required.
2014-01-22 09:00:42.39 spid32s     Recovery completed for database Test123 (database ID 7) in 78 second(s) (analysis 0 ms, redo 0 ms, undo 7 ms.) This is an informational message only. No user action is required.
So, if I summarize, 
- a first failover from DB1 to DB2 always work
- then, a restart of DB2 never failover to DB1
- a second restart of DB2 always failover to DB1
This is pretty much systematic on one our server couple.
Any explanation for this or any idea where I can search to find the reason of this strange behavior ?
Thanks a lot for your help
Seb

Thank you Tom
But I have already checked that and reported the Errorlog abstracts in my original post.
When DB01 disapears for the first time, nothing in the DB01 ERRORLOG (it is restarting :-) )
AND no particular error message in the DB02 ERRORLOG (nothing related to the fact that DB01 is not reachable anymore !!! )
Only these two lines
2014-01-22 08:57:26.91 spid43s     Starting
up database 'Test123'.
2014-01-22 08:57:26.95 spid43s     Bypassing recovery
for database 'Test123' because it is marked as a mirror database, which cannot be recovered. This is an informational message only. No user action is required.
So my main question remains Why DB02 doesn't detect that DB01 disapears (and the first time only) and why the failover mechanism doesn't trigger the failover ?
Thank you
Seb

Similar Messages

  • I work on two screens. With the new updates, my computer will not automatically open a new window on the second screen.

    I work on two screens. With the new updates we cannot automatically open a new window on the second screen, but have to move them over manually. Not a huge problem, but because of the nature of the work, it gets tedious.

    Hi Annowriter,
    Thank you for your question, I understand that it is annoying to have to move a new window to the second screen. Since it opens in the active screen this may have been a stored preference, however it is not the default.
    There is an add on called [https://addons.mozilla.org/en-US/firefox/addon/monitor-master/ Monitor Master] that customizes settings like this. Check it out.

  • ITunes 10.5.2.11 doesn't launch for the second time on Windows 7, 64 bit.

    I have iTunes 10.5.2.11(The latest as of now) on a WIndows 7, 64 bit PC. iTunes launches itself properly for the first time after my system boots, but, when I close iTunes and try to open it once again(without booting again), it's like the computer didn't get my instruction, the iTunes icon only clicks, but, it doesn't open. When I check the running programs with the Task Manager, iTunes isn't there. But, in processes, iTunes *32 is listed(This is after I tried launching it for the second time). If I end this process(and also the process tree), and then try to open iTunes, the window of iTunes appears, but, it just sits there like a brick!
    Can somebody please help me. Thank you.

    I have iTunes 10.5.2.11(The latest as of now) on a WIndows 7, 64 bit PC. iTunes launches itself properly for the first time after my system boots, but, when I close iTunes and try to open it once again(without booting again), it's like the computer didn't get my instruction, the iTunes icon only clicks, but, it doesn't open. When I check the running programs with the Task Manager, iTunes isn't there. But, in processes, iTunes *32 is listed(This is after I tried launching it for the second time). If I end this process(and also the process tree), and then try to open iTunes, the window of iTunes appears, but, it just sits there like a brick!
    Can somebody please help me. Thank you.

  • Smartforms: footer doesn't appear on the second page

    Hi,
    I have a smartform with two pages First Page and Next page. On the first page I have main window and table in it to display data. I have also footer window. On the second page I have main window without table node and also I have the same footer as on the first page. The idea is when data reaches the maximum lines on the main window to continue on the next page and the footer should be displayed only after the main window ends. If it is on the first page after the data should be the footer, if it is on the second page footer should apper only at the end of second page.
    Everything works fine, except if we have more than one page the footer is not displayed.
    Please advise !
    Thanks,
    Stefan

    HI Stefan,
    Keep that footer window only after main window.
    Regards,
    Madhu.

  • I've currently got Firefox 3.6, the automatic update doesn't pick up the newer version, my question is if I use the Firefox v7 installer, will it erase my current settings and saved passwords or bookmarks?

    Currently running Firefox 3.6.23 on Windows Vista

    No it will not. Your settings, passwords, bookmarks and other data are stored in another location so they won't be harmed.
    As a precaution, you can Backup your Profile before installing Firefox 7
    * [[Backing up your information]]
    Latest Firefox version is not being currently offered to Firefox 3.6 users. If you would like to upgrade to the latest Firefox version, you can manually Download it from one of these links:
    * http://www.mozilla.com/en-US/firefox/new/
    * http://www.mozilla.com/en-US/firefox/central/
    * http://www.mozilla.com/en-US/firefox/fx/
    * http://www.mozilla.com/en-US/firefox/all.html
    -> [[Installing Firefox]]
    Check and tell if its working.

  • I tried syncing my playlists for the second time and lost the first set of

    songs?
    Okay, I'm brand new at this. Last week I created a playlist in itunes, and after syncing my phone, transferred the songs to my iphone.
    Today I created a second playlist and did the same thing, however, now the songs from the first playlist are not in the library. Did I do something wrong? How do I fix this so it doesn't happen again?

    You are welcome. My iPhone was my first Apple product as well.
    Just have to remember a "sync" is just that. Making them "match/sync"
    When you plug phone in, the settings that come up for syncing options for the iPhone will show what is currently set (mirrored/matched/synced/what ever you want to name it). So changing settings mean change what is on phone.
    While many say Apple is great at making things so user friendly and clear, I personally feel that is true IF you try to think the way they think. Sometimes things are as clear and as for iTunes...well I think it is a huge piece of bloat that has gone beyond what it was originally intended, but that is getting off topic.

  • SQL 2012 Database Availability Group - Force Automatic Failover

    Hi All,
    I'd appreciate some help in understanding the following scenario in my test environment.
    I have created a DAG with 2 replica servers (both of which are HyperV VM's running W2012 Std).
    From a client PC in my test lab, I can connect to the virtual listener of my DAG and confirm via the "select @@servername" command that I am connecting to the primary replica server.
    Using the Failover Wizard, I can easily move to primary instance between my 2 nodes and the command above confirms that the primary replica server has changed. So far so good.
    What I wanted to test, was what would happen to my DAG in the event of a complete loss of power to the server that was acting as the primary replica server. At first, I thought I would stop the SQL Server service on the primary server, but this did not result
    in my DAG failing over to the secondary replica. I have found out that the only way I can do this is by effectively shutting down the primary server in a controlled manner.
    Is there any reason why either stopping the SQL Server service on the primary replica, or indeed forcing a power off of the primary replica does not result in the DAG failing over to the secondary replica?
    Thanks,
    Bob

    Hi,
    I would verify if Database Availability Group means AlwaysOn Availability Group.
    How did you set the FailureConditionLevel?
    Whether the diagnostic data and health information returned by sp_server_diagnostics warrants an automatic failover depends on the failure-condition level of the availability group. The failure-condition level specifies what failure conditions
    trigger an automatic failover. There are five failure-condition levels, which range from the least restrictive (level one) to the most restrictive (level five). For details about failure-conditions level, see:
    http://msdn.microsoft.com/en-us/library/hh710061.aspx#FClevel
    There are two useful articles may be helpful:
    SQL 2012 AlwaysOn Availability groups Automatic Failover doesn’t occur or does it – A look at the logs
    http://blogs.msdn.com/b/sql_pfe_blog/archive/2013/04/08/sql-2012-alwayson-availability-groups-automatic-failover-doesn-t-occur-or-does-it-a-look-at-the-logs.aspx
    SQL Server 2012 AlwaysOn – Part 7 – Details behind an AlwaysOn Availability Group
    http://blogs.msdn.com/b/saponsqlserver/archive/2012/04/24/sql-server-2012-alwayson-part-7-details-behind-an-alwayson-availability-group.aspx
    Thanks.
    Tracy Cai
    TechNet Community Support
    Hi,
    Thanks for the reply.
    It's an AlwaysOn Availability Group.
    In my test lab, I have changed the quorum configuration to a file share witness and that has allowed an automatic failover when I turn the primary replica server off (rather than power it off).
    I'll take a look at the links you provided.
    Regards,
    Bob

  • Availability group Automatic failover

    Hi
    setup a simple 2 node AG, sync. (SQL 2014 enterprise on windows 2012R2 standard)
    if I set it as manual failover everything works as expected. however when I switch to automatic failover and stop SQL service on the primary node the AG resource in cluster does offline and doesn't failover to secondary node.
    both nodes are available to the cluster resourse.
    would appreciate your feedback as to what might be the reason
    Regards
    Shaunt

    Hi,
    I would verify if Database Availability Group means AlwaysOn Availability Group.
    How did you set the FailureConditionLevel?
    Whether the diagnostic data and health information returned by sp_server_diagnostics warrants an automatic failover depends on the failure-condition level of the availability group. The failure-condition level specifies what failure conditions
    trigger an automatic failover. There are five failure-condition levels, which range from the least restrictive (level one) to the most restrictive (level five). For details about failure-conditions level, see:
    http://msdn.microsoft.com/en-us/library/hh710061.aspx#FClevel
    There are two useful articles may be helpful:
    SQL 2012 AlwaysOn Availability groups Automatic Failover doesn’t occur or does it – A look at the logs
    http://blogs.msdn.com/b/sql_pfe_blog/archive/2013/04/08/sql-2012-alwayson-availability-groups-automatic-failover-doesn-t-occur-or-does-it-a-look-at-the-logs.aspx
    SQL Server 2012 AlwaysOn – Part 7 – Details behind an AlwaysOn Availability Group
    http://blogs.msdn.com/b/saponsqlserver/archive/2012/04/24/sql-server-2012-alwayson-part-7-details-behind-an-alwayson-availability-group.aspx
    Thanks.
    Tracy Cai
    TechNet Community Support
    Hi,
    Thanks for the reply.
    It's an AlwaysOn Availability Group.
    In my test lab, I have changed the quorum configuration to a file share witness and that has allowed an automatic failover when I turn the primary replica server off (rather than power it off).
    I'll take a look at the links you provided.
    Regards,
    Bob

  • Why doesn't it show me the Second Master Page in Adobe Forms ?

    Hi guys,
    I have an Adobe Form that has Two Master Pages. When I call the form through the program, It shows me only Master Page 1, it doesn't show me the Second Master page.
    What's the problem? Why isn't it showing me the second master page? Can someone help me with this?

    If you're using HTTPS-Everywhere you might need to disable Pinterest in there!

  • C++ Call to DLL made in LabVIEW Fails the second time it is called

    I have an application where a C++ executive calls a LabVIEW DLL (a LabVIEW application built into a DLL).
    The executive calls and operates the DLL fine the first time (NT, the applications task manager shows LabVIEW runtime runs, then stops when the DLL is done. However, when the executive calls the DLL a second time, it hangs, and the runtime engine never shows up in the applications task manager as running.
    However, this only occurs when something like IMAQ, DAQ, or another custom DLL call is occurring. We tried it with a simple DLL that only uses a call to the sound VIs, and it seems to run fine, although as the program called is very short, and the task manager slow, we never see the runtime engin
    e in the task manager. We are going to put a popup dialog in to ensure that the DLL is being called reliably, but we believe it is.
    We are unable to answer why when we call something that uses IMAQ, that the DLL doesn't run right the second time. We are unsure of the reasons, but believe it to be related to thread creation and destruction in the executive.
    If anyone out there has any insight into this, we would be happy to see it.
    We will be putting in a formal request for support from NI, but wanted to poll the audience as well, as we know from first hand experience that LabVIEW users often times have more experience with this sort of thing than developers.
    Thanks a bunch

    > Thanks for the information Greg. There is no documentation on this
    > issue, except for the email that we got from NI Support. This is
    > quite a new realm for us and NI alike. We would like to know what
    > your experiences have been on this subject. If you have a bit of
    > information, perhaps we should suggest a topic. As I said, this is a
    > new frontier for LabVIEW, and there are a lot of things that NI
    > doesn't know, and I'm sure a few of the programmers out there have
    > figured out.
    >
    I often answer emails from home, but I work for NI on the LV development
    team. So anything I know about, NI knows about. The info I was
    describing about the DLL execution system is not well documented since
    we were hoping that it would work we
    ll with the way Windows Apps are
    typically written. I suspect that we will need to write a Tech Note
    to cover the nitty gritty. This sort of info gets lost in manuals,
    and it is subject to change as we learn how people are expecting to
    use it.
    Anyway, my post was to explain why your use of it didn't work.
    In general, we believe that LV DLLs are thread savvy, reentrant
    VIs can be called from multiple threads simultaneously, execution can
    continue in the background after the DLL call has returned, and the UI
    is live provided the calling app processes messages in that thread.
    If you have other issues or questions, just ask.
    Greg McKaskle

  • IPad2 charger stop to work after the second charging

    My iPad2 charger doesn't work after the second charging. In local resseler didn't want to change with new one. What I have to do to use my new iPad2? I have iPad2 30 days but I can not use it.

    If, as you say, the local reseller is not being helpful... Then Contact Apple.
    Apple Contact USA
    http://www.apple.com/contact/
    Contacting Apple World Wide for Support and Service
    http://support.apple.com/kb/HE57

  • Charged for downloading the same app the second time?

    I thought iTunes doesn't charge you the second time you download an app from the AppStore to the same device. I inadvertentdly deleted an app from my iPad but didn't get the familiar message that tells me that I will not be charged when I downloaded the app again. How do I dispute this with apple if I am charged?
    Thanks in advance,

    in iTunes, access your *purchase history* via your account in the iTunes store,
    find the file in question, and click on the *report a problem button*. report the problem.
    clicking here should take you directly to your iTunes store log-in window.
    JGG

  • The second frame lost in CAN communication when use NI PCI-CAN/XS2 card

    I got a trouble on CAN communication recently.
     I need to commmunicate a Cluster with CAN BUS,the baud rate is 500kBPS,the CAN card is NI PCI-CAN/XS2. The operating system is Windows XP.
    normally,the PC send a command to Cluster,then read back a frame of data from the Cluster,but for some commands,the Cluster will return two frames of data,and the programe on PC cannot receive the Seconds frame,it lost.
    I searched the forum,most of the reslut is the error about CAN BUS overflow,which make the CAN frame lost,but there is not any error report on my programe,and the baud rate is no that fast,I also use another port of NI PCI- CAN/XS2 to monitor the CAN bus,the second data frame never appear,when I replace NI CAN card with Vector CanCaseXL(CAN card) ,and call CanCaseXL's DLL in labVIEW,it can get the second CAN frame,the monitor of Vector CanCaseXL can get the second data frame too.
    so,is there some software/hardware configuration need to be done to get the second data frame?
    the attached pictures are NI-CAN/Vector CAN monitor and CAN init/write&read in my programe.
    Any reply is appreciate!!! thanks
    帖子被iwanttofly014在 12-12-2009 07:41 PM
    时编辑过了
    帖子被iwanttofly014在 12-12-2009 07:43 PM
    时编辑过了
    Flying...
    www.vihome.com.cn 虚拟仪器家园
    Solved!
    Go to Solution.
    Attachments:
    NI CAN monitor.jpg ‏165 KB
    Vector CAN monitor.jpg ‏58 KB
    CAN init.jpg ‏80 KB

    Thanks your code.
    I try the code you posted, It still no work, I found you has improved the "Get data.vi",It works better,but the second frame still no shown.
    I used the  NI CAN monitor in MAX to monitor the CAN bus,there is no second frame shown in the monitor,See attach pictures.but It shown in the Vector CAN monitor and the code call the Vector DLL.
    Have a great day.
    帖子被iwanttofly014在 12-16-2009 08:02 PM
    时编辑过了
    Flying...
    www.vihome.com.cn 虚拟仪器家园
    Attachments:
    LabVIEW VS Monitor(Vector CAN).JPG ‏70 KB
    LabVIEW VS Monitor(NI CAN).JPG ‏40 KB

  • I am using Firefox 7.When I tried to open a player the install instructions from the website says, download the widevine plugin from the automatic download pop-up,but my Firefox browser doesn't show me the automatic download pop up to download the plugin.

    The automatic download pop up for downloading the plugin was not showing in my firefox 7 browser.

    Hi and thanks to not leaving the firefox user alone.
    Cor-el your answer is right as the madperson is and I already knew all these
    answer and I said that before I don’t use any antivirus and I always turn off my firewall from the moment I installed my Windows.
    I even turn off any automatic update for any of my software and I never let any unknown plugins or any thing like that be install without informing me. And if you know some things like Offline Storage and cookies must be to much more than usual and you have to clear them and delete them and I know so much more
    And if you want to know it fixed now. But I don’t know how?
    For understanding my problem read and research about Ixplorer.exe virus it is the same problem about the speed but the different is it doesn’t show any process in task manager like Ixplorer.exe virus
    Bt I have done some things but still I don’t know that’s why it is fixed or not
    First: I searched my system and removed any files have been crated on my system from two days ago since the problem happened.
    And then I used to go about the article in this page and did like this:
    http://answers.yahoo.com/question/index?qid=20080910101846AAazxN5
    but still I don’t know any thing about the problem.
    I can do so many things to fix but I am just curios if that is a virus why it just cut the speed when I am using the browser.
    Please if any one found the reason send me your information I like to know it will improve my knowledge however my problem is solved fro now.

  • When first loading, FIREFOX doesn't open all the way.

    When I first open FIREFOX, it doesn't open all the way. When I open another, FIREFOX

    Hi weaver15,
    You should try changing your home page to:
    about:home
    I think this is probably the page you are looking for. If you don't know how to change the home page, you should take a look at the Knowledge Base article [[How to set the home page]].
    Hopefully this helps

Maybe you are looking for

  • Help with Cisco 871-K9

    Hi everyone! I'm having trouble with my 871 router. My problem is the next one. It's starts like this: My ISP give me an address by DHCP, it is connected to a 1841 (Fe 0/1), on Fe0/0 I assign 10.22.1.1 and by DHCP on my 871, I gather the IP the route

  • SMQ2 contain many entries.

    Hello All, We are facing problem with Queue processing. SMQ2 contain many entries around 122500, entires are processing very slow. We need find out the where the problem exist. Configuration details. ERP 6.0 / NW7.01 Data base  ORACLE --10.2.0.4.0 OS

  • Invoice Verification (MIRO) posting, showing an error on Tax Code

    Hello When i am making MIRO posting it is showing that the specific tax code which i has given is not maintained in the Tax Procedure, but i have checked all the CIN Configurations, Activated the CIN and Tax Procedure is assigned to Country also and

  • FCPX audio fix for microphone POPs or BOOMs. B's, P's & T's

    I'm editing footage, with FCPX, of a man speaking who was wearing a lav mic. I have a moment where he says the word, "intentions" and when he pronounces that first 't' the mic captured a really loud pop from his voice, almost like a booming sound. An

  • Buisiness packages for CRM

    hello, I want to know what are ( if there is any) the  buisiness packages for EP 6 for CRM 5 : *Interaction client *Poeple centric *internet sales *Marketing comaigns Thnx by advance Message was edited by:         Mouss Blackman