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
[email protected]
Direct > 404-537-1234
1375 Peachtree St NE, Suite 175, Atlanta, GA 30309
[cid:[email protected]][cid:[email protected]]
<<inline: image001.gif>>
<<inline: image002.gif>>
_______________________________________________ drbd-user mailing list [email protected] http://lists.linbit.com/mailman/listinfo/drbd-user
