<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal>Hi, <o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>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….<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>ln –s /data/cluster/nfs /var/lib/nfs<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I did remove rpc_pipefs to /var/lib/ and updated
/etc/modprobe.conf.dist to point to it. <o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>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. <o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>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. <o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>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. <o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>node $id="2c82ce26-c5de-4932-8567-9d81f3e00810"
mybox1.mydomain.com <o:p></o:p></p>
<p class=MsoNormal>node $id="88e7c286-502d-4e5d-a863-f2301eaa0a3b"
mybox2.mydomain.com<o:p></o:p></p>
<p class=MsoNormal>primitive res_IPaddr_1 ocf:heartbeat:IPaddr \<o:p></o:p></p>
<p class=MsoNormal> params
ip="10.2.2.22" \<o:p></o:p></p>
<p class=MsoNormal> operations
$id="res_IPaddr_1-operations" \<o:p></o:p></p>
<p class=MsoNormal> op start
interval="0" timeout="20" \<o:p></o:p></p>
<p class=MsoNormal> op stop
interval="0" timeout="20" \<o:p></o:p></p>
<p class=MsoNormal> op monitor
interval="5" timeout="20" start-delay="0"<o:p></o:p></p>
<p class=MsoNormal>primitive res_nfs_1 lsb:nfs \<o:p></o:p></p>
<p class=MsoNormal> operations
$id="res_nfs_1-operations" \<o:p></o:p></p>
<p class=MsoNormal> op start
interval="0" timeout="15" \<o:p></o:p></p>
<p class=MsoNormal> op stop
interval="0" timeout="15" \<o:p></o:p></p>
<p class=MsoNormal> op monitor
interval="15" timeout="15" start-delay="15"<o:p></o:p></p>
<p class=MsoNormal>primitive res_nfslock_1 lsb:nfslock \<o:p></o:p></p>
<p class=MsoNormal> operations
$id="res_nfslock_1-operations" \<o:p></o:p></p>
<p class=MsoNormal> op start
interval="0" timeout="15" \<o:p></o:p></p>
<p class=MsoNormal> op stop
interval="0" timeout="15" \<o:p></o:p></p>
<p class=MsoNormal> op monitor
interval="15" timeout="15" start-delay="15"<o:p></o:p></p>
<p class=MsoNormal>colocation col_res_nfs_1_res_IPaddr_1 inf: res_IPaddr_1
res_nfs_1<o:p></o:p></p>
<p class=MsoNormal>colocation col_res_nfslock_1_res_nfs_1 inf: res_nfslock_1
res_nfs_1<o:p></o:p></p>
<p class=MsoNormal>order ord_res_nfs_1_res_IPaddr_1 inf: res_nfs_1 res_IPaddr_1<o:p></o:p></p>
<p class=MsoNormal>property $id="cib-bootstrap-options" \<o:p></o:p></p>
<p class=MsoNormal>
stonith-enabled="false" \<o:p></o:p></p>
<p class=MsoNormal>
dc-version="1.0.9-89bd754939df5150de7cd76835f98fe90851b677" \<o:p></o:p></p>
<p class=MsoNormal>
cluster-infrastructure="Heartbeat" \<o:p></o:p></p>
<p class=MsoNormal> last-lrm-refresh="1284748883"<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>What is the trick to get NFS working with pacemaker. <o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><b><span style='font-size:8.0pt;font-family:"Tahoma","sans-serif";
color:#17365D'>Chuck Payne<o:p></o:p></span></b></p>
<p class=MsoNormal><b><span style='font-size:8.0pt;font-family:"Tahoma","sans-serif";
color:#92D050'>NEO Linux System Engineer<o:p></o:p></span></b></p>
<p class=MsoNormal><b><span style='font-size:8.0pt;font-family:"Tahoma","sans-serif"'>chuck.payne@vocolacity.com<o:p></o:p></span></b></p>
<p class=MsoNormal><b><span style='font-size:8.0pt;font-family:"Tahoma","sans-serif"'>Direct
> 404-537-1234<o:p></o:p></span></b></p>
<p class=MsoNormal><b><span style='font-size:8.0pt;font-family:"Tahoma","sans-serif"'>1375
Peachtree St NE, Suite 175, Atlanta, GA 30309<o:p></o:p></span></b></p>
<p class=MsoNormal><img width=139 height=49 id="Picture_x0020_1"
src="cid:image001.gif@01CB5678.E130D810" alt="signature_logo_w-tag"><span
style='color:#1F497D'><img width=60 height=61 id="Picture_x0020_2"
src="cid:image002.gif@01CB5678.E130D810" alt="SignatureInc500-starburst_2010"></span><o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal> <o:p></o:p></p>
</div>
</body>
</html>