Dear List, We are trying to use filesystem that running on a DRBD device as one of the resources of rgmanager. We have started the DRBD service, made the device a Primary one and mounted the filesystems from a script which is given below and have called the script as a script resource in the cluster.conf file. The file is attached for your reference. Will you please comment whether this way of using DRBD resource is good enough for using on a production environment? DRBD_MANAGE.SH file #!/bin/sh start() { /etc/init.d/drbd start /sbin/drbdadm primary --force r0 mount /dev/drbd1 /home mount /dev/drbd2 /var/spool/postfix RETVAL=$? } stop() { umount /dev/drbd1 umount /dev/drbd2 /sbin/drbdadm secondary all /etc/init.d/drbd stop RETVAL=0 } status() { /etc/init.d/drbd status RETVAL=$? } case "$1" in start) start ;; stop) stop ;; status) status ;; restart) stop start ;; *) echo $"Usage: $0 {start|stop|restart|status}" RETVAL=1 esac exit $RETVAL Goutam |
-- Linux-cluster mailing list Linux-cluster@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/linux-cluster