[mythtv-users] [OT] Problem getting recordings working with NFS

Stephen Worthington stephen_agent at jsw.gen.nz
Thu Oct 17 01:35:54 UTC 2013


On Thu, 17 Oct 2013 12:17:48 +1100, you wrote:

>I've recently decided to move my recordings from local disk to NFS. I had
>it working with one NFS disk but then I installed a 2nd and ever since then
>I can't get it working. I think I May have misconfigured /etc/exports but
>according my searches it looks correct so I'm a bit stuck.
>
>On the NFS server I have 2 disks (sdb1 and sdb2 mounted on
>/srv/mythnfs/xvdb1 and /srv/mythnfs/xvdc1)
>
>/etc/exports
>------------------
>/srv/mythnfs
>192.168.0.0/24(rw,fsid=0,no_root_squash,insecure,no_subtree_check,async)
>/srv/mythnfs/xvdb1
>192.168.0.0/24(rw,fsid=0,no_root_squash,insecure,no_subtree_check,async)
>/srv/mythnfs/xvdc1
>192.168.0.0/24(rw,fsid=0,no_root_squash,insecure,no_subtree_check,async)
>
>
>But when i try to mount the NFS shares on my separate MythBackend:
>$ sudo mount -t nfs 192.168.0.154:/xvdb1 /mnt/xvdb1
>$ ls -l
>ls: cannot access mythdisk1: Stale NFS file handle
>total 16
>drwxr-xr-x  2 phill phill 4096 Oct 11 08:47 disk
>drwxrwxr-x 12 phill phill 4096 Oct 11 20:32 xvdb1
>drwxr-xr-x  2 phill phill 4096 Oct 17 06:34 xvdc1
>phill at mbe:/mnt$ ls -l xvdb1/
>[  507.455519] NFS: server 192.168.0.154 error: fileid changed
>[  507.455522] fsid 0:16: expected fileid 0x2, got 0x603f7
>ls: cannot open directory xvdb1/: Stale NFS file handle
>
>Can anyone see what i'm doing wrong here? I'm pretty sure it's a
>misconfiguration on the NFS server but don't know exactly what.
>
>P.S. I've done multiple reboots of NFS server and MythBackend but always
>get the "Stale NFS file handle" problem.

I am no expert at all with NFS, but I just checked my working
/etc/exports, and the thing that I can see that is different is the
fsid values.  Your first (root) entry should be fsid=0, and all the
others should be different integer values.  The fsid identifies the
filesystem and has to be different for each entry.  I just have mine
as 0, 1, and 2.


More information about the mythtv-users mailing list