Renaming a Veritas cluster online service group

This article provides 6 quick steps to allow you to rename on online service group under VCS cluster.

  1. Freeze the service group
    # haconf -makerw
    # hagrp -freeze <SG_name> -sys <system_name> -persistent
    # haconf -dump -makero

    where: <SG_name> - is the name of the service group that you wish to rename <system_name> - is the cluster node where the service group is currently online.

    For example if we are renaming service group SG03 on cluster node vcsdevnod03, we would perform:

    # hagrp -freeze SG03 -sys vcsdevnod03 -persistent
  2. Stop HAD but keep service groups online
    # hastop -all -force
  3. Change the name of the service group and save the file
    # cd /etc/VRTSvcs/conf/config
    # cp main.cf main.cf.orig
    # vi main.cf
  4. Start VCS on the modified main.cf node
    # hastart
  5. Run hastart on all remaining nodes so that they do the REMOTE_BUILD and main.cf with the new service group name is copied over to all the remaining nodes
  6. Unfreeze the service group
    # haconf -makerw
    # hagrp -unfreeze <SG_name> -sys <system_name> -persistent
    # haconf -dump -makero