LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 01-20-2010, 06:07 AM   #1
edubidu
Member
 
Registered: Mar 2007
Location: Switzerland
Distribution: Ubuntu
Posts: 32

Rep: Reputation: 15
Question mounting nfs from a mounted nfs


Hi all,

Isn't there a possibility to mount yet a mounted nfs filesystem?
I'am in this obligation because I installed a private network that accesses to a router.
On the router, a /home/staff is mounted from a third server(thrdsvr).

Now I find no way to mount /home/staff on the private network from the router, because /home/staff ist yet a mounted nfs share.

I installed the squid proxy on the router, maybe I can configure something to access directly from the private network to the third server?

All the machines are ubuntu linux, just the third server is a Sun Nas Head.

Btw. I'm sure the exports has been setted correctly on the router.

Any ideas?
Thany you for help!!
edubidu
 
Old 01-20-2010, 10:11 AM   #2
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,227

Rep: Reputation: 86
Try to locally mount the first mounted nfs, using the bind option of the mount command. You mount it in a new folder.
Then re-export this new folder.
 
Old 01-20-2010, 12:48 PM   #3
edubidu
Member
 
Registered: Mar 2007
Location: Switzerland
Distribution: Ubuntu
Posts: 32

Original Poster
Rep: Reputation: 15
So I tried this:

on the router:
/home/staff is mounted with automounter
mounting now /home/staff with the bind option on /mnt
Quote:
root@router:~# mount --bind /home/staff /mnt
Adding /mnt in /etc/exports and activating it:
Quote:
/mnt 192.168.1.0/24(rw,no_root_squash,async)
Quote:
root@router:~# /etc/init.d/nfs-kernel-server stop
root@router:~# /etc/init.d/nfs-kernel-server start
root@router:~# exportfs
/mnt 192.168.1.0/24
Trying to mount /mnt on the private network:
Quote:
root@router:~# ssh privatenet
root@privatenet:~# mount router:/mnt /home
mount.nfs: access denied by server while mounting router:/mnt
Error msg: mount.nfs: access denied by server while mounting router:/mnt

Last edited by edubidu; 01-21-2010 at 02:22 AM.
 
Old 01-21-2010, 02:38 AM   #4
edubidu
Member
 
Registered: Mar 2007
Location: Switzerland
Distribution: Ubuntu
Posts: 32

Original Poster
Rep: Reputation: 15
I tried also with ln -s nothing to do...

Last edited by edubidu; 01-21-2010 at 03:57 AM.
 
Old 01-21-2010, 09:55 AM   #5
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,227

Rep: Reputation: 86
I though it works...
Is /etc/hosts.deny empty ?
 
Old 01-22-2010, 03:02 AM   #6
edubidu
Member
 
Registered: Mar 2007
Location: Switzerland
Distribution: Ubuntu
Posts: 32

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Linux.tar.gz View Post
Is /etc/hosts.deny empty ?
yes, it is.

But I discovered something that makes me more ?????

I have another third server, let's name it "storage".
This one works.
Now I think: could it be because of the special configuration of the /home/staff ?
Let me explain:

THIS WORKS:
The automounter on the router /etc/auto.cluster
Quote:
storage -fstype=nfs storage:/export/HPC_cluster/cluster_storage
The /etc/exports on the router:
Quote:
/export/storage 192.168.1.0/24(rw,no_root_squash,async)
The folders in /export on the router:
Quote:
root@router:/export# ls -la
total 20
dr-xr-xr-x 5 root root 4096 2010-01-21 11:33 .
drwxr-xr-x 24 root root 4096 2010-01-21 10:20 ..
drwxrwxrwx 5 root root 4096 2010-01-04 12:09 storage
Show some subfolders on the router:
Quote:
root@router:/export/storage# ls
anothertest test
ssh to the private network machine, mount manually the storage:
Quote:
root@privatenet:~# mount router:/export/storage /mnt
root@privatenet:~# cd /mnt
root@privatenet:/mnt# ls -la
total 20
drwxrwxrwx 5 root root 4096 2010-01-04 12:09 .
drwxr-xr-x 22 root root 4096 2010-01-21 11:54 ..
drwxr-xr-x 2 root root 4096 2010-01-04 12:09 anothertest
drwxr-xr-x 2 root root 4096 2010-01-04 10:25 test
-->> all ok, even I can show, read, write subfolders and files.

MY NEXT MESSAGE WILL SHOW WHAT DOES NOT WORK.
 
Old 01-22-2010, 03:54 AM   #7
edubidu
Member
 
Registered: Mar 2007
Location: Switzerland
Distribution: Ubuntu
Posts: 32

Original Poster
Rep: Reputation: 15
This message shows what does not work:

Now, I try the same with /home/staff, mounted on /home/staff on the router from thrdsvr and bind to another dir. It does not work.

The automounter on the router /etc/auto.home.staff
Quote:
* -fstype=nfs thrdsvr:/vol02/staff/&
Note: the difference here from the storage server is:
a) another server (not "storage" but "thrdsvr"),
b) the *
c) and the & at the end of the line
--> conclusion 1: It might be a configuration of the third servers that could be the cause.

The /etc/exports file on the router
Quote:
/export/home 192.168.1.0/24(rw,no_root_squash,async)
Note: the difference here from the storage server is: I will mount or ln -s the mounted /home/staff in this /export/home folder:
Quote:
root@router:/home/staff# ls
member1 member2 member3
root@router:/home/staff# mount --bind /home/staff /export/home
root@router:/export/home# ls
member1 member2 member3
ssh to the private network machine, mount manually from the router the mounted /home/staff (mounted from thrdsrv) binded to /export/home:
Quote:
root@privatenet: mount router:/export/home /mnt
mount.nfs: access denied by server while mounting router:/export/home
--> conclusion 2: either the problem is something with nfsv3 or nfsv4 or something with the thrdsrv or because of the difference of entries of the automounter, I think. Or what am I doing wrong ???
 
  


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
A loop device mounted within an NFS share is not accessible via NFS? srikanthnv Linux - Software 17 12-18-2011 09:31 AM
export NFS mounted file system via NFS smkamene Linux - Networking 3 02-10-2009 03:12 PM
NFS mount mount.nfs: access denied by server while mounting knockout_artist Linux - Newbie 2 11-26-2008 02:36 PM
nfs client on knoppix 3.9 - problem mounting nfs drive Rod Butcher Linux - Networking 1 09-21-2005 04:18 AM
NFS: a mounted to b, b mounted to c, c can't read a? Steve Cronje Linux - Networking 9 10-25-2004 09:51 AM


All times are GMT -5. The time now is 03:39 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