[DRBD-user] Question about NFS and DRDB

Chuck Payne chuck.payne at vocalocity.com
Fri Sep 17 20:59:08 CEST 2010

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Hi,

I am currently working on set up a NFS Cluster with DRBD, but I am running into some issues with pacemaker and nfs.   I have removed /var/lib/nfs  (I am on CentOS 5.5) and create dir called /data/cluster/nfs, and I created a link back to it....

ln -s /data/cluster/nfs /var/lib/nfs

I did remove rpc_pipefs  to /var/lib/ and updated /etc/modprobe.conf.dist  to point to it.

Now I did create 500MB Slice in DRBD for /data/cluster/nfs, format it to ext3 and copied of all the stuff from there to it.

I set up the slice a primary on both so that I can have that dir on both nfs server.  I did this because NFS seems have a tuff time shutting down and moving the drbd device over.

I have them set up in pacemaker,  and when I do a start of heartbeat, it move nfs and vip, but not nfslock.  Now on the second know if I restart heart nothing gets moved, but nfslock starts.

node $id="2c82ce26-c5de-4932-8567-9d81f3e00810" mybox1.mydomain.com
node $id="88e7c286-502d-4e5d-a863-f2301eaa0a3b" mybox2.mydomain.com
primitive res_IPaddr_1 ocf:heartbeat:IPaddr \
        params ip="10.2.2.22" \
        operations $id="res_IPaddr_1-operations" \
        op start interval="0" timeout="20" \
        op stop interval="0" timeout="20" \
        op monitor interval="5" timeout="20" start-delay="0"
primitive res_nfs_1 lsb:nfs \
        operations $id="res_nfs_1-operations" \
        op start interval="0" timeout="15" \
        op stop interval="0" timeout="15" \
        op monitor interval="15" timeout="15" start-delay="15"
primitive res_nfslock_1 lsb:nfslock \
        operations $id="res_nfslock_1-operations" \
        op start interval="0" timeout="15" \
        op stop interval="0" timeout="15" \
        op monitor interval="15" timeout="15" start-delay="15"
colocation col_res_nfs_1_res_IPaddr_1 inf: res_IPaddr_1 res_nfs_1
colocation col_res_nfslock_1_res_nfs_1 inf: res_nfslock_1 res_nfs_1
order ord_res_nfs_1_res_IPaddr_1 inf: res_nfs_1 res_IPaddr_1
property $id="cib-bootstrap-options" \
        stonith-enabled="false" \
        dc-version="1.0.9-89bd754939df5150de7cd76835f98fe90851b677" \
        cluster-infrastructure="Heartbeat" \
        last-lrm-refresh="1284748883"

What is the trick to get NFS working with pacemaker.


Chuck Payne
NEO Linux System Engineer
chuck.payne at vocolacity.com
Direct > 404-537-1234
1375 Peachtree St NE, Suite 175, Atlanta, GA 30309
[cid:image001.gif at 01CB5678.E130D810][cid:image002.gif at 01CB5678.E130D810]


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20100917/b97f992f/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 1812 bytes
Desc: image001.gif
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20100917/b97f992f/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 6707 bytes
Desc: image002.gif
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20100917/b97f992f/attachment-0001.gif>


More information about the drbd-user mailing list