From: "Jeffrey J. Kosowsky" <linux-kernel@kosowsky.org>
To: linux-kernel@vger.kernel.org
Subject: NFS directory corruption with Ext3 but not Ext2 (in older embedded kernel)
Date: Mon, 17 Nov 2008 12:44:01 -0500 [thread overview]
Message-ID: <18721.44385.649149.611080@consult.pretender> (raw)
I have encountered the following interaction issue between NFS and
Ext3 (but not Ext2) on an embedded 2.6.12.6 kernel (yes, I know it is
old but I can't upgrade it because of hardware interface issues).
Problem:
When accessing files from the NFS client, various files and
subdirectories on the NFS mount randomly seem to disappear, resulting
in errors when either they or their parent directory is listed.
Specifically, I repeatedly find that after some mildly intensive
directory access operations (e.g. ls'ing several large directories or
using find on root), that subsequent file or directory access
operations to the same directories return file/directory access areas
on a subset of their contents. Thus "chunks" of the NFS filesystem
seem to randomly be dropped.
- This behavior persists until either the NFS server is restarted or
until the same file/directory is accessed from the NFS
server. Remounting the NFS share does not fix the problem.
- Note that at all times the files/directories remain accessible from
the NFS server under the normal ext3 (or ext2) filesystem.
- The timing and selection of which files "disappear" appears to be
random, though once a file is inaccessible, it stays that way until
its presence is reset as above.
- This behaviour only occurs when the partition is mounted as ext3 but
not as ext2. Also, it only happens with kernel-space nfsd (not with
user-space unfsd).
- Changing the various nfs settings such as turning on/off caching,
changing the rsize/wsize, using sync vs. async or hard vs. soft have
no effect.
- There doesn't seem to be any (permanent) filesystem corruption
except as a direct side effect of NFS-client side programs
potentially operating on missing files/directories.
To my layman's eyes, this behavior suggests that there is something
wrong with how ext3 is caching (or marking as cached) directory/file
lookups and sharing this information with other kernel processes (like
nfsd) requiring access to the filesystem directory.
Has anybody seen this problem before and if so is it possible to
fix/patch?
Again, I can't upgrade the kernel because of compatibility with the
embedded hardware.
Thanks!
reply other threads:[~2008-11-17 17:44 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=18721.44385.649149.611080@consult.pretender \
--to=linux-kernel@kosowsky.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®