Hi Tim,

Am Freitag, den 07.01.2011, 13:45 +0000 schrieb Tim Read - Software
Developer:

> The easiest option is to put a massively long sleep in background, just 
> before the exit 0. The other option is to stop the pmfadm monitoring of 
> the process tree. See other GDS based agent scripts on the SC media for 
> examples.

sleep doesn't work, 'cause after sleep disappears, all my drives goes
offline, but your hint was great :-)

=========================================
while getopts 'R:G:' opt
do
   case "${opt}" in
           R)  RESOURCE=${OPTARG};;
           G)  RESOURCEGROUP=${OPTARG};;
   esac
done
/usr/bin/sleep 60 &
/usr/cluster/bin/pmfadm -s ${RESOURCEGROUP},${RESOURCE},0.svc

[ rest of code ]

====================================================
and 

# clrs create -g megaraid-switch-rg -t SUNW.gds -p
Start_command="/root/bin/megaraid-import -R %RS_NAME -G %RG_NAME" 
-p Stop_command="/root/bin/megaraid-clear" -p Probe_command=/bin/true -p
Network_aware=false -p Log_level="ERR" megaraid-switch-rs 

works :-)

http://blogs.sun.com/TF/entry/disabling_pmf_action_script_with


cu denny

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
ha-clusters-discuss mailing list
ha-clusters-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/ha-clusters-discuss

Reply via email to