Re: Files not visible across NFS



On Thu, 15 Mar 2007 16:51:02 +0530, "Sai Bhushan" <sbhushan@xxxxxxxxxxx>
said:
Hi,

I am facing a problem where-in some files are not visible across NFS and
hence, not able to read those files. However, after sometime, the files
become visible and the data is accessible. I have tried to do an 'ls -l'
operation on the directory and repeat it till the directory gets mounted
and visible. This works in some cases but sometimes fails as well.

Is there any reliable way of ensuring that the directory gets mounted
and all files in it are visible before accessing the data ??

Any help/pointers in this regard would be really great.

Hi,

Many Ubuntu users seem to be experiencing such problems on ubuntu-2.6.17
kernels:

https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.17/+bug/62308

In my experience, everything works fine as long as all
directory-elements in
the path on the nfs mount are set executable for user _and_others_. If
that
is not the case, files are available for about five seconds after the
first
access, after which they disappear. If I try to access the file again I
get
a "permission denied" message. No messages get logged.

For me, adding the "no_subtree_check" option in /etc/exports 'fixed' the
problem. I'm on ubuntu-2.6.17-11-generic on amd64. This works for me:

/home
192.168.22.0/255.255.255.0(rw,sync,no_subtree_check,mp=/home,fsid=12120)
/scratch
192.168.22.0/255.255.255.0(rw,sync,no_subtree_check,mp=/scratch,fsid=12121)

Anyhow, you did not give any information about your
distro/kernel/hardware?

Greetings,
Alexander

-Thanks & Regards
Sai

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel"
in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/


--
Alexander van Heukelum
heukelum@xxxxxxxxxxx

--
http://www.fastmail.fm - Does exactly what it says on the tin

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • 2.6.23.9 NFS BUG ?
    ... Sorry for repeating but as far as i can see 2.6.23.11/12 got no changes into NFS. ... The open syscall will return "Invalid argument" when O_TRUNC is set on existing files. ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)
  • NFS EINVAL on open(... | O_TRUNC) on 2.6.23.9
    ... into NFS. ... The open syscall will return ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)
  • Re: [Bug #13375] Kernel crash with 2.6.29 + nfs + xfs (radix-tree)
    ... 000000000000040c RDI: ffff88022628e360 ... npd!= pd' messages and am experiencing lots of 'stale NFS ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)
  • Re: [PATCH 00/28] Swap over NFS -v16
    ... Well I'm only vaguely an NFS person, barely a net person, sporadically ... patchset. ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)
  • Re: 2.6.23-rc2-mm1
    ... Andrew Morton pisze: ... I am experiencing some problems with 8139too ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)