From: Eric Levy <contact@ericlevy.name>
To: Anand Jain <anand.jain@oracle.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: race condition mounting multi-device iscsi volume, not resolved in newer kernels
Date: Sat, 22 Jul 2023 15:07:17 -0400 [thread overview]
Message-ID: <54P7YR.LGLFEH7DB1TH2@ericlevy.name> (raw)
In-Reply-To: <f13b2a96-a8d2-0e4e-3667-ee76e4094b9f@oracle.com>
On Sat, Jul 22 2023 at 07:50:38 PM +0800, Anand Jain
<anand.jain@oracle.com> wrote
>> Hm. Do you mean the filesystem is in an inconsistent state after
> the manual successful manual mount? Do you have any error/warn logs?
> What tells you that the filesysem is inconsistent?
The state inconsistency refers to the mount session not to the file
system. The file system is completely healthy, having been cleanly
unmounted during the previous shutdown sequence, and no mount operation
having been completed during the current boot session.
However, within the running session, the system reports the file system
being already mounted, when mounting is attempted, even though the
mount point is empty and the mount operation had produced failure
messages.
> Devid 8! How many devices do we have to this fsid?
> As before do you have the dump-super?
>
> Do you have -o degraded in the mount option?
>
> Before (what ever is) calling the mount has it run
> btrfs device scan ?
The system has eight devices. The first two are system devices, the
remaining ones comprise the spanned volume.
I have not attempted mounting in degraded mode, nor would I do so,
since the file system itself is healthy, and I wish to keep it as such.
All of the failures have been failures to mount due to some devices
being unattached. As long as the system is not mounting cleanly, then
not mounting remains preferred, to maintain its health.
> So what is the time diff between above two messages?
> Already mounted => might be due to a race condition?
I could check the timestamps, but the differences I am certain are less
than one second. The messages are printed sequentially, and operations
are clearly not in the preferred order. Mounting should not be
attempted until all devices are attached.
> Scanned messages appearing after the an attempt to mount so for sure
> mount shall fail.
Right.
next prev parent reply other threads:[~2023-07-22 19:07 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-22 0:40 race condition mounting multi-device iscsi volume, not resolved in newer kernels Eric Levy
2023-07-22 4:34 ` Andrei Borzenkov
2023-07-22 6:04 ` Eric Levy
2023-07-22 6:52 ` Andrei Borzenkov
2023-07-22 5:27 ` Torbjörn Jansson
2023-07-22 11:50 ` Anand Jain
2023-07-22 19:07 ` Eric Levy [this message]
2023-07-22 19:11 ` Andrei Borzenkov
2023-07-24 3:27 ` Anand Jain
2023-07-24 4:08 ` Eric Levy
2023-07-24 4:42 ` Anand Jain
2023-07-24 6:36 ` Andrei Borzenkov
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=54P7YR.LGLFEH7DB1TH2@ericlevy.name \
--to=contact@ericlevy.name \
--cc=anand.jain@oracle.com \
--cc=linux-btrfs@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.