You are not logged in.

#1 2007-12-11 20:39:48

peque
Member
From: Denmark - Møn
Registered: 2005-06-26
Posts: 441

Subdirectories in NFS mount

Hey Forum.

After doing some setup around MythTV - I've ran into a little problem that I cannot get to work

The plan is to get at Backend running - with all the music,movies etc placed centrally on the mainserver. So would use nfs to make the share - and mount the dir at the small machines.  But something is not rigth.

The main server has a directory called /storage
In that dir - I have 4 subdirs: music, movies,records and pictures  with internal HD mounted in following dir
sda --> holds the root system
sdb1 --> mountet in /storage/music
sdc1 --> mountet in /storage/records
sdd1 --> mountet in /storage/movies

I have added the portmap,nfslock and nfsd  to DAEMONS in rc.conf. My /etc/exports looks like this:

/storage 172.16.20.1/24(rw,sync,no_root_squash,subtree_check)

And my fstab for the mounted hd looks like this :

/dev/sdb1 /storage/music        ext3    defaults        0 1
/dev/sdc1 /storage/records      ext3    defaults        0 1
/dev/sdd1 /storage/movies       ext3    defaults        0 1

On the Clients it looks like this:
I have added the portmap and nfslock in DAEMONS. my fstab looks like this:

172.16.20.10:/storage /storage  nfs     rsize=32768,wsize=32768 0       1

I run gigabit networking at home.

Well the problem is this :
On the client I can see the 4 directories from the mainserver, but cannot see anything in the dir music eventhough there's 14GB of music in it on the mainserver.
Am I doing something wrong or is there a better way to do this - But why am I able to see the directories in /storage on the Mainserver - but not the content in them.
What is my mistake here ????

Thanks

P


This looks t


Just getting better .... All the time

Offline

#2 2007-12-11 20:55:36

tam1138
Member
Registered: 2007-09-10
Posts: 238

Re: Subdirectories in NFS mount

Unfortunately, this is the way NFS works: it doesn't cross device boundaries.  You've got to separately mount each share on the client.

Offline

#3 2007-12-12 19:08:10

briest
Member
From: Katowice, PL
Registered: 2006-05-04
Posts: 468

Re: Subdirectories in NFS mount

You can try nohide option in /etc/exports. It has some drawbacks, though; read about it in man exports.

Offline

Board footer

Powered by FluxBB