From: Richard Weinberger <richard@nod.at>
To: Eric Sandeen <sandeen@sandeen.net>
Cc: Dave Chinner <david@fromorbit.com>,
linux-fsdevel@vger.kernel.org, xfs@oss.sgi.com
Subject: Re: [PATCH] Do not check ocfs2
Date: Sun, 3 Mar 2013 23:53:41 +0100 [thread overview]
Message-ID: <20130303235341.7470085e@spider.haslach.nod.at> (raw)
In-Reply-To: <5133D15A.9010600@sandeen.net>
Am Sun, 03 Mar 2013 16:40:26 -0600
schrieb Eric Sandeen <sandeen@sandeen.net>:
> On 3/3/13 4:19 PM, Richard Weinberger wrote:
> > Am Sun, 03 Mar 2013 16:04:48 -0600
> > schrieb Eric Sandeen <sandeen@sandeen.net>:
> > > > Using xfstests I was able to trigger dlm issues in ocfs2.
> >>> I ran xfstests on one node and other nodes had it mounted too.
> >>
> >> Just for my own education, how does that happen?
> >>
> >> Were you testing on filesystems already configured into a cluster,
> >> or did the cluster somehow pick up your newly-defined test
> >> fileystems and mount them?
> >
> > The cluster is already configured. But a single node can
> > mount/unmount the fs as it wants.
>
> Ok, so:
> a) your cluster is already configured, and
> b) other nodes can mount cluster filesystems
Correct.
> Sure, but - how *did* other nodes mount your xfstest filesystems?
> Or did you configure xfstests to use something already configured
> to be mounted on multiple nodes?
>
> Perhaps another related question - did the fs *need* to be mounted
> on other nodes to expose the problems you found?
Yes, seems so.
> I'm just trying to understand if this is a common case, or unique to
> how you have configured things.
>
> > I know, xfstests is not a perfect test case for ocfs2 but it
> > allowed me to trigger issues...
> > These issues can also be triggered without xfstests. But in my case
> > I found them using xfstests.
>
> I understand, I'm not suggesting that you not run xfstests; I'm sure
> it is useful. It's supposed to be. :) We just need to keep it
> useful & not disable the consistency checks unless it's necessary.
Fair point.
> >> How does fsck.ocfs2 behave when you run it on one node, when the
> >> fs is mounted on others? Will it proceed w/ no knowledge of the
> >> fact that it's mounted elsewhere?
> >
> > It refuses to check the fs and exists with an error code != 0.
>
> Ok, then that confuses me a little, because earlier you said:
>
> > To ensure that fsck.ocfs2 will not corrupt the filesystem
>
> but just now you said it won't run at all? Anyway...
In the first test run I faced a filesystem corruption and blamed
fsck.ocfs2. After writing the mail I realized that fsck.ocfs2 aborted
and the corruption came from another issue.
Sorry for being imprecise.
> > From the manpage:
> > -F By default fsck.ocfs2 will check with the cluster
> > services to ensure that the volume is not in-use (mounted) on any
> > node in the cluster before proceeding. -F skips this check and
> > should only be used when it can be guaranteed that the volume is
> > not mounted on any node in the cluster. WARNING: If the cluster
> > check is disabled and the volume is mounted on one or more nodes,
> > file system corruption is very likely. If unsure, do not use this
> > option.
>
> Ok, but xfstests wasn't *using* -F was it?
Correct.
> Anyway, what if you did something more along the lines of [pseudocode]
>
> ocfs2)
> if mounted.ocfs2 -f $TEST-DEV | frob_as_necessary[1]
> ;
> else
> fsck.ocfs2 $TEST-DEV
> fi
> ;;
>
> so that *if* it's mounted on some other node, the fsck won't run.
> That has downsides as Dave mentioned, but for the case where the
> xfstests node is the only one with it in use, it'll still do the
> beneficial consistency check.
>
> Just tweaking the fsck action bsed on *if* it's mounted (or,
> maybe, if the node is in a cluster?) might be a more generic solution
> that is widely applicable to all ocfs2 test environments.
Good point. mounted.ocfs2 really makes sense. I'll implement this on my
test suite and submit a new patch.
> Thanks,
> -Eric
>
> [1] I know next to nothing about ocfs2, but presumably one can detect
> if the device in question is configured into, or mounted in, a
> cluster?
I'll find out!
Thanks,
//richard
next prev parent reply other threads:[~2013-03-03 22:53 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-03 0:05 [PATCH] Do not check ocfs2 Richard Weinberger
2013-03-03 1:19 ` Dave Chinner
2013-03-03 9:02 ` Richard Weinberger
2013-03-03 22:04 ` Eric Sandeen
2013-03-03 22:19 ` Richard Weinberger
2013-03-03 22:40 ` Eric Sandeen
2013-03-03 22:53 ` Richard Weinberger [this message]
2013-03-03 22:57 ` Eric Sandeen
2013-03-04 0:42 ` Dave Chinner
2013-03-04 21:05 ` Joel Becker
2013-03-04 22:09 ` Richard Weinberger
2013-03-04 22:57 ` Joel Becker
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=20130303235341.7470085e@spider.haslach.nod.at \
--to=richard@nod.at \
--cc=david@fromorbit.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=sandeen@sandeen.net \
--cc=xfs@oss.sgi.com \
/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;
as well as URLs for NNTP newsgroup(s).