A.16 Workaround to Fix DNS Issue

After completing upgrade of SDS primary query server, if DNS resolution fails, perform the following steps:
  1. Verify the QS server transitions to a “A” State, log in to QS Server with the admusr account. Run the command:
    [admusr@SG2-SDS-QS ~]$ sudo prod.state               
                                    ...prod.state RUNID=00)...                
                                    ...getting current state...
            Current state:  A  (product under procmgr)
    1. If current state is "A", stop and continue completing the upgrade.
    2. If not, then continue to the next step.
  2. Verify the permissions of the /etc/resolv.conf file is 644. Execute:
    [admusr@SG2-SDS-QS ~]$ ll
            /etc/resolv.conf
        -rw-r--r-- 1 root root 73 Feb 21 19:47 /etc/resolv.conf
  3. Verify the /etc/resolv.conf file contains the upgraded standby server. Check the file content:
    [admusr@SG2-SDS-QS ~]$ sudo cat
            /etc/resolv.conf<Primary Server
            A><Primary Server
            B><Secondary Server
            B>

    If not, checkout and edit the file as shown using the steps below.

  4. Using the rcstool checkout the /etc/resolv.conf file.
    [admusr@SG2-SDS-QS ~]$ sudo
            rcstool co /etc/resolv.conf
        RCS_VERSION=x.x
  5. Edit the /etc/resolv.conf file.
    [admusr@SG2-SDS-QS ~]$ sudo vi /etc/resolv.conf
  6. Double Check that the /etc/resolv.conf file updates are as desired from edit above.
    [admusr@SG2-SDS-QS ~]$ sudo cat /etc/resolv.conf
             <Primary Server A>
             <Primary Server B>
             <Secondary Server B>
  7. Using the rcstool check in the /etc/resolv.conf file.
    [admusr@SG2-SDS-QS ~]$ sudo rcstool ci /etc/resolv.conf
  8. Clear DNS cache using the nscd command.
    [admusr@SG2-SDS-QS ~]$ sudo nscd -i hosts
  9. Verify the QS server transitions to a “A” State.
    [admusr@SG2-SDS-QS ~]$ sudo prod.state              
                               ...prod.state (RUNID=00)...                
                               ...getting current state...
        Current state:  A (product under procmgr)