Flushing service groups

As a service group is brought online or taken offline, the resources within the group are brought online and taken offline. If the online or offline operation hangs on a particular resource, flush the service group to halt the operation on the resources waiting to go online or offline. Flushing a service group typically leaves the cluster in a partial state. After completing this process, resolve the issue with the particular resource (if necessary) and proceed with starting or stopping the service group.

To flush a service group on a system

hagrp -flush group -sys system [-clus cluster | -localclus]

To flush all service groups on a system

  1. Save the following script as haflush at the location /opt/VRTSvcs/bin/

#!/bin/ksh

PATH=/opt/VRTSvcs/bin:$PATH; export PATH

if [ $# -ne 1 ]; then

echo "usage: $0 <system name>"

exit 1

fi

hagrp -list |

while read grp sys junk

do

locsys="${sys##*:}"

case "$locsys" in

"$1")

hagrp -flush "$grp" -sys "$locsys"

;;

esac

done

  1. Run the script.

haflush systemname