Multi Site SQL High Availability group

Hi,
We have our primary Data Centre where we have 2 MS SQL 2012 Enterprise Servers and 2 SharePoint 2013 Enterprise servers.
We have SQL High Availability group implemented on our primary Site (Site A)
Site A has subnet of 192.168.0.0.
We recently added a new DR Site (Site B). Site B we have MS SQL 2012 Enterprise Servers.  Site B have a subnet of
172.1.1.0
Both sites are connected via a VPN Tunnel. MS SQL 2012 Enterprise Server on Site B has been added in have SQL High Availability
group of Site A.
SQL High Availability group have 2 IPs 192.168.0.32 and 172.1.1.32. SQL Listener have 2 IPs 192.168.0.33 and 172.1.1.33
We want to make sure that if Site A completely down then Site B work as an active Site. But when Site A down we are unable
to ping High Availability group and Site B is unable to work as active site. SQL and SharePoint services are completely down.
Site A has AD(Primary Domain  Controller) and Site B has ADC(Additional Domain Controller).
 Site A has witness server.
We are using Server 2012 Data Centre
Please suggest.
Farooq

SharePoint is not the same as any other applications. The DR site has to be a completely different farm from your production. This means that the SharePoint_AdminContent and config databases on both farms are different and should not be included in the Availability
Group (they do not support asynchronous Availability Group.) Only content databases and other SharePoint databases supported in an Availability Group should be included as per this
TechNet article. Have a look at this
blog post for your networking configuration.
The reason your Windows cluster service goes down in the DR data center when the when your primary data center goes down is because the cluster has no majority votes. You have 4 available votes in your cluster - 3 in the primary data center in the form of
the 2 Availability Group replicas and the witness server and 1 in the DR data center. If the Windows cluster does not have majority of votes, it automatically shuts down the cluster. This is by design. That is why when this situation happens, you need to force
the cluster to start without a quorum as described in
this article (Windows Server 2012 R2 introduced the concept of dynamic witness and dynamic quorum to address this concern.) By default, the IP address of the Availability Group listener name will be registered on all of the DNS servers if the cluster is
running Windows Server 2012 and higher (this is the RegisterAllProvidersIP property that Samir mentioned.) However, you need to flush the DNS cache on the SharePoint web and application servers and point them to the correct IP address on the DR server after
failover. This is because the default TTL value of the Availability Group listener name is 20 minutes. 
It is important to define your DR strategies and objectives when designing the architecture to make sure that the solution will meet your goals. This will also help you automate some of the processes in the DR data center when failover or a disaster occurs.
Edwin Sarmiento SQL Server MVP | Microsoft Certified Master
Blog |
Twitter | LinkedIn
SQL Server High Availability and Disaster Recover Deep Dive Course

Similar Messages

  • Transaction Log Truncate not working on Sql Server 2012 High Availability Groups

    Hi Everyone
    Firstly I have tried to search the forum for similar issues but can't seem to find any that match our situation.
    We have a SQL Server 2012 High Availability Group with 2 Nodes
    Node 1 = Primary
    Node 2 = Secondary
    Backup Schedule as follows
    Full Database Backup @ 00:00
    Transaction Log Backup every 30 minutes from 00:30:00 till 23:59:59.
    These backups are run by Maintenance Jobs, but we have also tried doing direct backups in SSMS using Backup Database and Backup Log commands.
    Before we configured the High Availability group the transaction log backups worked fine.
    After we configured the High Availability group we performed a Full Backup and the T-Log schedule did the T-Log backup. The 1st T-log backup truncated the log (Used space Decreased) as expected.
    However subsequent T-Log backups do not truncate the T-Log.
    This happens both in our acceptance and Live environments. This also happens when running the backups as a Backup operator and sysadmin, this does not seem to be a permissions issue at all.
    We have tried running the Backup on the Primary and Secondary Replica.
    What about High Availability groups could stop Transaction Log Backups from not truncating the log?
    Thanks
    James

    Hi Sean
    Thank you for your reply, please see the output of the sys.databases query below, and some others which you may find usefull.
    Query: select database_id,recovery_model_desc, log_reuse_wait, log_reuse_wait_desc from sys.databases
    where database_id = 5
    Result: database_id    recovery_model_desc    log_reuse_wait    log_reuse_wait_desc
                     5                               
    FULL                             0                           
    NOTHING
    I also ran the following
    select database_id, truncation_lsn, last_received_lsn, last_commit_lsn, last_hardened_lsn, last_redone_lsn,*
    from sys.dm_hadr_database_replica_states
    go
    database_id
    truncation_lsn
    last_received_lsn
    last_commit_lsn
    last_hardened_lsn
    last_redone_lsn
    database_id
    group_id
    replica_id
    group_database_id
    is_local
    synchronization_state
    synchronization_state_desc
    is_commit_participant
    synchronization_health
    synchronization_health_desc
    database_state
    database_state_desc
    is_suspended
    suspend_reason
    suspend_reason_desc
    recovery_lsn
    truncation_lsn
    last_sent_lsn
    last_sent_time
    last_received_lsn
    last_received_time
    last_hardened_lsn
    last_hardened_time
    last_redone_lsn
    last_redone_time
    log_send_queue_size
    log_send_rate
    redo_queue_size
    redo_rate
    filestream_send_rate
    end_of_log_lsn
    last_commit_lsn
    last_commit_time
    low_water_mark_for_ghosts
    5
    1231833000417170000000
    1231833000418880000000
    1231833000418880000000
    1231833000418890000000
    1231833000418880000000
    5
    1391A499-3F9A-47D5-BCE0-70BC204E2A5B
    7E8BFC2E-363F-4C48-86F0-C276D3E0C8D9
    0581E17A-6B7B-4B8F-9288-BF765BFBCE77
    0
    2
    SYNCHRONIZED
    1
    2
    HEALTHY
    NULL
    NULL
    0
    NULL
    NULL
    4294967295429490000000000
    1231833000417170000000
    1
    41863
    1231833000418880000000
    41863
    1231833000418890000000
    41863
    1231833000418880000000
    41863
    0
    25541
    0
    84404
    75304
    1231833000418880000000
    1231833000418880000000
    41863
    441019861
    5
    1231833000417170000000
    NULL
    1231833000418880000000
    1231833000418890000000
    NULL
    5
    1391A499-3F9A-47D5-BCE0-70BC204E2A5B
    83B9F00E-D63F-4AC0-98FC-35E48FFA2C6F
    0581E17A-6B7B-4B8F-9288-BF765BFBCE77
    1
    2
    SYNCHRONIZED
    1
    2
    HEALTHY
    0
    ONLINE
    0
    NULL
    NULL
    4294967295429490000000000
    1231833000417170000000
    NULL
    NULL
    NULL
    NULL
    1231833000418890000000
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    NULL
    1231833000418880000000
    1231833000418880000000
    41863
    441019861
    And
    dbcc loginfo
    go
    RecoveryUnitId
    FileId
    FileSize
    StartOffset
    FSeqNo
    Status
    Parity
    CreateLSN
    0
    2
    458752
    8192
    1231828
    0
    128
    0
    0
    2
    458752
    466944
    1231829
    0
    128
    0
    0
    2
    458752
    925696
    1231830
    0
    128
    0
    0
    2
    712704
    1384448
    1231831
    0
    128
    0
    0
    2
    19398656
    2097152
    1231832
    0
    128
    1229654000000040000000
    0
    2
    10199171072
    21495808
    1231833
    2
    128
    1229656000000010000000
    0
    2
    10199171072
    10220666880
    0
    0
    64
    1229656000000010000000
    0
    2
    10199171072
    20419837952
    1231827
    0
    64
    1229656000000010000000
    0
    2
    10199171072
    30619009024
    0
    0
    128
    1229656000000010000000
    0
    2
    10199171072
    40818180096
    0
    0
    128
    1229656000000010000000
    0
    2
    10199171072
    51017351168
    0
    0
    128
    1229656000000010000000
    0
    2
    10199171072
    61216522240
    0
    0
    128
    1229656000000010000000
    0
    2
    10199171072
    71415693312
    0
    0
    128
    1229656000000010000000
    0
    2
    10199171072
    81614864384
    0
    0
    128
    1229656000000010000000
    0
    2
    536870912
    91814035456
    0
    0
    64
    1229989001661260000000
    0
    2
    536870912
    92350906368
    0
    0
    64
    1229989001661260000000
    0
    2
    536870912
    92887777280
    0
    0
    64
    1229989001661260000000
    0
    2
    536870912
    93424648192
    0
    0
    64
    1229989001661260000000
    0
    2
    536870912
    93961519104
    0
    0
    64
    1229989001661260000000
    0
    2
    536870912
    94498390016
    0
    0
    64
    1229989001661260000000
    0
    2
    536870912
    95035260928
    0
    0
    64
    1229989001661260000000
    0
    2
    536870912
    95572131840
    0
    0
    64
    1229989001661260000000
    0
    2
    536870912
    96109002752
    0
    0
    64
    1229989001661260000000
    0
    2
    536870912
    96645873664
    0
    0
    64
    1229989001661260000000
    0
    2
    536870912
    97182744576
    0
    0
    64
    1229989001661260000000
    0
    2
    536870912
    97719615488
    0
    0
    64
    1229989001661260000000
    0
    2
    536870912
    98256486400
    0
    0
    64
    1229989001661260000000
    0
    2
    536870912
    98793357312
    0
    0
    64
    1229989001661260000000
    0
    2
    536870912
    99330228224
    0
    0
    64
    1229989001661260000000
    0
    2
    536870912
    99867099136
    0
    0
    64
    1229989001661260000000
    0
    2
    536870912
    100403970048
    0
    0
    64
    1229995000058520000000
    0
    2
    536870912
    100940840960
    0
    0
    64
    1229995000058520000000
    0
    2
    536870912
    101477711872
    0
    0
    64
    1229995000058520000000
    0
    2
    536870912
    102014582784
    0
    0
    64
    1229995000058520000000
    0
    2
    536870912
    102551453696
    0
    0
    64
    1229995000058520000000
    0
    2
    536870912
    103088324608
    0
    0
    64
    1229995000058520000000
    0
    2
    536870912
    103625195520
    0
    0
    64
    1229995000058520000000
    0
    2
    536870912
    104162066432
    0
    0
    64
    1229995000058520000000
    0
    2
    536870912
    104698937344
    0
    0
    64
    1229995000058520000000
    0
    2
    536870912
    105235808256
    0
    0
    64
    1229995000058520000000
    0
    2
    536870912
    105772679168
    0
    0
    64
    1229995000058520000000
    0
    2
    536870912
    106309550080
    0
    0
    64
    1229995000058520000000
    0
    2
    536870912
    106846420992
    0
    0
    64
    1229995000058520000000
    0
    2
    536870912
    107383291904
    0
    0
    64
    1229995000058520000000
    0
    2
    536870912
    107920162816
    0
    0
    64
    1229995000058520000000
    0
    2
    536870912
    108457033728
    0
    0
    64
    1229995000058520000000
    0
    2
    536870912
    108993904640
    0
    0
    64
    1230004000028400000000
    0
    2
    536870912
    109530775552
    0
    0
    64
    1230004000028400000000
    0
    2
    536870912
    110067646464
    0
    0
    64
    1230004000028400000000
    0
    2
    536870912
    110604517376
    0
    0
    64
    1230004000028400000000
    0
    2
    536870912
    111141388288
    0
    0
    64
    1230004000028400000000
    0
    2
    536870912
    111678259200
    0
    0
    64
    1230004000028400000000
    0
    2
    536870912
    112215130112
    0
    0
    64
    1230004000028400000000
    0
    2
    536870912
    112752001024
    0
    0
    64
    1230004000028400000000
    0
    2
    536870912
    113288871936
    0
    0
    64
    1230004000028400000000
    0
    2
    536870912
    113825742848
    0
    0
    64
    1230004000028400000000
    0
    2
    536870912
    114362613760
    0
    0
    64
    1230004000028400000000
    0
    2
    536870912
    114899484672
    0
    0
    64
    1230004000028400000000
    0
    2
    536870912
    115436355584
    0
    0
    64
    1230004000028400000000
    0
    2
    536870912
    115973226496
    0
    0
    64
    1230004000028400000000
    0
    2
    536870912
    116510097408
    0
    0
    64
    1230004000028400000000
    0
    2
    536870912
    117046968320
    0
    0
    64
    1230004000028400000000
    0
    2
    536870912
    117583839232
    0
    0
    64
    1230012000103140000000
    0
    2
    536870912
    118120710144
    0
    0
    64
    1230012000103140000000
    0
    2
    536870912
    118657581056
    0
    0
    64
    1230012000103140000000
    0
    2
    536870912
    119194451968
    0
    0
    64
    1230012000103140000000
    0
    2
    536870912
    119731322880
    0
    0
    64
    1230012000103140000000
    0
    2
    536870912
    120268193792
    0
    0
    64
    1230012000103140000000
    0
    2
    536870912
    120805064704
    0
    0
    64
    1230012000103140000000
    0
    2
    536870912
    121341935616
    0
    0
    64
    1230012000103140000000
    0
    2
    536870912
    121878806528
    0
    0
    64
    1230012000103140000000
    0
    2
    536870912
    122415677440
    0
    0
    64
    1230012000103140000000
    0
    2
    536870912
    122952548352
    0
    0
    64
    1230012000103140000000
    0
    2
    536870912
    123489419264
    0
    0
    64
    1230012000103140000000
    0
    2
    536870912
    124026290176
    0
    0
    64
    1230012000103140000000
    0
    2
    536870912
    124563161088
    0
    0
    64
    1230012000103140000000
    0
    2
    536870912
    125100032000
    0
    0
    64
    1230012000103140000000
    0
    2
    536870912
    125636902912
    0
    0
    64
    1230012000103140000000
    0
    2
    536870912
    126173773824
    0
    0
    128
    1230338000973820000000
    0
    2
    536870912
    126710644736
    0
    0
    128
    1230338000973820000000
    0
    2
    536870912
    127247515648
    0
    0
    128
    1230338000973820000000
    0
    2
    536870912
    127784386560
    0
    0
    128
    1230338000973820000000
    0
    2
    536870912
    128321257472
    0
    0
    128
    1230338000973820000000
    0
    2
    536870912
    128858128384
    0
    0
    128
    1230338000973820000000
    0
    2
    536870912
    129394999296
    0
    0
    128
    1230338000973820000000
    0
    2
    536870912
    129931870208
    0
    0
    128
    1230338000973820000000
    0
    2
    536870912
    130468741120
    0
    0
    128
    1230338000973820000000
    0
    2
    536870912
    131005612032
    0
    0
    128
    1230338000973820000000
    0
    2
    536870912
    131542482944
    0
    0
    128
    1230338000973820000000
    0
    2
    536870912
    132079353856
    0
    0
    128
    1230338000973820000000
    0
    2
    536870912
    132616224768
    0
    0
    128
    1230338000973820000000
    0
    2
    536870912
    133153095680
    0
    0
    128
    1230338000973820000000
    0
    2
    536870912
    133689966592
    0
    0
    128
    1230338000973820000000
    0
    2
    536870912
    134226837504
    0
    0
    128
    1230338000973820000000
    0
    2
    536870912
    134763708416
    0
    0
    128
    1230338001901440000000
    0
    2
    536870912
    135300579328
    0
    0
    128
    1230338001901440000000
    0
    2
    536870912
    135837450240
    0
    0
    128
    1230338001901440000000
    0
    2
    536870912
    136374321152
    0
    0
    128
    1230338001901440000000
    0
    2
    536870912
    136911192064
    0
    0
    128
    1230338001901440000000
    0
    2
    536870912
    137448062976
    0
    0
    128
    1230338001901440000000
    0
    2
    536870912
    137984933888
    0
    0
    128
    1230338001901440000000
    0
    2
    536870912
    138521804800
    0
    0
    128
    1230338001901440000000
    0
    2
    536870912
    139058675712
    0
    0
    128
    1230338001901440000000
    0
    2
    536870912
    139595546624
    0
    0
    128
    1230338001901440000000
    0
    2
    536870912
    140132417536
    0
    0
    128
    1230338001901440000000
    0
    2
    536870912
    140669288448
    0
    0
    128
    1230338001901440000000
    0
    2
    536870912
    141206159360
    0
    0
    128
    1230338001901440000000
    0
    2
    536870912
    141743030272
    0
    0
    128
    1230338001901440000000
    0
    2
    536870912
    142279901184
    0
    0
    128
    1230338001901440000000
    0
    2
    536870912
    142816772096
    0
    0
    128
    1230338001901440000000
    0
    2
    536870912
    143353643008
    0
    0
    128
    1230346000103040000000
    0
    2
    536870912
    143890513920
    0
    0
    128
    1230346000103040000000
    0
    2
    536870912
    144427384832
    0
    0
    128
    1230346000103040000000
    0
    2
    536870912
    144964255744
    0
    0
    128
    1230346000103040000000
    0
    2
    536870912
    145501126656
    0
    0
    128
    1230346000103040000000
    0
    2
    536870912
    146037997568
    0
    0
    128
    1230346000103040000000
    0
    2
    536870912
    146574868480
    0
    0
    128
    1230346000103040000000
    0
    2
    536870912
    147111739392
    0
    0
    128
    1230346000103040000000
    0
    2
    536870912
    147648610304
    0
    0
    128
    1230346000103040000000
    0
    2
    536870912
    148185481216
    0
    0
    128
    1230346000103040000000
    0
    2
    536870912
    148722352128
    0
    0
    128
    1230346000103040000000
    0
    2
    536870912
    149259223040
    0
    0
    128
    1230346000103040000000
    0
    2
    536870912
    149796093952
    0
    0
    128
    1230346000103040000000
    0
    2
    536870912
    150332964864
    0
    0
    128
    1230346000103040000000
    0
    2
    536870912
    150869835776
    0
    0
    128
    1230346000103040000000
    0
    2
    536870912
    151406706688
    0
    0
    128
    1230346000103040000000
    0
    2
    536870912
    151943577600
    0
    0
    128
    1230355000086930000000
    0
    2
    536870912
    152480448512
    0
    0
    128
    1230355000086930000000
    0
    2
    536870912
    153017319424
    0
    0
    128
    1230355000086930000000
    0
    2
    536870912
    153554190336
    0
    0
    128
    1230355000086930000000
    0
    2
    536870912
    154091061248
    0
    0
    128
    1230355000086930000000
    0
    2
    536870912
    154627932160
    0
    0
    128
    1230355000086930000000
    0
    2
    536870912
    155164803072
    0
    0
    128
    1230355000086930000000
    0
    2
    536870912
    155701673984
    0
    0
    128
    1230355000086930000000
    0
    2
    536870912
    156238544896
    0
    0
    128
    1230355000086930000000
    0
    2
    536870912
    156775415808
    0
    0
    128
    1230355000086930000000
    0
    2
    536870912
    157312286720
    0
    0
    128
    1230355000086930000000
    0
    2
    536870912
    157849157632
    0
    0
    128
    1230355000086930000000
    0
    2
    536870912
    158386028544
    0
    0
    128
    1230355000086930000000
    0
    2
    536870912
    158922899456
    0
    0
    128
    1230355000086930000000
    0
    2
    536870912
    159459770368
    0
    0
    128
    1230355000086930000000
    0
    2
    536870912
    159996641280
    0
    0
    128
    1230355000086930000000
    0
    2
    536870912
    160533512192
    0
    0
    128
    1230364000070870000000
    0
    2
    536870912
    161070383104
    0
    0
    128
    1230364000070870000000
    0
    2
    536870912
    161607254016
    0
    0
    128
    1230364000070870000000
    0
    2
    536870912
    162144124928
    0
    0
    128
    1230364000070870000000
    0
    2
    536870912
    162680995840
    0
    0
    128
    1230364000070870000000
    0
    2
    536870912
    163217866752
    0
    0
    128
    1230364000070870000000
    0
    2
    536870912
    163754737664
    0
    0
    128
    1230364000070870000000
    0
    2
    536870912
    164291608576
    0
    0
    128
    1230364000070870000000
    0
    2
    536870912
    164828479488
    0
    0
    128
    1230364000070870000000
    0
    2
    536870912
    165365350400
    0
    0
    128
    1230364000070870000000
    0
    2
    536870912
    165902221312
    0
    0
    128
    1230364000070870000000
    0
    2
    536870912
    166439092224
    0
    0
    128
    1230364000070870000000
    0
    2
    536870912
    166975963136
    0
    0
    128
    1230364000070870000000
    0
    2
    536870912
    167512834048
    0
    0
    128
    1230364000070870000000
    0
    2
    536870912
    168049704960
    0
    0
    128
    1230364000070870000000
    0
    2
    536870912
    168586575872
    0
    0
    128
    1230364000070870000000
    0
    2
    536870912
    169123446784
    0
    0
    128
    1230373000054750000000
    0
    2
    536870912
    169660317696
    0
    0
    128
    1230373000054750000000
    0
    2
    536870912
    170197188608
    0
    0
    128
    1230373000054750000000
    0
    2
    536870912
    170734059520
    0
    0
    128
    1230373000054750000000
    0
    2
    536870912
    171270930432
    0
    0
    128
    1230373000054750000000
    0
    2
    536870912
    171807801344
    0
    0
    128
    1230373000054750000000
    0
    2
    536870912
    172344672256
    0
    0
    128
    1230373000054750000000
    0
    2
    536870912
    172881543168
    0
    0
    128
    1230373000054750000000
    0
    2
    536870912
    173418414080
    0
    0
    128
    1230373000054750000000
    0
    2
    536870912
    173955284992
    0
    0
    128
    1230373000054750000000
    0
    2
    536870912
    174492155904
    0
    0
    128
    1230373000054750000000
    0
    2
    536870912
    175029026816
    0
    0
    128
    1230373000054750000000
    0
    2
    536870912
    175565897728
    0
    0
    128
    1230373000054750000000
    0
    2
    536870912
    176102768640
    0
    0
    128
    1230373000054750000000
    0
    2
    536870912
    176639639552
    0
    0
    128
    1230373000054750000000
    0
    2
    536870912
    177176510464
    0
    0
    128
    1230373000054750000000
    0
    2
    536870912
    177713381376
    0
    0
    128
    1230382000038660000000
    0
    2
    536870912
    178250252288
    0
    0
    128
    1230382000038660000000
    0
    2
    536870912
    178787123200
    0
    0
    128
    1230382000038660000000
    0
    2
    536870912
    179323994112
    0
    0
    128
    1230382000038660000000
    0
    2
    536870912
    179860865024
    0
    0
    128
    1230382000038660000000
    0
    2
    536870912
    180397735936
    0
    0
    128
    1230382000038660000000
    0
    2
    536870912
    180934606848
    0
    0
    128
    1230382000038660000000
    0
    2
    536870912
    181471477760
    0
    0
    128
    1230382000038660000000
    0
    2
    536870912
    182008348672
    0
    0
    128
    1230382000038660000000
    0
    2
    536870912
    182545219584
    0
    0
    128
    1230382000038660000000
    0
    2
    536870912
    183082090496
    0
    0
    128
    1230382000038660000000
    0
    2
    536870912
    183618961408
    0
    0
    128
    1230382000038660000000
    0
    2
    536870912
    184155832320
    0
    0
    128
    1230382000038660000000
    0
    2
    536870912
    184692703232
    0
    0
    128
    1230382000038660000000
    0
    2
    536870912
    185229574144
    0
    0
    128
    1230382000038660000000
    0
    2
    536870912
    185766445056
    0
    0
    128
    1230382000038660000000
    The create LSN column seems to have been truncated so here is is again, sorry for the bulky reply.
    CreateLSN
    0
    0
    0
    0
    1229654000000041600001
    1229656000000012000001
    1229656000000012000001
    1229656000000012000001
    1229656000000012000001
    1229656000000012000001
    1229656000000012000001
    1229656000000012000001
    1229656000000012000001
    1229656000000012000001
    1229989001661260800316
    1229989001661260800316
    1229989001661260800316
    1229989001661260800316
    1229989001661260800316
    1229989001661260800316
    1229989001661260800316
    1229989001661260800316
    1229989001661260800316
    1229989001661260800316
    1229989001661260800316
    1229989001661260800316
    1229989001661260800316
    1229989001661260800316
    1229989001661260800316
    1229989001661260800316
    1229995000058525600316
    1229995000058525600316
    1229995000058525600316
    1229995000058525600316
    1229995000058525600316
    1229995000058525600316
    1229995000058525600316
    1229995000058525600316
    1229995000058525600316
    1229995000058525600316
    1229995000058525600316
    1229995000058525600316
    1229995000058525600316
    1229995000058525600316
    1229995000058525600316
    1229995000058525600316
    1230004000028405600295
    1230004000028405600295
    1230004000028405600295
    1230004000028405600295
    1230004000028405600295
    1230004000028405600295
    1230004000028405600295
    1230004000028405600295
    1230004000028405600295
    1230004000028405600295
    1230004000028405600295
    1230004000028405600295
    1230004000028405600295
    1230004000028405600295
    1230004000028405600295
    1230004000028405600295
    1230012000103148800147
    1230012000103148800147
    1230012000103148800147
    1230012000103148800147
    1230012000103148800147
    1230012000103148800147
    1230012000103148800147
    1230012000103148800147
    1230012000103148800147
    1230012000103148800147
    1230012000103148800147
    1230012000103148800147
    1230012000103148800147
    1230012000103148800147
    1230012000103148800147
    1230012000103148800147
    1230338000973824800555
    1230338000973824800555
    1230338000973824800555
    1230338000973824800555
    1230338000973824800555
    1230338000973824800555
    1230338000973824800555
    1230338000973824800555
    1230338000973824800555
    1230338000973824800555
    1230338000973824800555
    1230338000973824800555
    1230338000973824800555
    1230338000973824800555
    1230338000973824800555
    1230338000973824800555
    1230338001901449600555
    1230338001901449600555
    1230338001901449600555
    1230338001901449600555
    1230338001901449600555
    1230338001901449600555
    1230338001901449600555
    1230338001901449600555
    1230338001901449600555
    1230338001901449600555
    1230338001901449600555
    1230338001901449600555
    1230338001901449600555
    1230338001901449600555
    1230338001901449600555
    1230338001901449600555
    1230346000103044000554
    1230346000103044000554
    1230346000103044000554
    1230346000103044000554
    1230346000103044000554
    1230346000103044000554
    1230346000103044000554
    1230346000103044000554
    1230346000103044000554
    1230346000103044000554
    1230346000103044000554
    1230346000103044000554
    1230346000103044000554
    1230346000103044000554
    1230346000103044000554
    1230346000103044000554
    1230355000086934400510
    1230355000086934400510
    1230355000086934400510
    1230355000086934400510
    1230355000086934400510
    1230355000086934400510
    1230355000086934400510
    1230355000086934400510
    1230355000086934400510
    1230355000086934400510
    1230355000086934400510
    1230355000086934400510
    1230355000086934400510
    1230355000086934400510
    1230355000086934400510
    1230355000086934400510
    1230364000070872800554
    1230364000070872800554
    1230364000070872800554
    1230364000070872800554
    1230364000070872800554
    1230364000070872800554
    1230364000070872800554
    1230364000070872800554
    1230364000070872800554
    1230364000070872800554
    1230364000070872800554
    1230364000070872800554
    1230364000070872800554
    1230364000070872800554
    1230364000070872800554
    1230364000070872800554
    1230373000054757600431
    1230373000054757600431
    1230373000054757600431
    1230373000054757600431
    1230373000054757600431
    1230373000054757600431
    1230373000054757600431
    1230373000054757600431
    1230373000054757600431
    1230373000054757600431
    1230373000054757600431
    1230373000054757600431
    1230373000054757600431
    1230373000054757600431
    1230373000054757600431
    1230373000054757600431
    1230382000038664800234
    1230382000038664800234
    1230382000038664800234
    1230382000038664800234
    1230382000038664800234
    1230382000038664800234
    1230382000038664800234
    1230382000038664800234
    1230382000038664800234
    1230382000038664800234
    1230382000038664800234
    1230382000038664800234
    1230382000038664800234
    1230382000038664800234
    1230382000038664800234
    1230382000038664800234
    Thanks
    James

  • SQL AlwaysOn Availability Group modifies preferred owner node on move/failover

    I have a two node Windows Server 2012 R2 failover cluster with two SQL Server 2012 Enterprise AlwaysOn Availability groups configured. Within the cluster I have configured a preference order on which node a AlwaysOn Availability Group should run.
    Get-ClusterGroup -Name "AlwaysOn1" | Set-ClusterOwnerNode -Owners "node1","node2";
    Get-ClusterGroup -Name "AlwaysOn2" | Set-ClusterOwnerNode -Owners "node2","node1";
    After configuring the preference and retrieving the preference order it is configured as it should be. When I do a failover the preference order is adjusted to first the node it currently runs on and second the other node instead of leaving the preference
    order as it was. It doesn't matter if I use the PowerShell "Move-ClusterGroup" or the "ALTER AVAILABILITY GROUP [AlwaysOn1] FAILOVER" T-SQL command. From the cluster log it is shown that the preference is modified after the resource
    has been moved.
    INFO  [GUM] Node 2: executing request locally, gumId:15859, my action: /rcm/gum/SetGroupPreferredOwners, # of updates: 1
    INFO  [RCM] rcm::RcmGum::SetGroupPreferredOwners(AlwaysOn1,<vector len='2'>
    The default groups within the cluster "Available Storage" and "Cluster Group" keep their preference setting when configured (only configured for testing to verify it has to do with the SQL Server Availability Group resource type).
    The Windows Server 2012 R2 servers are updated using the latest Windows Updates and SQL 2012 has build number 11.0.5556.
    For other cluster groups which I have configured in the past like file, Hyper-V (used for affinity to get VM's which have a lot of traffic between them within the same virtual switch to reduce latency and additional hops. it would be nice if vNext will have
    a affinity option for cluster groups besides the anti-affinity within the current version)
    I would like to know if someone could explain why the SQL Server Availability Group resource always modifies the group preference. I might understand this with a three node cluster where the first two are running in Synchronous commit mode and the third
    one in Asynchronous commit mode.
    Thanks in advance,
    Dennis van den Akker

    Hi Dennis van den Akker,
    Do not use the Failover Cluster Manager to manipulate availability groups, for example:
    Do not add or remove resources in the clustered service (resource group) for the availability group.
    Do not change any availability group properties, such as the possible owners and preferred owners. These properties are set automatically by the availability group.
    Do not use the Failover Cluster Manager to move availability groups to different nodes or to fail over availability groups. The Failover Cluster Manager is not aware of the synchronization status of the availability replicas, and doing so can lead to extended
    downtime. You must use Transact-SQL or SQL Server Management Studio.
    The related KB:
    Failover Clustering and AlwaysOn Availability Groups (SQL Server)
    https://msdn.microsoft.com/en-us/library/ff929171.aspx
    The similar thread:
    SQL Server Clustering 2008 (Multi Node)
    https://social.msdn.microsoft.com/Forums/sqlserver/zh-CN/c35fe863-3fed-4a6e-830b-b79aa032c198/sql-server-clustering-2008-multi-node?forum=sqldisasterrecovery
    Best Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • SCOM 2012 R2 Management Servers and SQL Server Availability Groups

    My team is in the middle of rolling out a brand new install of System Center Operations Manager 2012 R2.
    I have set up a SQL Server Availability group that is spread across multiple subnets and installed the initial management server per
    here. 
    As I have gone through attaching new management servers, I have noticed disturbing behavior.  When the AG fails over to another node, the management servers will lose connectivity unless I either recycle the service or it fails back to the original
    node.  This is not a security issue as I have set up permissions.  It says it cannot connect to the database anymore at all.
    Has anyone else seen this behavior?  Is there a setting I am missing somewhere?
    Thanks for your help.
    Dale

    Hi Dale,
    What about ApplicationIntent\Readonly?
    http://msdn.microsoft.com/en-us/library/hh205662(v=vs.110).aspx
    Still thinking about DNS, may be this could be for your case:
    http://www.sqlservercentral.com/Forums/Topic1449216-2799-1.aspx
    Natalya

  • 2012 SQL AlwaysOn Availability Group - JDBC re-connection not happening in case of Multisubnet failover

    Hi There,
    Having some problem with MultiSubNet AG failover re-connection using SQL JDBC driver 4. Details given below.
    SETUP:
    We have a three node 2012 Windows Server Cluster, on top it we have 2012 SQL Sever AlwaysOn Availability Group. 
    Two nodes are in one subnet and other in a different subnet to make this as a multisubnet AlwaysOn AG.
    An AG Listener is configured with a DNS name and two VIP assigned (For two subnet) to it. We were able to failover from one subnet to other using the SQL Studio successfully.
    NEED:
    We have a java application which will be connected to AG Listener name. In case of failover, automatic re-connection to DB/AG Listener name should happen.
    For this we use  "sqljdbc4.jar" and added
    'multiSubnetFailover=true' in our connection string. The connection String is given below.
    cURL="jdbc:sqlserver://testsqlag:1433;databaseName=SalesDB;multiSubnetFailover=true;loginTimeout=200;applicationName=MyApp";
    THE PROBLEM:
    In case of AG failover, driver is not trying to re-connect to the AG Listener name. Not sure how to make it work. 
    Is this supported in SQL Server 2012 ?
    Thanks,
    Krishna.

    Hi Sean,
    Thanks for your answer.
    I looked at the link earlier, but it was not very clear that, whether the mssql jdbc driver will automatically re-connect to AG Listener name in case of failure of Primary replica which will result in Multisubnet failover.  Pasted the confusing statements
    from the link
    http://msdn.microsoft.com/en-us/library/gg558121(v=sql.110).aspx.
    Also, because a connection can fail because of an availability group failover, you should implement connection retry logic, retrying a failed connection until it reconnects.
    Connecting With MultiSubnetFailover :
    During a multi-subnet failover, the client will attempt connections in parallel. During a subnet failover, the Microsoft JDBC Driver for SQL Server will aggressively retry the TCP connection.
    Thanks,
    Krishna.

  • SQL Server Availability Groups

    Hello,
    If we want to use SQL availability groups and have the secondary used only for reporting purposes and not DR, do we still need to use the Windows clustering?
    Thanks,
    m

    Take a look into replication or database snapshots if AG does not fit you,
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Backup Maintenance Plan on SQL AlwaysOn Availability Group Secondary Read-Only node

    I have 3 node SQL 2012 AlwaysOn Availability nodes with the 3rd node as Read-Only.
    The backup job within SQL Maintenance plan is failing with the following error:
    Failed:(-1073548784) Executing the query "declare @backupSetId as int
    select @backupSetId =..." failed with the following error: "Cannot open backup device 'C:\\SQLDBName_backup_2014_06_08_170156_9292095.bak'. Operating system error 2(The system cannot find the file specified.).
    VERIFY DATABASE is terminating abnormally.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
    I have verified the SQL AlwaysOn Backup preference to be "Prefer Secondary"
    Is there any special steps/settings I need to do to setup and run the backups using maintenance plan in SQL AlwaysOn?

    Hi,
    I'm marking the reply as answer as there has been no update for a couple of days.
    If you come back to find it doesn't work for you, please reply to us and unmark the answer.
    Thanks.
    Tracy Cai
    TechNet Community Support

  • How to configure current SQL high availability cluster using mirroring with dedicated replication NICS?

    We have a current HA cluster at center1 which is mirrored to another HA cluster in center2.   We have several instances already installed and working which are using one NIC for data and replication.  We want to prevent mirror failovers by
    configuring a NIC on a replication network which has no DNS server.   What are the steps to configure the current SQL instances to use this dedicated NIC for mirror replication? 

    Hi dskim111,
    You can refer the following step by step article to create the dedicated mirroring NIC,
    Step by Step Guide to Setup a Dedicated SQL Database Mirroring(DBM on dedicated Nic card)
    http://blogs.msdn.com/b/sqlserverfaq/archive/2010/03/31/step-by-step-guide-to-setup-a-dedicated-sql-database-mirroring-dbm-on-dedicated-nic-card.aspx?Redirected=true
    I’m glad to be of help to you!
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • SQL server 2012 - Database Availability Group

    We have 2 new Servers ready to be deployed as Database Servers for Sharepoint 2013.
    both server have 1TB RAID 5 Hard Disk Space.
    We don't have any kind of Shared Storage/SAN etc & we cannot afford to buy this.
    I have Configured Windows Server Fail-over Cluster with File Share Quorum.
    May i Configure the SQL Database 2012 on Each Server on local disk and then make High Availability Groups?

    As well as the youtube video that Edwin has posted for you have a read of my article on SimpleTalk.com.
    https://www.simple-talk.com/sql/database-administration/sql-server-2012-alwayson/
    This takes you through the step by step process.
    HTH
    Warwick Rudd (MCM - SQL 2008 | MCT)
    (SQL Masters Consulting |
    My SQL Server Blog | Twitter)

  • Alwayson Availability groups for a WSFC hosting mutliple SQL FCI's

    Hello,
    I have a question regarding SQL server FCI's and alwayson availability groups.
    Today I have a customer running a 2 node WSFC hosting 9 different SQL FCI's.
    Plan is to introduce on this setup SQL alwayson availability groups one per SQL FCI.
    Per SQL FCI, running on the 2 node WSFC, we are planning to introduce a dedicated
    alwayson availability group with 2 replicas. On replica as primary linked with the
    FCI and one replica as secondary on 1 extra node added to the WSFC.
    Question i have is, is this a supported configuration?
    Thanks in advance
    Regards
    Raf

    This is a supported scenario. However, make sure that no FCI node will run a SQL Server instance acting as a replica. This means you cannot install a standalone instance on one of the FCI nodes and make it an AG replica. You also cannot configure another
    FCI in the same WSFC to be a secondary replica in an AG. If you intend to configure AG per SQL Server FCI, you need to add another node in the WSFC and install a SQL Server instance on that node. This can be a SQL Server FCI (which means you need to add two
    more nodes instead of just one) or a standalone instance. Also, having an FCI in an AG configuration means that you lose the ability to do automatic failover on the AG-level. This is because the FCI takes care of automatic failover on the instance-level.
    Edwin Sarmiento SQL Server MVP | Microsoft Certified Master
    Blog |
    Twitter | LinkedIn
    SQL Server High Availability and Disaster Recover Deep Dive Course

  • When to user Availability Group versus traditional Clustered SQL Server

    Hi...
    I'm trying to get my arms around when to use an SQL Server 2014 Availability Group. Here are the characteristics about my platform:
    2 physical servers (Windows Server 2012 / SQL Server 2014)
    Both servers connected to same LAN
    External SAN storage connected DIRECTLY to each physical server via fibr3-channel. (No fibre-channel switch)
    Database resides on SAN storage.
    I've set up a failover cluster between the 2 physical servers.
    I've created a high availability group with a Primary/Secondary and synchronization.
    Both Primary/Secondary are green and show synchronized. The concern I have is that the Primary says Synchronizing (No Data Loss) and the Secondary says Not Synchronizing (Data Loss). When I use the Failover Wizard to failover, it tells me that I will have
    data loss on the Secondary.
    So my questions are these, do you need more than one Secondary node to have an effective Availability Group? If I only plan to have the 2 physical servers, should I be setting up a traditional Clustered SQL Server installation.
    I've used the traditional Clustered SQL Server in the past and used the Active/Passive licensing for the SQL Server software but the Always On Availability Group looked interesting to me, but NOT if it requires more than 2 physical servers and more
    than 2 SQL Instances (and licenses) to provide proper failover capability.
    All input will be appreciated.
    Thanks,
    Brett

    Hi Brett,
    An AlwaysOn Availability Group is created between several standalone SQL Server instances, you don’t need to set up a traditional clustered SQL Server installation when configuring AlwaysOn Availability Group. Also you can have an effective Availability Group
    with only one Secondary node.
    From your description, you have an synchronous-commit availability secondary replica
    and it says Not Synchronizing. This issue can be caused by the following:
    •The availability replica might be disconnected.
    •The data movement might be suspended.
    •The database might not be accessible.
    •There might be a temporary delay issue due to network latency or the load on the primary or secondary replica.
    Please resolve any connection or data movement suspend issues. You can check the events for this issue using SQL Server Management Studio, and find the database error.
    Reference:
    Data synchronization state of some availability database is not healthy
    Availability databases in unhealthy data synchronization state (Error: 35285, Severity: 16, State: 1.)
    Thanks,
    Lydia Zhang
    If you have any feedback on our support, please click
    here.
    Lydia Zhang
    TechNet Community Support

  • SQL 2014 Linked Servers with Availability Groups

    Good afternoon All. Hope your well. We have SQL 2014 Availability group setup over multiple Subnets.
    So basically Instance A(In Primary DC), and Instance B (Secondary Replica, in secondary DC), with AG1 (Availability Group) 
    When I connect to the instance Directly (using SQL management Studio), and attempt to create a linked Server to another SQL 2014 instance (Instance D, Both use the same Service Account), I am able to successfully connect, and run query on the Linked Server.
    However when I connect to the Availability group, I attempt to open the linked server (to Instance D) and receive the following error:
    Login Failed for User 'NT Authority\Anonymous Logon'
    This above only happens when I connect to the AG1, and not the instances directly. I have given the Service account permissions to Read and Write its own SPNs (Using ADSI Edit). Researching this people have stated to add the Availability Group Name as an
    SPN to the Service account;
    Setspn -A MSSQLSVC\AG1.mydomain:1433 mydomain\ServiceAccount
    However, Im a little unsure at this stage, should the port in the above command reflect what the AG1 endpoint ports are? As I have done that (as well as trying port 1433), and unfortunately the error still happens. Your assistance would be appreciated,
    kind regards,

    Hi Nsaneone,
    >> Setspn -A MSSQLSVC\AG1.mydomain:1433 mydomain\ServiceAccount
    >>However, Im a little unsure at this stage, should the port in the above command reflect what the AG1 endpoint ports are?
    The port in the above command should reflect the port which the availability group listener is listening on, but not the endpoint port.
    >> Login Failed for User 'NT Authority\Anonymous Logon'
    According to the error message, it always occurs when the Kerberos authentication fails in SQL Server, there are proposals for you troubleshooting the issue.
    1. Make sure that your service accounts have “Trust this user for delegation to any service (Kerberos only)” enabled in Active Directory.
    2. Make sure that SPN’s are registered successfully for all SQL Server instances.
    3. The server must be using TCP/IP or named pipes network connectivity.
    For more details about the error, please review the following links.
    http://mssqlwiki.com/tag/login-failed-for-user-nt-authority-anonymous/
    http://blogs.msdn.com/b/karthick_pk/archive/2009/01/23/kerberos-authentication-in-sqlserver.aspx
    Thanks,
    Lydia Zhang

  • SQL 2014 Always On Availability Groups

    It appears to be working. I've attached a picture of the role that was created when I was finished configuring WSFC. Is there something that would I can check that would give me a definitive answer?

    I am testing SQL 2014 availability groups and I have run into a snag. I setup a win2k8 r2 DC and two windows 2012 R2 servers running SQL 2014 standard. I setup failover clustering for the two SQL servers. In SQL Management Studios I have setup the availability group and everything seems to have been successful. except when the wizard completes I get an error Creating availability group listener resulted in an error.....Error 41009.The AG seems to be working I can connect to the AG in SSMS using the listener name. But in the Availability Group Listener section there is no listener setup. Also the databases also seem to be read only if I connect thru the listener name. The AD computer account seems to be setup correctly. I am just unable to create the listener in SQL. Is there a security permission in SQL that I could have missed. Any...
    This topic first appeared in the Spiceworks Community

  • High Availability Options Without Enterprise Edition

    I think I've found the answer to this already but I just wanted to confirm that I'm getting this right. In SQL Server 2012, is there no way to implement a high-availability solution which doesn't require shared storage or use of a deprecated feature without
    having Enterprise Edition?
    At the moment we have databases hosted on a primary server running Windows Server 2012 Standard and SQL Server 2012 Standard.  We have a second, identical server, and the databases are mirrored between the two servers using Database Mirroring. 
    This works perfectly and meets all of our requirements.  The only possible problem is that we're looking at storing documents using FILESTREAM, which isn't available in Mirrored databases.
    From what I've read, Database Mirroring is deprecated in SQL Server 2012.  High Availability Groups, which sound great, are only available in the Enterprise Edition.  This feels like a real kick in the teeth from Microsoft.  We're stuck
    with either using a deprecated feature (Mirroring), which is only postponing the problem until the end of 2012's life cycle, or laying out significant amounts of money (in the tens of thousands of pounds GBP) to upgrade to Enterprise Edition, which we just
    don't have the budget for.
    Why couldn't Microsoft continue to offer a high availability option for businesses without deep pockets?  Do I have any options I'm not thinking of?  Shared storage is not an option (too costly, single point of failure, geographically separated
    datacentres).

    Thanks for all the feedback.
    I was forgetting that even data stored as FILESTREAM would need to be backed up using SQL backups, so I guess that's an issue either way, thank for reminding me, Sebastian.
    Geoff, I agree that replication isn't a viable HA solution.  FCI has lots going for it, but from what I can make out (and I am just reading up on this now so I could be wrong) requires either shared storage or a third-party tool to move the data from
    the Primary server's local storage to the local storage of the Secondaries.  It all seems overly complicated when Mirroring does exactly what I need it to do, merrily writing transactions to the mirrors at the same time as the primary databases. 
    Additionally, whilst you might be right about making the case for Enterprise Edition, it's difficult to make a clear case to non-technical people when we already have a working HA solution and document management.  Trying to explain the nuanced advantages
    of SQL Server full-text indexing (at present we use a third-party indexing product which stores the index discretely) and simplified querying when the documents are in the same database as their associated data as justification for spending tens of thousands
    of pounds is a challenge!
    David, that's useful to know, about the disadvantages of using FILESTREAM and how just storing the documents in a VARBINARY(MAX) column might actually give better performance, thank you.

  • Removed SQL 2012 AV group leaves phantom processes consuming large amounts of resource

    Hi,
    I have been experiencing performance degradation on some production servers that previously were part of a SQL 2012 High availability Group.
    I recently used a small window of opportunity to test the HADRON groups on some of my SQL Servers. Unusually because of the licencing and hardware high spec, identically setup servers required I had to take some of our servers out of the web production
    pool during a quiet period and use these for testing.
    When the testing concluded, I removed all the HA SQL groups disabled, then removed the windows cluster and removed the cluster Feature from both of the servers and rebooted, but I see the following phantom queries.
    () select table_id, item_guid, oplsn_fseqno, oplsn_bOffset, oplsn_slotid
    from [<dbname>].[sys].[filetable_updates_2105058535] with (readpast)
    order by table_id
    A reboot resolved the issue initially and although unhappy without knowing the root cause I decided not to spend any further time investigating as believed it was resolved. But I noticed a major hit on performance on those specific server again after 2-3
    weeks and the queries have returned, if this happens during peak period I will be short of capacity and unable to reboot.
    How can I completely remove trace of this as these are obviously protected system tables?.... there are still the odd days when I wished I was still allowed to meddle in those system tables :)

    I'd guess that it is enabled in the process somewhere then, because we have never used the filetable feature, only AlwaysON.
    The query detailed above runs for each user database - soaking up CPU i.e. at a fairly quite period this servers CPU is running at almost double another identical spec server in its pool on our website.
    Looking the procedure cache, historically it if you combined the separate plans it spends
    90% of CPU on these queries.

Maybe you are looking for

  • Where can I get a copy of Windows 7 if I have a product key?

    I upgraded from Vista to Windows 7. I had various problems doing the upgrade. I need to re install Windows 7 but do not want to first install Vista again. Will Microsoft give me a version of Windows 7 that I do not need to upgrade from Vista? Is ther

  • Suddenly....Airport Express in one room only

    HI, Just recently my airport express can only be detected in the room it is set up in, on my iPhone, and daughter's PC, however my Mac can pick it up in other parts of my house. I haven't had any problems with the unit, for 3 years now, just started

  • Bugs or not?

    I just got my first iPhone 4 and I'm in love with it However, there are two things I was wondering if anyone else was having the same thing happening? 1) How far down does the "ringer" go? Mine leaves one bar left, but there have been times when all

  • How to fine-tune KM Navgation iView

    Hi Experts, We have 6-7 KM navigation iviews on the homepage, all rendering xml news from different folders of KM. Now we have discovered that the maximum time of page loading is occupied by these navigation iviews(If we make these navigation iviews

  • 'bad' white lines?

    I'm currently producing a flyer in keynote (with the intention of exporting it to .pdf) - for some reason on some text there are some 'white lines' under part of it. It's not an 'underline' and it also projects out into the document outside of the te