Dear List,
We have deployed mailing solution over a two node cluster using Red Hat Cluster Suit. The OS is RHEL 6.1 (64 bit) at our data center. We are having an identical setup at our DR site. We need to replicate the mail store and the mail queue to the DR site. For this we are planning to implement DRBD 8.4.3 (community version). We have created the DRBD related RPMs using the rpmbuild command and this has generated the following packages: drbd-heartbeat-8.4.3-2.el6.x86_64 drbd-xen-8.4.3-2.el6.x86_64 drbd-km-debuginfo-8.4.3-2.el6.x86_64 drbd-udev-8.4.3-2.el6.x86_64 drbd-8.4.3-2.el6.x86_64 drbd-pacemaker-8.4.3-2.el6.x86_64 drbd-debuginfo-8.4.3-2.el6.x86_64 drbd-utils-8.4.3-2.el6.x86_64 drbd-km-2.6.32_131.0.15.el6.x86_64-8.4.3-2.el6.x86_64 drbd-bash-completion-8.4.3-2.el6.x86_64 We have tested the drbd replication is happening. Now we would like to integrate the drbd with Redhat failover cluster. We have incorporated the changes in the cluster.conf file and the same is attached herein for your reference. In the cluster.conf we have called a script "drbd_manage.sh" to manage the operations of drbd and it is also attached herewith. But the issue is the cluster service is not working . The errors that are coming up is as follows:- Aug 17 12:39:59 drmail1 rgmanager[5899]: Initializing Services Aug 17 12:39:59 drmail1 rgmanager[6709]: Executing /usr/etc/cron_manage.sh stop Aug 17 12:39:59 drmail1 rgmanager[6764]: Executing /usr/etc/cron_manage.sh stop Aug 17 12:39:59 drmail1 rgmanager[6763]: Executing /etc/init.d/httpd stop Aug 17 12:39:59 drmail1 rgmanager[6829]: Executing /etc/init.d/saslauthd stop Aug 17 12:39:59 drmail1 rgmanager[6896]: Executing /etc/init.d/courier-authlib stop Aug 17 12:39:59 drmail1 rgmanager[7000]: Executing /etc/init.d/courier-imap stop Aug 17 12:39:59 drmail1 rgmanager[6979]: /dev/emcpowera1 is not mounted Aug 17 12:40:00 drmail1 rgmanager[7062]: Executing /etc/init.d/postfix stop Aug 17 12:40:00 drmail1 rgmanager[7097]: Executing /usr/etc/drbd_manage.sh stop Aug 17 12:40:00 drmail1 rgmanager[7176]: stop: Could not match /dev/drbd2 with a real device Aug 17 12:40:00 drmail1 rgmanager[5899]: stop on fs "drbd-spool" returned 2 (invalid argument(s)) Aug 17 12:40:00 drmail1 rgmanager[7213]: stop: Could not match /dev/drbd1 with a real device Aug 17 12:40:00 drmail1 rgmanager[5899]: stop on fs "drbd-mailstore" returned 2 (invalid argument(s)) Aug 17 12:40:00 drmail1 rgmanager[5899]: Services Initialized Aug 17 12:40:00 drmail1 rgmanager[5899]: State change: Local UP Regards, Jayanta ghosh
<?xml version="1.0"?>
<cluster config_version="27" name="dr-mail">
<fence_daemon clean_start="1" post_join_delay="30"/>
<clusternodes>
<clusternode name="drmail1.cesc.co.in" nodeid="1">
<fence>
<method name="Method1_drac">
<device name="fence_drac1"/>
</method>
</fence>
</clusternode>
<clusternode name="drmail2.cesc.co.in" nodeid="2">
<fence>
<method name="Method1_drac">
<device name="fence_drac2"/>
</method>
</fence>
</clusternode>
</clusternodes>
<cman expected_votes="1" two_node="1"/>
<fencedevices>
<fencedevice agent="fence_drac5" cmd_prompt="admin1->"
ipaddr="10.50.4.22" login="root" module_name="fence_drac1" name="fence_drac1"
passwd="calvin" secure="on"/>
<fencedevice agent="fence_drac5" cmd_prompt="admin1->"
ipaddr="10.50.4.23" login="root" module_name="fence_drac2" name="fence_drac2"
passwd="calvin" secure="on"/>
</fencedevices>
<rm>
<failoverdomains>
<failoverdomain name="dr_webmail" nofailback="0"
ordered="1" restricted="1">
<failoverdomainnode name="drmail1.cesc.co.in"
priority="2"/>
<failoverdomainnode name="drmail2.cesc.co.in"
priority="1"/>
</failoverdomain>
<failoverdomain name="dr_mail" nofailback="0"
ordered="1" restricted="1">
<failoverdomainnode name="drmail1.cesc.co.in"
priority="1"/>
<failoverdomainnode name="drmail2.cesc.co.in"
priority="2"/>
</failoverdomain>
</failoverdomains>
<resources>
<ip address="10.50.4.21" monitor_link="on"
sleeptime="10"/>
<script file="/etc/init.d/httpd" name="httpd"/>
<fs device="/dev/emcpowera1" force_unmount="1"
fsid="61842" mountpoint="/var/www/html" name="webfs" options="rw"/>
<ip address="10.50.4.20" monitor_link="on"
sleeptime="10"/>
<script file="/etc/init.d/postfix" name="postfix"/>
<script file="/etc/init.d/courier-imap" name="cuimap"/>
<script file="/etc/init.d/courier-authlib"
name="cuauth"/>
<script file="/etc/init.d/saslauthd" name="saslauth"/>
<script file="/usr/etc/cron_manage.sh"
name="cron_manage"/>
<script file="/usr/etc/drbd_manage.sh"
name="drbd_manage"/>
<fs device="/dev/drbd1" force_unmount="1"
mountpoint="/home" fstype="ext3" name="drbd-mailstore" options="rw"/>
<fs device="/dev/drbd2" force_unmount="1"
mountpoint="/var/spool/postfix" fstype="ext3" name="drbd-spool" options="rw"/>
</resources>
<service domain="dr_webmail" name="httpd" recovery="relocate">
<ip ref="10.50.4.21"/>
<fs ref="webfs"/>
<script ref="httpd"/>
<script ref="cron_manage"/>
</service>
<service domain="dr_mail" name="mail" recovery="relocate">
<ip ref="10.50.4.20"/>
<script ref="drbd_manage"/>
<fs ref="drbd-mailstore"/>
<fs ref="drbd-spool"/>
<script ref="postfix"/>
<script ref="cuimap"/>
<script ref="cuauth"/>
<script ref="saslauth"/>
<script ref="cron_manage"/>
</service>
</rm>
</cluster>
drbd_manage.sh
Description: Binary data
_______________________________________________ drbd-user mailing list [email protected] http://lists.linbit.com/mailman/listinfo/drbd-user
