When a service group is brought online or taken offline, the resources within the group are brought online or taken offline. If the online operation or offline operation hangs on a particular resource, flush the service group to clear the WAITING TO GO ONLINE or WAITING TO GO OFFLINE states from its resources. Flushing a service group typically leaves the service group in a partial state. After you complete this process, resolve the issue with the particular resource (if necessary) and proceed with starting or stopping the service group.
Use the command hagrp -flush to clear the internal state of VCS. The hagrp -flush command transitions resource state from 'waiting to go online' to 'not waiting'. You must use the hagrp -flush -force command to transition resource state from 'waiting to go offline' to 'not waiting'.
To flush all service groups on a system
#!/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
# haflush systemname