Forum Discussion

sunguru's avatar
sunguru
Level 4
15 years ago

Rename cluster service group



Hi

i want to rename a service groups and keeping the resources names intact.
can someone really tell me the different options to accomplish this task.

  • Hi,

    You can modify the main.cf file.

    You need to shutdown the cluster
    # hastop -all -force

    Open the main.cf file and change the service group name:
    # vi /etc/VRTSvcs/conf/config/main.cf

    In the main.cf file look for any Service Group dependences, if it is there then you have to also change service group name there.
    You can grep for SG name and look out where all you see that name, in case if it is big main.cf file, this way you will ensure SG dependencies are taken care of.

    Now you can start the cluster:
    # hastart --> Run this on each cluster node to start back cluster. You should see the changed SG name through command ( hastatus -summary ).

    Regards,
    Dev 

4 Replies

  • Hi,

    You can modify the main.cf file.

    You need to shutdown the cluster
    # hastop -all -force

    Open the main.cf file and change the service group name:
    # vi /etc/VRTSvcs/conf/config/main.cf

    In the main.cf file look for any Service Group dependences, if it is there then you have to also change service group name there.
    You can grep for SG name and look out where all you see that name, in case if it is big main.cf file, this way you will ensure SG dependencies are taken care of.

    Now you can start the cluster:
    # hastart --> Run this on each cluster node to start back cluster. You should see the changed SG name through command ( hastatus -summary ).

    Regards,
    Dev 

  • alternate option through the VCS GUI (via Manuel Braun) - still not dynamic as the resources still need to be offline though

    1. Create the new service group
    2. Copy top resource of old service group with "self and child nodes" option
    3. Paste resources into the new service group
    4. Remove the original resources & old group name once the new group has been copied

    Edit: the copied resources will need to be renamed to be copied, so if you need the names unchanged, this may not be the best way as you'd have to do 2 sets of renames.