This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
heartbeat_plus_lxc [2011/09/28 12:44] val |
heartbeat_plus_lxc [2017/10/11 14:28] (current) val |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== HEARTBEAT plus LXC ====== | ====== HEARTBEAT plus LXC ====== | ||
| <code> | <code> | ||
| - | root@gateN:~# /etc/init.d/heartbeat stop | + | root@nodeN:~# service heartbeat stop |
| - | root@gateN:~# cat /etc/ha.d/resource.d/lxcserv | + | root@nodeN:~# cat /etc/ha.d/resource.d/lxcserv |
| </code><code> | </code><code> | ||
| #!/bin/sh | #!/bin/sh | ||
| Line 9: | Line 9: | ||
| case $1 in | case $1 in | ||
| start) | start) | ||
| - | lxc-start -n mail -d | + | lxc-start -n server |
| ;; | ;; | ||
| stop) | stop) | ||
| - | lxc-stop -n mail | + | lxc-stop -n server |
| ;; | ;; | ||
| esac | esac | ||
| + | |||
| + | exit 0 | ||
| </code><code> | </code><code> | ||
| - | root@gateN:~# chmod +x /etc/ha.d/resource.d/lxcserv | + | root@nodeN:~# chmod +x /etc/ha.d/resource.d/lxcserv |
| </code><code> | </code><code> | ||
| - | root@gateN:~# cat /etc/ha.d/haresources | + | root@nodeN:~# cat /etc/ha.d/haresources |
| </code><code> | </code><code> | ||
| - | gate1.corpX.un \ | + | node1.corpX.un \ |
| drbddisk \ | drbddisk \ | ||
| - | Filesystem::/dev/drbd0::/disk2::ext3 \ | + | Filesystem::/dev/drbd0::/disk2::ext4 \ |
| lxcserv | lxcserv | ||
| </code><code> | </code><code> | ||
| - | root@gateN:~# /etc/init.d/heartbeat start | + | root@nodeN:~# service heartbeat start |
| </code> | </code> | ||