Mar 12 2024 11:59 AM
Hi,
We have an activity to remove Always on and decommissioning secondary db server but keeping the listener name alone since listener name is pointed to application.
Is it possible? Please let me know
Mar 12 2024 04:09 PM
Hi, Sujay.
In your title, you ask about preserving the IP address, however, in the question, you neglect the IP address and ask about keeping the cluster name instead. Which is it that you're interested in keeping?
Regardless of which it is, it is possible to retain both under the right circumstances.
Looking at the current AlwaysOn state, if the currently-primary replica is being retained, then you can retain the virtual IP address by assigning it to the network interface of the remaining server as an additional address once the decommissioning has been fully completed.
It's advisable that you check using SQL Configuration Manager that the SQL instance is then configured to listen additionally on that address (i.e. on both addresses, not just one or the other).
Lastly, you should also have an Active Directory administrator either reset the permissions on the DNS records (A, AAAA and PTR) that used to belong to the cluster resource so that the SQL host now has the ability to update those. Or, if they don't know how to do that, get them to simply delete those DNS records and then run an "ipconfig /registerdns" on the SQL host around five minutes later to let the SQL host re-register them.
There's two key action items here:
If you do not need to retain the cluster resource's virtual IP address, then simply create (or retain, if it still exists) an A and/or AAAA DNS record where the value for the name is the value of the VNN, and the host address is the "real" IP address of the remaining SQL host (i.e. not the cluster resource's virtual IP).
If you do need to retain the virtual IP address then use it for the A/AAAA record's host address value.
If you currently use a domain user or computer (which typically shows as "Network Service") account as the service account, the additional service principal names should already exist under that account, and from memory, I don't think removing failover cluster services removes those registrations.
Regardless, the best thing to do is check the current values before you decommission anything at all, and then ensure that the same values derived from the VNN are put back (if necessary) once decommissioning has been completed.
Cheers,
Lain
Mar 13 2024 09:40 AM
Mar 13 2024 09:48 AM - last edited on May 02 2024 12:22 PM by MeenahKhosraw
Mar 13 2024 09:48 AM - last edited on May 02 2024 12:22 PM by MeenahKhosraw
Yes, it's definitely possible to decommission the secondary DB server while retaining the listener IP. You'll need to reconfigure the listener to point to the Fsginspections [link removed by admin] primary server instead. Ensure proper testing and coordination to avoid any disruptions to your application.
Mar 13 2024 04:57 PM
Hi, Sujay.
The guidance I provided in my previous reply is more comprehensive than you might need so you have something to refer to should you want to understand not just what to do but why. However, it's quite possible you won't have to do anything (in the scenario where the AlwaysOn group DNS name is being used).
For the first point, you're focusing on one application. Think bigger. You should be looking to ensure that the primary server properly responds to all scenarios. What happens if half the users connect via name and the remainder connect via IP? I've absolutely seen that a lot, where Helpdesk staff fall back to using IP addresses when the customer has had a DNS issue. What happens when there's more than just that one application to consider, or even things like linked servers?
The application is just one small part of what could be a larger puzzle.
Focus on getting that primary server to respond to all the name and address combinations. Again, there's very little you need to do (perhaps even nothing at all) to achieve this, and once you have, you don't need to know anything whatsoever about application config files.
There's plenty of articles out there on how to add a second IP address to an interface. Because I run Server Core, I use PowerShell (below), but if you need GUI step-by-step screens, just search for them.
Cheers,
Lain
Mar 15 2024 06:41 AM