Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 07-27-2009, 05:08 PM   #1
LQ Newbie
Registered: Jul 2009
Posts: 8

Rep: Reputation: 0
NFS export multiple mounted file systems under a single root

Hi there,

I am trying to mount an exported directory which has sub-directories which are mount-points for local(to the NFS server) file systems.


/dev/sdb1 mounted on /data/disk1
/dev/sdc1 mounted on /data/disk2
/dev/sdd1 mounted on /data/disk3

/etc/exports looks like:
/data IP.of.RO.system(ro,nohide,crossmnt)

When I mount the server:/data export from a linux client and ls /mntpnt/data2 I get "Stale NFS file handle" error. When I map via SFU on a windows client, I get a duplicate of the /data (disk1 disk2 disk3) forever and ever when drilling down into any folder.

According to man exports, the combo of nohide and crossmnt should make these data available for general consumption.
I've tried exports with no options, just nohide, just crossmnt, both nohide and crossmnt, with no_subtree_check, with async, and with sync.
UID:GID's (though for ro it shouldn't make any difference) match on client and server.

I've Googled about quite a bit for any explanation, and the best I could find was regarding exporting a remote (to the NFS server) file system, which is irrelevant in this case as the file systems are local to the server.

Any thoughts?

Thanks in advance,



As it turns out, for anyone who may care to do this, the solution was to be really redundant in my /etc/exports like so:

/data IP.of.RO.system(ro,nohide,crossmnt)
/data/disk1 IP.of.RO.system(ro,nohide,crossmnt)
/data/disk2 IP.of.RO.system(ro,nohide,crossmnt)
/data/disk3 IP.of.RO.system(ro,nohide,crossmnt)

exportfs -a

mount server:/data on a client system and voila(!) it is working now.


Last edited by AdamDaughterson; 07-28-2009 at 09:16 AM. Reason: I solved this myself
Old 07-28-2009, 09:51 AM   #2
Registered: Feb 2005
Location: London, UK
Distribution: Gentoo
Posts: 568

Rep: Reputation: 37
Hi thanks for solving your own problem

I have a similar one, discovering that my softlinks don't work remotely...
I was thinking this would be the solution but hadn't tested it yet.

Old 07-28-2009, 01:28 PM   #3
LQ Newbie
Registered: Jul 2009
Posts: 8

Original Poster
Rep: Reputation: 0
I wasn't able to use links in any fashion, and everything I've read states that it is by design. Mounting everything under the single /data root was my workaround to the links problem.


export, nfs

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
export NFS mounted file system via NFS smkamene Linux - Networking 3 02-10-2009 03:12 PM
Is multiple owners of a single file possible? can user1 own a file that root also own dave247 Debian 3 10-09-2008 04:53 AM
Installing rpm files onto nfs server root file systems WilNel Linux - Networking 0 05-17-2007 05:05 PM
single ext3 journal device multiple journaled file systems? reelwylde Linux - General 4 09-08-2005 03:00 PM
export a mounted Samba share w/NFS nifflerX Linux - Software 3 07-18-2005 11:29 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:54 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration