Masato Taruishi
taru****@users*****
2004年 10月 11日 (月) 03:06:06 JST
=================================================================== RCS file: ultrapossum/module/failover/update-failover,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- ultrapossum/module/failover/update-failover 2004/10/08 07:32:04 1.17 +++ ultrapossum/module/failover/update-failover 2004/10/10 18:06:06 1.18 @@ -105,6 +105,11 @@ add_endmark "##" "HARESOURCES" >> $tmp add_end_vaconf $HARESOURCES $tmp "HARESOURCES" fi + if include "$BACKUP" "$SLURPDSLAVES"; then + install -d $NFSDIR/$RPLDIR/$BACKUP + install -d $NFSDIR/$RPLDIR/$MASTER + install -d $NFSDIR/$RPLDIR/backup + fi progress "Configuring heartbeat... done" else if test -f $HACF; then strip_vaconf $HACF "HACF"; fi @@ -139,6 +144,7 @@ echo "$NFSDEVICE $NFSDIR nfs rw 0 0" >> $tmp add_endmark "##" "FAILOVER" >> $tmp add_end_vaconf $FSTAB $tmp "FAILOVER" + mount $NFSDIR fi else remove_fstab @@ -228,18 +234,18 @@ sanity_check + if test "x$NFSDIR" != "x" && test "x$NFSDEVICE" != "x"; then + configure_fstab + else + remove_fstab + fi + sed -e "s/#HOST#/$HOST/" -e "s/#UPDATEDN#/$UPDATEDN/" \ -e "s/#CREDENTIALS#/$CREDENTIALS/" \ < $ULTRAPOSSUM_RECOVERY_CONFIN > $ULTRAPOSSUM_RECOVERY_CONF configure_mon configure_heartbeat - - if test "x$NFSDIR" != "x" && test "x$NFSDEVICE" != "x"; then - configure_fstab - else - remove_fstab - fi }