[Linux-cluster] configuring NFS exports

Redding, Erik erik.redding at txstate.edu
Fri Nov 11 22:27:09 UTC 2011


I've been digging around for a bit and thought I'd ask the community.  I'm configuring a clustered NFS resource with a single "fs device", but I want to export the directories under the "fs device" - not just the whole device...I read somewhere that the <nfsexport> tag pulls the "left-side" of the /etc/exports file from the <fs> tag before and the <nfsclient> tag is like the right-side of the exports file but I was hoping there's some logical way to provide something more than a mountpoint in an nfs-cluster.

example:
I have a device: dev/vgexport/lvexport.  when mounted to /export, I run ls:

$ ls -al   
total 43                                                            
drwxrwxr-x    9 user user   9 Jan 13  2011 .                      
drwxr-xr-x+   7 user user   7 Mar  8  2009 ..                     
drwxrwxrwx  132 user user 132 Jan 25  2006 2005                   
drwxrwxrwx  355 user user 355 Dec 31  2006 2006                   
drwxrwxrwx  367 user user 367 Mar 25  2009 2007                   
                

I want to be able to export out each one of these directories inside the mount point as a separate nfs mount because they may not all be in the same directory tree. 

Here's my current definition inside of a service block:

<fs device="/dev/vgexport/lvexport" force_fsck="0" force_unmount="1" fsid="20855" fstype="ext3" mountpoint="/export" name="export-nfs-fs" options="_netdev" self_fence="0"/>
<nfsexport name="nfs-export"/>
<nfsclient name="client-nfs" options="rw" path="/export/" target="10.30.35.*"/>

My goal isn't to serve out the mount point itself, but the year-named folders inside to these clients, so can I do this?: 

<fs device="/dev/vgexport/lvexport" force_fsck="0" force_unmount="1" fsid="20855" fstype="ext3" mountpoint="/export" name="export-nfs-fs" options="_netdev" self_fence="0"/>
<nfsexport name="nfs-export"/>
<nfsclient name="client-nfs" options="rw" path="/export/2005" target="10.30.35.*"/>
<nfsclient name="client-nfs" options="rw" path="/export/2006" target="10.30.35.*"/>
<nfsclient name="client-nfs" options="rw" path="/export/2007" target="10.30.35.*"/>


Anyone run into this before or have any advice?  Thanks in advance!



Erik Redding
Core Systems
Texas State University-San Marcos







-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4897 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/linux-cluster/attachments/20111111/744da0e0/attachment.p7s>


More information about the Linux-cluster mailing list