[mythtv-users] OT: NFS craziness

mythtv at blandford.net mythtv at blandford.net
Sat Jul 12 21:37:51 UTC 2008


Mike Perkins wrote:
> Not strictly Myth, but definitely Myth-related, as the particular setup is one 
> that a number of you must use in one form or another.
> 
> As previously mentioned by me here, I cross-mount my video data drives as 
> follows (on all machines), where <this> is the local hostname and <that> is any 
> remote hostname:
> 
> in /etc/fstab:
> /dev/hdc1 /mnt/<this>/video ext3, relatime 1 2
> <that>:/mnt/<that> /mnt/<that> nfs noatime,rsize=8192,wsize=8192,nosuid,soft 0 0
> 
> in /etc/exports:
> /mnt/<this> 192.168.0.0/24(no_all_squash,async,secure,no_subtree_check,rw)
> 
> ...and this worked. Now, having purchased some extra disks, I realised I had to 
> modify my scheme as follows:
> 
> in /etc/fstab:
> /dev/hdc1 /mnt/<this>/hdc/video ext3, relatime 1 2
> /dev/hdd1 /mnt/<this>/hdd/video ext3, relatime 1 2
> <that>:/mnt/<that> /mnt/<that> nfs noatime,rsize=8192,wsize=8192,nosuid,soft 0 0
> 
> in /etc/exports as before:
> /mnt/<this> 192.168.0.0/24(no_all_squash,async,secure,no_subtree_check,rw)


You have to add each filesystem you are exporting into /etc/exports

/mnt/this/hdc/video
/mnt/this/hdd/video
etc

> ...adding an extra level to the mount tree to accomodate the extra drives. Now 
> the local machine can see these drives OK and read/write them. But the remote 
> machines can't. Sort of.
> 
> What I get is that the remote machines mount /mnt/<hostname>, and can see the 
> directories immediately underneath, ie hdc and hdd. But those directories are 
> empty, and the timestamps look as if they are the timestamps of the stub 
> directories the drives were mounted to. I can even create files in these 
> directories, but these don't appear on the filesystem as seen from the host 
> where they are locally mounted.

You also have to mount each filesystem on the remote machine.  You can't 
just mount a higher level like /mnt/this.


Michael



More information about the mythtv-users mailing list