[mythtv-users] OT: NFS craziness

Paul Bender pebender at san.rr.com
Sat Jul 12 21:34:11 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)
> 
> ...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.
> 
> This situation is symmetrical across all my machines. All machines have the same 
> UID and GID settings (apart from some of the obscure utilities like avahi and 
> bacula). All directories are owned by mythtv, group video, permissions 775, on 
> all machines.
> 
> I wondered if it was something barmy like the mounts were getting nfs exported 
> before the drives were mounted under the tree, but soon realised that wasn't 
> possible.
> 
> I'm banging my head with this one, and it means I can't use my extra storage. 
> Anyone got a clue bat handy?

I believe that you need to add the option 'nohide' to the exports.



More information about the mythtv-users mailing list