Hi all,
first let me show my haresource file to you all.
/etc/ha.d/haresources
{
node3 172.25.149.246 xendomains::virtual1
}
I run the service heartbeat. so both the service ip and xendomains ran
successfully. virtual1 started.
but after stopping the service xendomains , it did not fail back, instead it
gave an error like in /var/log/messages
Resource xendomains_2 cannot run anywhere
Jul 30 14:04:01 node3 pengine: [11883]: notice: NoRoleChange: Leave resource
IPaddr_172_25_149_246#011(node3)
Jul 30 14:04:01 node3 pengine: [11883]: WARN: custom_action: Action
xendomains_2_stop_0 (unmanaged)
crm_mon was like this
============
Last updated: Wed Jul 30 14:27:28 2008
Current DC: node3 (cbec221f-d26a-478e-a2ba-f4330f46a37b)
1 Nodes configured.
1 Resources configured.
============
Node: node3 (cbec221f-d26a-478e-a2ba-f4330f46a37b): online
Resource Group: group_1
IPaddr_172_25_149_246 (heartbeat::ocf:IPaddr): Started
node3
xendomains_2 (heartbeat:xendomains): Started node3 (unmanaged)
FAILED
Failed actions:
xendomains_2_stop_0 (node=node3, call=9, rc=1): Error
please help me with this,
why the xendomains is not failing back
the xendomains script is in /etc/ha.d/resource.d/xendomains
#!/bin/bash
XM="/usr/sbin/xm"
CONFPATH="/etc/xen/"
#ems-fs-dom0
RES="$1"
CMD="$2"
#isrunning=false
case "$CMD" in
start)
$XM create -f $CONFPATH$RES
;;
stop)
exec $XM destroy $RES
;;
status)
$XM list | awk '{print $1}' | grep $RES > /dev/null
if [ $? -eq 0 ]
then
echo running
else
echo stopped
fi
;;
*)
echo "Usage: xendomain [filename] {start|stop|status}"
exit 1
;;
esac
exit 0
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems