-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Steps Required: SQL AlwaysOn Availability Group High Availability #910
Comments
I can't help you with chef since I'm not familiar with Chef. Also, we do not have a full step-by-step examples as of yet. It's being worked on in issue #462. Please see the following example. It uses the same configuration for both the Primary and Secondary replica in the beginning of the configuration. Then, depending which replica, it uses xSQLServerAlwaysOnAvailabilityGroup and xSQLServerAlwaysOnAvailabilityGroupReplica. For the secondary replica you probably should add to wait for the availability replica to be created on the primary replica. After that you should create a listener using xSQLServerAvailabilityGroupListener resource. So the steps should be like this for both the Primary replica and Secondary replicas. Anyone correct me if I'm wrong.
|
On top of that you need to make sure the account used to run cluster configuration has the right permission to create CNO in Active Directory (unless pre-staging). And that the CNO has the correct permission in Active Directory to create the VCO's. |
@mohamednazar Did you get an answer to your question? |
Closing this due to lack of activity. Please reopen if there are any unanswered questions. |
Yes its answered my question. Thanks |
@johlju Hello, I used this instructions for building Always on group via DSC, but stopped at the point creating Availability Group on the primary replica. I try to create it in 2 Azure VMs. Section of adding AG is: SqlAG AddAG
And in the logs on the target machine there is an error: Could you help with adding AG? I can't find errors in config. Failover Cluster is presented, Always on service is accepted, also created Database mirroring endpoints on both replicas. |
IS this 2016 server? and installed SSMS already? if so please remove SSMS and try again. |
@mohamednazar yes, it's image Win2012R2+SQL2016SP1. SSMS is installed by default. Thanks, I try now. |
@mohamednazar great - thank you, AG created after removing SSMS. But it is not convenient, is there no any possibilities to create ag without removing ssms? it's rather long time to remove and install back for preparing environment... |
#1151 please check |
@mohamednazar ok, thank you. Will live with SSMS on the separate server, and add removing SSMS in the DSC.) |
@mohamednazar could you help with second replica, please? Second Replica qavmsql2 is in state: |
Please see issue #1220 for SqlAGReplica. |
Is there some convenient ways to uninstall SSMS from SQLServerDSC or via script? |
No, not yet. There is a resource proposal here #125 |
Ok, thank you. |
@tolstyiii just double checking, is each instance on each node a normal SQL Server installation ( |
@johlju thank for your reply. As I understood, in 2017 MS SQL via current SQLServerDSC the second node is added to the AG, but it stayed in error state. When we removes it from AG, manually restart Always on service and SQLServer instance, and manually add second node to the AG via AG Wizard, all work fine. So I concluded it some advanced setting was added/removed from default config. If will updated SQLServerDSC module with new/deprecated feature in future - it will really great point. |
**Want to know correct steps for successfully enabling Always on High Availability with WFSC **
I am using chef recipe with DSC_Resource for setting up SQL always on. I am not sure how we can roles like PrimaryReplica and SecondaryReplica... as per the examples in Github those are created in configurationdata. How can I create the same via DSC_Resource in chef recipe?
`$ConfigurationData = @{
AllNodes = @(
@{
NodeName = '*'
SQLInstanceName = 'MSSQLSERVER'
},
}`
How can I done via DSC_Resource?
Also what is the order script execution we need to done in Primary and Secondary server? Currently I am following below. Correct me if I am wrong.
The DSC configuration that is using the resource (as detailed as possible):
Latest versions
Version of the Operating System, SQL Server and PowerShell the DSC Target Node is running:
Windows 2012 R2 Standard edition
What module (SqlServer or SQLPS) and which version of the module the DSC Target Node is running:
9.0.0.0
Version of the DSC module you're using, or 'dev' if you're using current dev branch:
dev
The text was updated successfully, but these errors were encountered: