[Pacemaker] Active/Active Clustering using GFS2 in Centos-6.2

ecfgijn pradeep.a.kumar at ericsson.com
Wed Sep 19 08:51:40 UTC 2012


Hi All ,

I have configured active/active using pacemaker in centos-6.2 along with 
gfs2. Below are configuration.

crm configure primitive ClusterIP ocf:heartbeat:IPaddr2 params 
ip="169.144.106.121" cidr_netmask="26" op monitor interval=30s
crm configure primitive WebSite ocf:heartbeat:apache params 
configfile=/etc/httpd/conf/httpd.conf op monitor interval=1min
crm configure op_defaults timeout=240s
crm configure colocation website-with-ip INFINITY: WebSite ClusterIP

crm
cib new GFS2
configure primitive WebFS ocf:heartbeat:Filesystem params 
device="/dev/mydisk" directory="/var/www/html" fstype="gfs2"
configure colocation WebSite-with-WebFS inf: WebSite WebFS
configure colocation fs_on_drbd inf: WebFS WebDataClone:Master
configure order WebFS-after-WebData inf: WebDataClone:promote WebFS:start
configure order WebSite-after-WebFS inf: WebFS WebSite
configure show
cib commit GFS2



crm
cib new active
configure clone WebIP ClusterIP  meta globally-unique="true" 
clone-max="2" clone-node-max="2"
configure edit  ClusterIP

i have add the following to the params line

clusterip_hash="sourceip"

crm
cib new active
configure clone WebIP ClusterIP  meta globally-unique="true" 
clone-max="2" clone-node-max="2"
configure show

configure clone WebFSClone WebFS
configure clone WebSiteClone WebSite
*configure edit WebDataClone            (but this file is empty!!!!!!!)
*
We need to Change master-max to 2

cib commit active
quit


But i am facing issues ,

1. Not able to mount gfs2 file system simultaneously on both the nodes.

2. When i run "configure colocation fs_on_drbd inf: WebFS 
WebDataClone:Master" & "configure order WebFS-after-WebData inf: 
WebDataClone:promote WebFS:start" , it's gives me error , it doesn't  
find the "fs_on_drbd" & it asks still want to continue(y/n).

2. When i try to configure webdataclone , i don't find any entry like 
"master-max" , file is empty.

3. As i have done lot of googling and try to find documentation which 
covers  pacemaker+cman+gfs2 for centos-6, but still no success . every 
documentation link includes drbd first and then gfs.


Also find the attached node xml file


Regards
Pradeep Kumar






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20120919/f8107c81/attachment-0003.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: node.xml
Type: text/xml
Size: 4217 bytes
Desc: not available
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20120919/f8107c81/attachment-0003.xml>


More information about the Pacemaker mailing list