Great, glad you found something to make it work.

Tim
---


On 01/10/11 13:12, Denny Schierz wrote:
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


------------------------------------------------------------------------

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

--

Tim Read
Software Developer
Solaris Availability Engineering
Oracle Corporation UK Ltd
Springfield
Linlithgow
EH49 7LR

Phone: +44 (0)1506 672 684
Mobile: +44 (0)7802 212 137
Twitter: @timread

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.

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

Reply via email to