Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NFS: some sub-folders are not exported... [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
neoch
n00b
n00b


Joined: 26 Jan 2003
Posts: 38
Location: Switzerland

PostPosted: Sat Jul 10, 2004 1:24 pm    Post subject: NFS: some sub-folders are not exported... [solved] Reply with quote

On my server I have 4 hdd mounted as follows:
Code:
# /etc/fstab: static file system information.
# 40GB
/dev/hde1               /boot           ext2            noauto,noatime          1 1
/dev/hde3               /               ext3            noatime                 0 0
/dev/hde2               none            swap            sw                      0 0

# 100GB
/dev/hdg1               /data           reiserfs        noatime                 0 0

# 230GB
/dev/hdf1               /data/music     reiserfs        noatime                 0 0

# 30GB
/dev/sda1               /data/various   reiserfs        noatime                 0 0


And here is my /etc/exports:
Code:
/usr/portage/           192.168.80.0/255.255.255.0(rw,no_root_squash,sync)
/usr/local/portage/     192.168.80.0/255.255.255.0(rw,no_root_squash,sync)
/data/                  192.168.80.0/255.255.255.0(rw,no_root_squash,sync)

When I mount '/data/' on my workstation and on my laptop, sub-folders '/data/music/' and '/data/various/' are empty.... 8O 8O 8O
I tried exporting '/data/' with samba and there's no problem....

Any idea?

Thanks


Last edited by neoch on Sat Jul 10, 2004 2:38 pm; edited 3 times in total
Back to top
View user's profile Send private message
jdgill0
Veteran
Veteran


Joined: 25 Mar 2003
Posts: 1366
Location: Lexington, Ky -- USA

PostPosted: Sat Jul 10, 2004 1:48 pm    Post subject: Reply with quote

You need to export & mount the subfolders that have mount points themselves in the server's fstab, for example in exports:
Code:
/data/music                  192.168.80.0/255.255.255.0(rw,no_root_squash,sync)

Then for the client's fstab:
Code:
xxx.xxx.xxx.xxx:/data/music  /data/music  nfs ...............
Back to top
View user's profile Send private message
bokkepoot
Tux's lil' helper
Tux's lil' helper


Joined: 14 Mar 2003
Posts: 123
Location: The Hague, The Netherlands

PostPosted: Sat Jul 10, 2004 1:52 pm    Post subject: Reply with quote

You can either explicitly export and mount both directories (/data and /data/music)

OR

You can use the 'nohide' option in /etc/exports, which will (apparantly) only work for single hosts and not for ranges.
Back to top
View user's profile Send private message
neoch
n00b
n00b


Joined: 26 Jan 2003
Posts: 38
Location: Switzerland

PostPosted: Sat Jul 10, 2004 2:36 pm    Post subject: Reply with quote

Quote:
You need to export & mount the subfolders that have mount points themselves in the server's fstab

Now I understand.....

Thanks guys for your help !
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