LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-09-2006, 10:29 AM   #1
Gort32
Member
 
Registered: Sep 2004
Distribution: Slack!
Posts: 150

Rep: Reputation: 15
NFS issues - mountpoints within mountpoints


I currently have a server that is mounting a sm share to another box. I would now like to mount the directory just below this smbfs mountpoint on my laptop

root@server:~# mount -t smbfs -o ..... //anotherserver/foo /mnt/foo
root@laptop:~# mount server:/mnt /mnt/server

Both of these mounts work. On my laptop I can see the contents of the server:/mnt in /mnt/server. However, when I browse to the foo directory on my laptop, the directory appears empty from the perspective of my laptop. I receive no error messages on either end.

I assume that this is a "feature" of NFS that I cannot browse to another remote filesystem, possibly a feature that can be changed with a flag somewhere? The man page for exports gives no information about this problem however.

PS: Mounting the share on anotherserver is not an option due to SSH tunneling going on.
 
Old 08-12-2006, 11:01 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
/mnt doesn't really contain the NFS directory. It contains the mountpoint directory. You see the NFS directory on the original machine because you mounted the NFS directory on the mountpoint. The share from there however doesn't include the NFS but only the mountpoint (empty directory).

This is a known feature of NFS and by the way is how admins sometimes check to make sure something isn't filling up space on a filesystem that they can't see. If the mountpoint directory were NOT empty before the NFS mount you would no longer see the files contained in the mountpoint directory after the NFS mount but rather see the files from the NFS share there. Despite this the original files are still there taking up space. Suddenly /mnt goes 100%. You clean up as much as you can but the results of df -k and du -skx on the same filesystem don't agree because du can't see the space used by those files but df know's they're there.

Your solution would be to share out the mount to both other servers. In your fstab on the second server mount the /mnt from the first servers BEFORE you mount the samba share on top of it. However having submounts like that risks some odd network behavior if one of the servers goes away but the other doesn't. Were it me I'd share out both to the last server and put a symbolic link in /mnt to the second share (/mnt2). That way its accessible if mounted but only missing if not.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
No mountpoints defined after magic partition... jiapei100 Linux - General 1 06-30-2005 06:17 AM
Are these good mountpoints cheetahman SUSE / openSUSE 9 04-14-2005 11:21 AM
Suse : Why double mountpoints ? CloudBuilder Linux - Newbie 3 11-06-2003 12:12 PM
No Mountpoints defined Zvezda Linux - General 0 12-22-2001 11:54 AM
Linux 7.1 mountpoints Wolfie2001 Linux - Newbie 4 10-11-2001 01:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:58 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration