[Linux-cluster] RHEL 6.1 Cluster with DRBD
Goutam Baul
goutam.baul at rp-sg.in
Wed Aug 28 11:33:21 UTC 2013
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-cluster/attachments/20130828/92e98929/attachment.htm>
More information about the Linux-cluster
mailing list