LinuxQuestions.org
Help answer threads with 0 replies.
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 10-04-2014, 10:19 AM   #1
blnl
Member
 
Registered: Nov 2009
Location: The Netherlands
Distribution: Fedora
Posts: 93

Rep: Reputation: 1
Question How to access NFS mount trough NFS mount


On my NAS (DNS-325) I have mounted my other NAS (DNS-323) in the /dsk/FIL/.restore directory:
Code:
root@DNS-325:/mnt/HD/HD_a2/FIL# pwd
/dsk/FIL
root@DNS-325:/mnt/HD/HD_a2/FIL# la
total 68K
drwxr-xr-x 12 boris users 4.0K Oct  4 06:00 .restore
dr-xr-xr-x  5 boris users 4.0K Nov 15  2011 COMPUTER
dr-xr-xr-x  8 boris users 4.0K Apr 14  2011 DOCUMENTS
dr-xr-xr-x  8 boris users 4.0K Jan  1  2014 HOBBY
dr-xr-xr-x 13 boris users 4.0K Apr 26 20:24 IMAGES
dr-xr-xr-x  6 boris users 4.0K Jan  1  2014 MUSIC
dr-xr-xr-x  5 boris users 4.0K Apr 14  2011 OTHER
dr-xr-xr-x  3 boris users  40K Jun 15 10:44 VIDEOS
root@DNS-325:/mnt/HD/HD_a2/FIL# ll .restore/
total 40K
drwxr-xr-x 9 boris users 4.0K Oct  4 06:00 backup.0
drwxr-xr-x 9 boris users 4.0K Oct  4 06:00 backup.1
drwxr-xr-x 9 boris users 4.0K Oct  4 06:00 backup.2
drwxr-xr-x 9 boris users 4.0K Oct  4 06:00 backup.3
drwxr-xr-x 9 boris users 4.0K Oct  4 06:00 backup.4
drwxr-xr-x 9 boris users 4.0K Oct  4 06:00 backup.5
drwxr-xr-x 9 boris users 4.0K Oct  4 06:00 backup.6
drwxr-xr-x 9 boris users 4.0K Oct  4 06:00 backup.7
drwxr-xr-x 9 boris users 4.0K Oct  4 06:00 backup.8
drwxr-xr-x 9 boris users 4.0K Oct  4 06:00 backup.9
root@DNS-325:/mnt/HD/HD_a2/FIL#
NAS (DNS-325) itself is mounted on my PC in the /mnt/NASfiles directory:
Code:
[boris@e6410dl NASfiles]$ pwd
/mnt/NASfiles
[boris@e6410dl NASfiles]$ la
total 68K
drwxr-xr-x.  2 root  root  4.0K Sep 25 19:39 .restore
dr-xr-xr-x.  5 boris users 4.0K Nov 15  2011 COMPUTER
dr-xr-xr-x.  8 boris users 4.0K Apr 14  2011 DOCUMENTS
dr-xr-xr-x.  8 boris users 4.0K Jan  1  2014 HOBBY
dr-xr-xr-x. 13 boris users 4.0K Apr 26 20:24 IMAGES
dr-xr-xr-x.  6 boris users 4.0K Jan  1  2014 MUSIC
dr-xr-xr-x.  5 boris users 4.0K Apr 14  2011 OTHER
dr-xr-xr-x.  3 boris users  40K Jun 15 10:44 VIDEOS
[boris@e6410dl NASfiles]$ ll .restore/
total 0
[boris@e6410dl NASfiles]$
The problem is, as you can see above, that from my PC (192.168.1.221) I can't read the files that are on my other NAS (DNS-323), i.e. /mnt/NASfiles/.restore directory is empty.

DNS-323 (192.168.1.220) contains following export:
Code:
/mnt/HD_a2/FIL 192.168.1.230(ro,root_squash,no_subtree_check) 192.168.1.221(ro,root_squash,no_subtree_check) 192.168.1.222(ro,root_squash,no_subtree_check)
DNS-325 (192.168.1.230) contains following export:
Code:
/mnt/HD/HD_a2/FIL 192.168.1.221(rw,no_root_squash,no_subtree_check) 192.168.1.222(rw,no_root_squash,no_subtree_check)
The mounting of DNS-323 is implemented as follows:
Code:
mount 192.168.1.220:/mnt/HD_a2/FIL /dsk/FIL/.restore
The mounting of DNS-325 is implemented as follows:
Code:
[boris@e6410dl NASfiles]$ cat /etc/fstab | grep FIL
192.168.1.230:/mnt/HD/HD_a2/FIL           /mnt/NASfiles           nfs     defaults,retry=1   0 0
I suppose that some options are missing, either in export or mount, that are preventing me to see through NFS hierarchy layers.
Can anyone help please?
 
Old 10-04-2014, 11:39 AM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
I don't think you can do that with NFS. Your best option in my opinion is to just mount both NFS shares on your PC separately. You don't have to change the directory structure, just add a second mount in your fstab.
 
1 members found this post helpful.
Old 10-04-2014, 06:26 PM   #3
blnl
Member
 
Registered: Nov 2009
Location: The Netherlands
Distribution: Fedora
Posts: 93

Original Poster
Rep: Reputation: 1
Thumbs up

Quote:
Originally Posted by suicidaleggroll View Post
I don't think you can do that with NFS. Your best option in my opinion is to just mount both NFS shares on your PC separately. You don't have to change the directory structure, just add a second mount in your fstab.
You are right I, it is possible. Excellent suggestion...
I was able to mount second mount-point within the first mount-point on the PC directly.

Code:
[root@e6410dl mnt]# mount 192.168.1.230:/mnt/HD/HD_a2/FIL temp/
[root@e6410dl mnt]# ls -la temp/
total 76
drwxr-xr-x. 10 boris users  4096 Sep 25 19:39 .
drwxr-xr-x. 10 root  root   4096 Oct  4 23:42 ..
drwxr-xr-x.  2 root  root   4096 Sep 25 19:39 .restore
dr-xr-xr-x.  5 boris users  4096 Nov 15  2011 COMPUTER
dr-xr-xr-x.  8 boris users  4096 Apr 14  2011 DOCUMENTS
dr-xr-xr-x.  8 boris users  4096 Jan  1  2014 HOBBY
dr-xr-xr-x. 13 boris users  4096 Apr 26 20:24 IMAGES
dr-xr-xr-x.  6 boris users  4096 Jan  1  2014 MUSIC
dr-xr-xr-x.  5 boris users  4096 Apr 14  2011 OTHER
dr-xr-xr-x.  3 boris users 40960 Jun 15 10:44 VIDEOS
[root@e6410dl mnt]# ls -l temp/.restore/
total 0
[root@e6410dl mnt]# mount 192.168.1.220:/mnt/HD_a2/FIL temp/.restore/
[root@e6410dl mnt]# ls -l temp/.restore/
total 40
drwxr-xr-x. 9 boris users 4096 Oct  4 06:00 backup.0
drwxr-xr-x. 9 boris users 4096 Oct  4 06:00 backup.1
drwxr-xr-x. 9 boris users 4096 Oct  4 06:00 backup.2
drwxr-xr-x. 9 boris users 4096 Oct  4 06:00 backup.3
drwxr-xr-x. 9 boris users 4096 Oct  4 06:00 backup.4
drwxr-xr-x. 9 boris users 4096 Oct  4 06:00 backup.5
drwxr-xr-x. 9 boris users 4096 Oct  4 06:00 backup.6
drwxr-xr-x. 9 boris users 4096 Oct  4 06:00 backup.7
drwxr-xr-x. 9 boris users 4096 Oct  4 06:00 backup.8
drwxr-xr-x. 9 boris users 4096 Oct  4 06:00 backup.9
[root@e6410dl mnt]#
I'll give it a try and implement in fstab...
 
  


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
how to mount a nfs mount from linux client to AIX nfs server dennyqian AIX 13 04-12-2016 12:30 AM
[SOLVED] NFS mount fails (times out): NFS server is in DMZ, NFS client is in intranet Hiroshi Linux - Networking 2 05-24-2010 11:22 AM
mount.nfs: mount to NFS server 'jesse' failed: timed out, retrying keupie Linux - Networking 3 06-05-2009 08:03 PM
NFS mount mount.nfs: access denied by server while mounting knockout_artist Linux - Newbie 2 11-26-2008 03:36 PM
can't access ntfs mount through nfs mount bezoomny Linux - Networking 9 04-14-2004 11:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:37 AM.

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