root@nodeN:~# service heartbeat stop
root@nodeN:~# cat /etc/ha.d/resource.d/lxcserv
#!/bin/sh
case $1 in
start)
lxc-start -n server
;;
stop)
lxc-stop -n server
;;
esac
exit 0
root@nodeN:~# chmod +x /etc/ha.d/resource.d/lxcserv
root@nodeN:~# cat /etc/ha.d/haresources
node1.corpX.un \
drbddisk \
Filesystem::/dev/drbd0::/disk2::ext4 \
lxcserv
root@nodeN:~# service heartbeat start