cancel
Showing results for 
Search instead for 
Did you mean: 

Rename cluster service group

sunguru
Level 4


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.

1 ACCEPTED SOLUTION

Accepted Solutions

Dev_Roy
Level 6
Accredited Certified

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 

View solution in original post

4 REPLIES 4

Dev_Roy
Level 6
Accredited Certified

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 

g_lee
Level 6
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.

sunguru
Level 4
all set, thanks to both for your help.

Dev_Roy
Level 6
Accredited Certified
Welcome!