Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't mount nfs share: below nearest filesystem?? (solved)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
d0lby
Tux's lil' helper
Tux's lil' helper


Joined: 23 May 2003
Posts: 77
Location: Auckland/New Zealand

PostPosted: Thu Feb 19, 2004 3:54 pm    Post subject: Can't mount nfs share: below nearest filesystem?? (solved) Reply with quote

lol, funny how typing something out/writing down a problem can help you solve it sometimes!
Anyway, just in case someone else gets the same error message "below nearest filesystem" when trying to mount NFS, I'm going to post the symptoms and the solution - no point wasting all this typing!

Quote:
Hi, I'm having a problem mounting an exported directory from another computer (server) which on the server is mounted from secondary hard drive. Mounting other points off the server which do not contain mounts under it off of another device works fine.

my mount attempt:
Code:
auron root # mount -v /mnt/backupDir
mount: server:/mnt/backupDir failed, reason given by server: Permission denied


server says:
Code:
Feb 20 04:35:53 mog rpc.mountd: authenticated mount request from auron:690 for /mnt/backupDir (/)
Feb 20 04:35:53 mog rpc.mountd: request to export directory /mnt/backupDir below nearest filesystem /


but this works:
Code:
mount server:/ temp -v
mount: no type was given - I'll assume nfs because of the colon
server:/ on /root/temp type nfs (rw,addr=192.168.1.5)
auron root # ls temp/
.fetchids        dev              home             mnt              razor-agent.log  tmp
bin              etc              lib              opt              root             usr
boot             grub             lost+found       proc             sbin             var
auron root # ls temp/mnt/backupDir/
auron root #


temp/mnt/backupDir/ should contain (this is obtained by ssh'ing into the server):
Code:
mog root # ls /mnt/backupDir/
daily  hello  weekly


my relavent fstab:
Code:
server:/mnt/backupDir   /mnt/backupDir  nfs     auto,ro


server relavent exports:
Code:
/ auron(sync,rw,no_root_squash)


server relavent fstab:
Code:
/dev/hdd1       /mnt/backupDir          auto    auto,rw


Code:
mog root # mount
/dev/hdb3 on / type ext3 (rw,noatime)
none on /proc type proc (rw)
none on /dev type devfs (rw)
tmpfs on /dev/shm type tmpfs (rw)
/dev/hdd1 on /mnt/backupDir type ext3 (rw)


I'm sure this used to work, but no longer does - what am I missing? what do i have to turn on to enable a computer to mount something "below nearest filesystem"?
Googling for "below nearest filesystem" turns up nothing (this forum as well).
I had a look in the source code, and this error is thrown when something like the devices are not equal...
Must I export that directory seperatly?


omg, lol, I just thought of this idea as i was typing "Must I export that directory seperatly?" And it turns out that was what fixed it!
I just changed my exports to this:
Code:
/ auron(sync,rw,no_root_squash)
/mnt/backupDir auron(sync,rw,no_root_squash)

And now I can mount it successfully!
However, ls'ing on temp/mnt/backupDir still show's up nothing,
But if i mount server:/mnt/backupDir directly to another location, I can get the listing and access it fine...
Hmmm, interesting....
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum