[DRBD-user] DRBD and /var/lib/nfs

William Seligman seligman at nevis.columbia.edu
Fri Nov 18 18:41:47 CET 2011

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


I just read the (excellent) document on setting up NFS storage with DRBD and
Pacemaker:

<http://www.linbit.com/en/education/tech-guides/highly-available-nfs-with-drbd-and-pacemaker/>

What's in that guide is not the way I did it. I'd like to know if I made a mistake.

In my current Pacemaker+DRBD+NFS cluster, I export directories by editing lines
in /etc/exportfs on the server, and have a cron job copy /etc/exportfs from my
primary to my secondary in case I make any changes. The NFS server is under the
control of Pacemaker.

Initially I had problems with failover, and conclude (wrongly?) that the issue
was the NFS server state in /var/lib/nfs. I added that directory to the DRBD
volume, so that /var/lib/nfs would be consistent between primary and secondary
during failover. This works, mostly; I can "service corosync stop" on the
primary and everything transfers smoothly to the secondary, but I have to reboot
the primary before can I transfer resources back to that same box; otherwise I
get NFS errors.

While reading the above document, I just learned about the Pacemaker exportfs
resource. *headdesk* Is that the correct way to do it? If I used that resource,
would I have to worry about maintaining state information in /var/lib/nfs across
my cluster nodes?
-- 
Bill Seligman             | Phone: (914) 591-2823
Nevis Labs, Columbia Univ | mailto://seligman@nevis.columbia.edu
PO Box 137                |
Irvington NY 10533 USA    | http://www.nevis.columbia.edu/~seligman/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4497 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20111118/413a5495/attachment.bin>


More information about the drbd-user mailing list