This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
heartbeat_plus_hast [2010/10/25 18:10] val |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== HEARTBEAT plus HAST ====== | ||
- | <code> | ||
- | gateN# /usr/local/etc/rc.d/heartbeat stop | ||
- | |||
- | gateN# cat /usr/local/etc/ha.d/resource.d/hast | ||
- | </code><code> | ||
- | #!/bin/sh | ||
- | case $1 in | ||
- | status) | ||
- | mount | grep -q hast && umount /opt | ||
- | hastctl role secondary r0 | ||
- | ;; | ||
- | start) | ||
- | hastctl role primary r0 | ||
- | sleep 5 | ||
- | fsck -y -t ufs /dev/hast/r0 | ||
- | mount /dev/hast/r0 /opt | ||
- | ;; | ||
- | stop) | ||
- | mount | grep -q hast && umount /opt | ||
- | hastctl role secondary r0 | ||
- | ;; | ||
- | esac | ||
- | |||
- | exit 0 | ||
- | </code><code> | ||
- | gateN# cat /usr/local/etc/ha.d/haresources | ||
- | </code><code> | ||
- | gate2.bmstu.ru hast | ||
- | </code><code> | ||
- | gateN# /usr/local/etc/rc.d/heartbeat start | ||
- | </code> | ||