LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 09-02-2004, 12:32 PM   #1
ejoftheweb
LQ Newbie
 
Registered: Sep 2004
Location: brixton, london
Distribution: mandrake, gentoo
Posts: 4

Rep: Reputation: 0
NFS doesn't export everything


I have two boxes at home, one (the client, my workstation) running Mandrake 10, the other (the server) running Gentoo 2004.2.

The server is headless and I use ssh to get a command line on it, that works fine. (I also use webmin).

I run NFS on the server and have exported the root directory (rw) so I can mount its filesystem under
/mnt/server in my workstation - I've put the appropriate entry in /etc/fstab, and mount and umount behave as expected. So far so good (if not terribly secure, but it's all local).

Now, I open two shells, one on the client, the other via ssh on the server.

In the client shell if I type

ls -l /mnt/server I get (almost) the same listing as typing ls -l / in the server shell - so the filesystem is mounted and browseable, up to a point.

But when I look into the subdirectories, it is very different. Actually there is a clue in the root listing because the number of files in each directory is different depending on whether it is viewed via the NFS mount or directly through the ssh shell.

Permissions doesn't seem to be the problem, because there are two files with identical ownership and permissions in the directory concerned - one shows up via NFS, the other doesn't.

The only line in /etc/exports on the server reads:


Code:
 /       192.168.0.3(insecure,no_root_squash,rw)
I'm baffled but suspect there is something obvious I'm missing.
 
Old 09-02-2004, 04:54 PM   #2
bobwall
Member
 
Registered: Jul 2004
Location: Milpitas, California
Distribution: 1/2 Debian 1/2 my own
Posts: 189

Rep: Reputation: 30
Is that file on a different file system? I think NFS by default doesn't export files that reside on another file system from the root. (i.e. doesn't export /drive_c if /drive_c is on an ntfs partition).
 
Old 09-02-2004, 05:30 PM   #3
ejoftheweb
LQ Newbie
 
Registered: Sep 2004
Location: brixton, london
Distribution: mandrake, gentoo
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks, bobwall...

The server filesystem is entirely ext3, but the directory I'm most concerned with (/opt on the server) is on a different partition... so maybe nfs doesn't recognise that /dev/hde8 is mounted on /opt ... it would explain the baffling inconsistency.

So, next question, how do I get nfsd on the server to recognise the filesystem as described in the server's /etc/fstab? Is there an option to set?

If anyone reading this has the answer readily to hand I'd be very grateful for an overnight reply (it's way past my bedtime here) which would save me some time googling for it tomorrow morning ... when I really should be working.
 
Old 09-02-2004, 05:41 PM   #4
bobwall
Member
 
Registered: Jul 2004
Location: Milpitas, California
Distribution: 1/2 Debian 1/2 my own
Posts: 189

Rep: Reputation: 30
try adding nohide to the mount options in fstab
 
Old 09-02-2004, 05:44 PM   #5
bobwall
Member
 
Registered: Jul 2004
Location: Milpitas, California
Distribution: 1/2 Debian 1/2 my own
Posts: 189

Rep: Reputation: 30
BTW, nohide is not a very good. See http://linux.about.com/library/cmd/blcmdl5_exports.htm
 
Old 09-03-2004, 03:29 AM   #6
ejoftheweb
LQ Newbie
 
Registered: Sep 2004
Location: brixton, london
Distribution: mandrake, gentoo
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for this bobwall.

After reading up I've no reconfigured it so that each server mount point is exported separately and it seems to work, for now at least and on what I need to do, if not as simply and as elegantly as I'd hoped...
 
  


Reply


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 directories via NFS nifflerX Linux - Networking 3 07-07-2005 01:21 AM
Export NFS behind firewall nifflerX Linux - Networking 2 07-06-2005 02:41 PM
smb mount -> nfs export wie20345 Linux - Networking 3 02-12-2005 02:09 PM
export directories via NFS on redhat 8.0 nifflerX Linux - Networking 1 01-16-2004 02:09 AM
local access of NFS export joeljensen Linux - Networking 1 04-29-2003 12:08 PM


All times are GMT -5. The time now is 01:59 PM.

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