Appendix C. Upgrading A Red Hat Cluster from RHEL 4 to RHEL 5

Appendix C. Upgrading A Red Hat Cluster from RHEL 4 to RHEL 5

This appendix provides a procedure for upgrading a Red Hat cluster from RHEL 4 to RHEL 5. The procedure includes changes required for Red Hat GFS and CLVM, also. For more information about Red Hat GFS, refer to Global File System: Configuration and Administration. For more information about LVM for clusters, refer to LVM Administrator's Guide: Configuration and Administration.

Upgrading a Red Hat Cluster from RHEL 4 to RHEL 5 consists of stopping the cluster, converting the configuration from a GULM cluster to a CMAN cluster (only for clusters configured with the GULM cluster manager/lock manager), adding node IDs, and updating RHEL and cluster software. To upgrade a Red Hat Cluster from RHEL 4 to RHEL 5, follow these steps:

  1. Stop client access to cluster high-availability services.

  2. At each cluster node, stop the cluster software as follows:

    1. Stop all high-availability services.

    2. Run service rgmanager stop.

    3. Run service gfs stop.

    4. Run service clvmd stop.

      Note

      If clvmd is already stopped, an error message is displayed:

      # service clvmd stop
      Stopping clvm:                                             [FAILED]
      

      The error message is the expected result when running service clvmd stop after clvmd has stopped.

    5. Depending on the type of cluster manager (either CMAN or GULM), run the following command or commands:

      • CMAN — Run service fenced stop; service cman stop.

      • GULM — Run service lock_gulmd stop.

    6. Run service ccsd stop.

  3. Disable cluster software from starting during reboot. At each node, run /sbin/chkconfig as follows:

    # chkconfig --level 2345 rgmanager off
    # chkconfig --level 2345 gfs off
    # chkconfig --level 2345 clvmd off
    # chkconfig --level 2345 fenced off
    # chkconfig --level 2345 cman off
    # chkconfig --level 2345 ccsd off
  4. Edit the cluster configuration file as follows:

    1. At a cluster node, open /etc/cluster/cluster.conf with a text editor.

    2. If your cluster is configured with GULM as the cluster manager, remove the GULM XML elements — <gulm> and </gulm> — and their content from /etc/cluster/cluster.conf. GULM is not supported in Red Hat Cluster Suite for RHEL 5. Example C.1, “GULM XML Elements and Content” shows an example of GULM XML elements and content.

    3. At the <clusternode> element for each node in the configuration file, insert nodeid="number" after name="name". Use a number value unique to that node. Inserting it there follows the format convention of the <clusternode> element in a RHEL 5 cluster configuration file.

      Note

      The nodeid parameter is required in Red Hat Cluster Suite for RHEL 5. The parameter is optional in Red Hat Cluster Suite for RHEL 4. If your configuration file already contains nodeid parameters, skip this step.

    4. When you have completed editing /etc/cluster/cluster.conf, save the file and copy it to the other nodes in the cluster (for example, using the scp command).

  5. If your cluster is a GULM cluster and uses Red Hat GFS, change the superblock of each GFS file system to use the DLM locking protocol. Use the gfs_tool command with the sb and proto options, specifying lock_dlm for the DLM locking protocol:

    gfs_tool sb device proto lock_dlm

    For example:

    # gfs_tool sb /dev/my_vg/gfs1 proto lock_dlm
    You shouldn't change any of these values if the filesystem is mounted.
    
    Are you sure? [y/n] y
    
    current lock protocol name = "lock_gulm"
    new lock protocol name = "lock_dlm"
    Done
    
  6. Update the software in the cluster nodes to RHEL 5 and Red Hat Cluster Suite for RHEL 5. You can acquire and update software through Red Hat Network channels for RHEL 5 and Red Hat Cluster Suite for RHEL 5.

  7. Run lvmconf --enable-cluster.

  8. Enable cluster software to start upon reboot. At each node run /sbin/chkconfig as follows:

    # chkconfig --level 2345 rgmanager on
    # chkconfig --level 2345 gfs on
    # chkconfig --level 2345 clvmd on
    # chkconfig --level 2345 cman on
  9. Reboot the nodes. The RHEL 5 cluster software should start while the nodes reboot. Upon verification that the Red Hat cluster is running, the upgrade is complete.

<gulm>
  <lockserver name="gulmserver1"/>
  <lockserver name="gulmserver2"/>
  <lockserver name="gulmserver3"/>
</gulm>

Example C.1. GULM XML Elements and Content


Note: This documentation is provided {and copyrighted} by Red Hat®, Inc. and is released via the Open Publication License. The copyright holder has added the further requirement that Distribution of substantively modified versions of this document is prohibited without the explicit permission of the copyright holder. The CentOS project redistributes these original works (in their unmodified form) as a reference for CentOS-5 because CentOS-5 is built from publicly available, open source SRPMS. The documentation is unmodified to be compliant with upstream distribution policy. Neither CentOS-5 nor the CentOS Project are in any way affiliated with or sponsored by Red Hat®, Inc.