C H A P T E R  8

Patching Software on a Linux Cluster

When you are patching the software on the cluster, consult the patch README and your hardware documentation for any information about patch dependencies or special installation instructions. You can add a patch to the cluster during initial cluster installation with the nhinstall tool by adding the patch details to the addon.conf file. For further information, see the addon.conf5 and nhinstall8 man pages.

For information about how to manually add a patch to the Netra HA Suite software and Linux packages, see the following sections:


About Patching Software on a Linux Cluster

Patches for Linux are normally shipped as a new complete version of an RPM package. They ship with a README file that contains patch installation instructions. Generally, you use the rpm -F command to install a patch, however, special installation instructions might be included in the README file.The RPM database holds node-specific information about the installed packages. The database describes the file system where the package contents are installed. To view the packages that are currently installed on a node, use the rpm -qa command. For more information, see the rpm8man page.

procedure icon  To Patch a Package on Both Master-Eligible Nodes

  1. Log in to a master-eligible node as superuser.

  2. Consult the patch README for the patchid and for any constraints on applying this patch.

    Constraints can include the requirement to be in single-user mode, or the requirement to stop the node or the cluster.

  3. Copy the patch to the /var/tmp directory.

  4. Take steps to comply with any constraints described in the patch README.

  5. Apply the patch.

    If you have copied the patch to /var/tmp, install the patch as follows:


    # rpm -F /var/tmp package-name.rpm
    

    This will freshen your existing RPM installation.

  6. Verify that the patch has been installed:


    # rpm -qa
    

    A list of all patches on the node is displayed on the screen.


    # rpm -q package-name
    

    The package for which you specified the package-name is displayed if this patch is installed.

  7. Verify that the node is configured correctly:


    # nhadm check
    

    For more verification procedures, see Chapter 3.

  8. Log in to the second master-eligible node as superuser.

  9. Repeat Step 3 through Step 7.

procedure icon  To Patch a Dataless Node

  1. Log in to a dataless node as superuser.

  2. Perform Step 2 through Step 7 of To Patch a Package on Both Master-Eligible Nodes.

  3. Repeat Step 1 and Step 2 for each dataless node in the cluster.