This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
heartbeat_plus_openvz [2010/03/31 15:46] val created |
heartbeat_plus_openvz [2013/05/22 13:50] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== HEARTBEAT plus OpenVZ ====== | ====== HEARTBEAT plus OpenVZ ====== | ||
+ | |||
+ | [[http://wiki.openvz.org/HA_cluster_with_DRBD_and_Heartbeat]] | ||
+ | |||
<code> | <code> | ||
root@gateN:~# /etc/init.d/vz stop | root@gateN:~# /etc/init.d/vz stop | ||
+ | |||
+ | root@gateN:~# /etc/init.d/heartbeat stop | ||
root@gateN:~# update-rc.d -f vz remove | root@gateN:~# update-rc.d -f vz remove | ||
- | root@gateN:~# cat /etc/ha.d/haresources | + | root@gateN:~# cat /etc/ha.d/resource.d/openvzserv |
- | </code><code> | + | |
- | gate1.corpX.un \ | + | |
- | drbddisk Filesystem::/dev/drbd0::/var/lib/vz/private::ext3 \ | + | |
- | haservices | + | |
- | </code><code> | + | |
- | root@gateN:~# cat /etc/ha.d/resource.d/haservices | + | |
</code><code> | </code><code> | ||
#!/bin/sh | #!/bin/sh | ||
Line 23: | Line 22: | ||
;; | ;; | ||
esac | esac | ||
+ | </code><code> | ||
+ | root@gateN:~# chmod +x /etc/ha.d/resource.d/openvzserv | ||
+ | </code><code> | ||
+ | root@gateN:~# cat /etc/ha.d/haresources | ||
+ | </code><code> | ||
+ | gate1.corpX.un \ | ||
+ | drbddisk \ | ||
+ | Filesystem::/dev/drbd0::/opt::ext3 \ | ||
+ | openvzserv | ||
+ | </code><code> | ||
+ | root@gateN:~# /etc/init.d/heartbeat start | ||
</code> | </code> | ||
+ |