sql 2016 alwayson question about failover

  • Hi guys, i have this question. we have 2 sql 2016 standard with some databases replicated with basic alwayson. So last night the primary server crashed (BSOD and reboot) and the secondary sql has started the failover. This morning i have done a manual failover to move again the DB on primary server. i have a doubt, the manual failover need to be done from the sql with primary replica? or from the sql with secondary replica? or doesn't matter? thanks Andrea

  • Thanks for posting your issue and hopefully someone will answer soon.

    This is an automated bump to increase visibility of your question.

  • Hi,

    I think it should start on the primary, you can use this script:

    -- YOU MUST EXECUTE THE FOLLOWING SCRIPT IN SQLCMD MODE.

    :Connect PRIMARY_SQL_Server

    :Connect SECONDARY_SQL_Server

    ALTER AVAILABILITY GROUP [YOU_AOAG_GROUP_NAME] FAILOVER;

    Good luck,

    kind regards,

    Andreas

     

     

  • Hm,

    it would be nice, if the creator of a question will give some feedback.

    Nobody knows if the solution fixed your problem.

     

Viewing 4 posts - 1 through 3 (of 3 total)

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