Go Back   Technology Questions > Software Questions > Operating System Questions > Linux

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 06-24-2008, 11:10 AM
linuxnewbie1234
Tablet PC Guest
 
Posts: n/a
NFS export of unsupported filesystems (e.g. NFS re-export)

Hi all,
today I had to re-export a NFS mount. That is, the machine mounts a NFS
directory from an internal network, and has to export the same directory
(or better a part of it) to an external network.

nfs-kernel-server did not allow me to do that. It said
Warning: <directoryname> does not support NFS export
and then the client could not access. If I exported a parent directory,
the client could access the share but then when cd'ing to the inner
directory, it was presented as empty.

It turns out that not all NFS filesystems can be exported. In particular
NFS imports cannot apparently be re-exported!! (exactly which
filesystems are supported I could not find it into the manpages)
What was I supposed to do for re-exporting this?

What I did is to use "unfs3": the user mode NFS v3 server. That one was
able to export anything. But is it really guaranteed to work in the
cases where the kernel server couldn't? What could be the problems?

Thank you
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 06-24-2008, 11:10 AM
Xploder HD Movie Player for PS3. Manage, convert and transfer media files between the PC and PS3.
  #2 (permalink)  
Old 06-24-2008, 12:20 PM
J.O. Aho
Tablet PC Guest
 
Posts: n/a
Re: NFS export of unsupported filesystems (e.g. NFS re-export)

linuxnewbie1234 wrote:
> Hi all,
> today I had to re-export a NFS mount. That is, the machine mounts a NFS
> directory from an internal network, and has to export the same directory
> (or better a part of it) to an external network.


Reexport of NSf is never to recommend, better to let the external
network to import the NFS share over a ssh tunnel.

The reason is that things will not work properly, specially special
files like file locks and so on.


--

//Aho
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 06-25-2008, 01:30 AM
linuxnewbie1234
Tablet PC Guest
 
Posts: n/a
Re: NFS export of unsupported filesystems (e.g. NFS re-export)

J.O. Aho wrote:
> The reason is that things will not work properly, specially special
> files like file locks and so on.


Please elaborate on "and so on" because my knowledge is not enough to
figure it out by myself. Any pointer appreciated.

Is there any other means to have a remote mount, having full POSIX
semantics? Performances are probably not a priority in our case (unless
really terrible).

Thank you
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 06-25-2008, 12:50 PM
J.O. Aho
Tablet PC Guest
 
Posts: n/a
Re: NFS export of unsupported filesystems (e.g. NFS re-export)

linuxnewbie1234 wrote:
> J.O. Aho wrote:
>> The reason is that things will not work properly, specially special
>> files like file locks and so on.

>
> Please elaborate on "and so on" because my knowledge is not enough to
> figure it out by myself. Any pointer appreciated.


Whole your /dev, /sys and /proc are filled with different kind of
special files, which in many cases aren't working well when exported in
the first case and then bing re-exported they will be able to mess
things up even more.

You have symlinks, which works quite badly if you export those, as the
importing file system may lack the file they are pointing at.

There can also become trouble when writing files to the re-exported NFS
share, as it in it's turn has to write back to the original NFS, this
chain can cause a number of troubles, specially if a connection is lost
in the chain and in worst case that can cause to a complete lock down.


> Is there any other means to have a remote mount, having full POSIX
> semantics? Performances are probably not a priority in our case (unless
> really terrible).


NFS over SSH tunnel
http://www.math.ualberta.ca/imaging/snfs/

Already the SSH will slow things down, but it's a lot more sane way to
export NFS than re-exporting.


--

//Aho
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #5 (permalink)  
Old 07-02-2008, 04:00 AM
linuxnewbie1234
Tablet PC Guest
 
Posts: n/a
Re: NFS export of unsupported filesystems (e.g. NFS re-export)

linuxnewbie1234 wrote:
> Hi all,
> today I had to re-export a NFS mount.

.....
> What I did is to use "unfs3": the user mode NFS v3 server. That one was
> able to export anything.


Report:

In the next days, we experienced a lot of problems with the setup above.
The root user of the final client machine was able to see the imported
files, but normal users were only seeing empty directories and getting
"I/O Error"s. I don't know if it was because of an unfs3 bug or due to
the re-export, but it wasn't working.

Note that we had only normal data files, we didn't need locking, only
one user was accessing each file at a time, there were no special files,
there were no links etc. But it wasn't working anyway.

At the end we had to export directly from the first server, pinholing
the firewall, and using the in-kernel server.

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Export Contacts John Windows Vista 11 11-24-2007 12:50 PM
Export pst file Stan Microsoft Office 1 11-20-2007 02:40 PM
Export/Import Zygy Internet Explorer 1 10-28-2007 04:30 AM
PDA - SMS Export JH Pocket PC General 2 03-11-2007 02:30 PM
how to export all sms to txt? jamespb Smartphones 0 01-05-2007 05:16 AM


All times are GMT -8. The time now is 02:42 PM.


2003 - 2008 All Rights Reserved. Technology Questions

SEO by vBSEO 3.1.0