This is an old revision of the document!
nodeN# /usr/local/etc/rc.d/heartbeat stop nodeN# cat /usr/local/etc/ha.d/resource.d/hast
#!/bin/sh case $1 in status) hastctl status r0 | grep -q 'init' && hastctl role secondary r0 ;; start) hastctl role primary r0 sleep 60 fsck -y -t ufs /dev/hast/r0 mount /dev/hast/r0 /disk2 ;; stop) mount | grep -q hast && umount /disk2 hastctl role secondary r0 ;; esac exit 0
nodeN# chmod +x /usr/local/etc/ha.d/resource.d/hast nodeN# cat /usr/local/etc/ha.d/haresources
node2.corpX.un hast
nodeN# /usr/local/etc/rc.d/heartbeat start