Moving the service groups to the second subcluster

Perform the following steps to establish the service group's status and to switch the service groups.

To move service groups to the second subcluster

  1. On the first subcluster, determine where the service groups are online.
    # hagrp -state

    The output resembles:

    #Group   Attribute System Value
    sg1      State     node01 |ONLINE|
    sg1      State     node02 |ONLINE|
    sg1      State     node03 |ONLINE|
    sg1      State     node04 |ONLINE|
    sg2      State     node01 |ONLINE|
    sg2      State     node02 |ONLINE|
    sg2      State     node03 |ONLINE|
    sg2      State     node04 |ONLINE|
    sg3      State     node01 |ONLINE|
    sg3      State     node02 |OFFLINE|
    sg3      State     node03 |OFFLINE|
    sg3      State     node04 |OFFLINE|
    sg4      State     node01 |OFFLINE|
    sg4      State     node02 |ONLINE|
    sg4      State     node03 |OFFLINE|
    sg4      State     node04 |OFFLINE|
  2. Offline the parallel service groups (sg1 and sg2) from the first subcluster. Switch the failover service groups (sg3 and sg4) from the first subcluster (node01 and node02) to the nodes on the second subcluster (node03 and node04). For SFHA, vxfen sg is the parallel service group.
    # hagrp -offline sg1 -sys node01
    # hagrp -offline sg2 -sys node01
    # hagrp -offline sg1 -sys node02
    # hagrp -offline sg2 -sys node02
    # hagrp -switch sg3 -to node03
    # hagrp -switch sg4 -to node04
    
  3. On the nodes in the first subcluster, unmount all the VxFS file systems that VCS does not manage, for example:
    # df -k
    Filesystem            1024-blocks     Free     %Used Iused %Iused Mounted on
    /dev/hd4                 20971520     8570080   60%  35736   2%   /
    /dev/hd2                  5242880     2284528   57%  55673   9%   /usr
    /dev/hd9var               4194304     3562332   16%   5877   1%   /var
    /dev/hd3                  6291456     6283832    1%    146   1%   /tmp
    /dev/hd1                   262144      261408    1%     62   1%   /home
    /dev/hd11admin             262144      184408   30%      6   1%   /admin
    /proc                         -         -         -    -     -    /proc
    /dev/hd10opt             20971520   5799208      73%  65760  5%   /opt
    /dev/vx/dsk/dg2/dg2vol1     10240      7600      26%      4  1%   /mnt/dg2/dg2vol1
    /dev/vx/dsk/dg2/dg2vol2     10240      7600      26%      4  1%   /mnt/dg2/dg2vol2
    /dev/vx/dsk/dg2/dg2vol3     10240      7600      26%      4  1%   /mnt/dg2/dg2vol3
    # umount /mnt/dg2/dg2vol1
    # umount /mnt/dg2/dg2vol2
    # umount /mnt/dg2/dg2vol3
  4. On the nodes in the first subcluster, stop all VxVM volumes (for each disk group) that VCS does not manage.
  5. Make the configuration writable on the first subcluster.
    # haconf -makerw
  6. Freeze the nodes in the first subcluster.
    # hasys -freeze -persistent node01
    # hasys -freeze -persistent node02
  7. Dump the configuration and make it read-only.
    # haconf -dump -makero
  8. Verify that the service groups are offline on the first subcluster that you want to upgrade.
    # hagrp -state

    Output resembles:

    #Group Attribute System Value
    sg1  State node01 |OFFLINE|
    sg1  State node02 |OFFLINE|
    sg1  State node03 |ONLINE|
    sg1  State node04 |ONLINE|
    sg2  State node01 |OFFLINE|
    sg2  State node02 |OFFLINE|
    sg2  State node03 |ONLINE|
    sg2  State node04 |ONLINE|
    sg3  State node01 |OFFLINE|
    sg3  State node02 |OFFLINE|
    sg3  State node03 |ONLINE|
    sg3  State node04 |OFFLINE|
    sg4  State node01 |OFFLINE|
    sg4  State node02 |OFFLINE|
    sg4  State node03 |OFFLINE|
    sg4  State node04 |ONLINE|