User Tools

Site Tools


heartbeat_plus_openvz

HEARTBEAT plus OpenVZ

http://wiki.openvz.org/HA_cluster_with_DRBD_and_Heartbeat

root@gateN:~# /etc/init.d/vz stop

root@gateN:~# /etc/init.d/heartbeat stop

root@gateN:~# update-rc.d -f vz remove

root@gateN:~# cat /etc/ha.d/resource.d/openvzserv
#!/bin/sh

case $1 in
start)
        /etc/init.d/vz start
        ;;
stop)
        /etc/init.d/vz stop
        ;;
esac
root@gateN:~# chmod +x /etc/ha.d/resource.d/openvzserv
root@gateN:~# cat /etc/ha.d/haresources
gate1.corpX.un \
        drbddisk \
        Filesystem::/dev/drbd0::/opt::ext3 \
        openvzserv
root@gateN:~# /etc/init.d/heartbeat start
heartbeat_plus_openvz.txt · Last modified: 2013/05/22 13:50 (external edit)