From: Eric Levy <contact@ericlevy.name>
To: "linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>
Subject: Re: parent transid verify failed
Date: Sat, 01 Jan 2022 23:03:25 -0500 [thread overview]
Message-ID: <b6f84999f9506ca2e72673d8e94e72a0f29cea11.camel@ericlevy.name> (raw)
In-Reply-To: <YdEbsxw7Nk0GKKzN@hungrycats.org>
On Sat, 2022-01-01 at 22:27 -0500, Zygo Blaxell wrote:
> Yes, that's normal with lazy umounts. With a lazy umount, the mount
> point is removed immediately, so you get all the behavior you
> described,
> but the filesystem is not actually umounted until after the last open
> file descriptors referencing the filesystem are closed (that's the
> "lazy" part).
All of the explicit umount calls I gave had no lazy flag. I don't
understand the full details of your comments, as I am only aware of
lazy umount as a fallback for failing umount calls in synchronous
operations.
It seems the way mounts work, especially when interacting with user
space solutions, such as FUSE and Gvfs, is often burdened by legacy
design never updated to work properly. I have seen Gvfs pull down an
entire system from trying to access a file in a user mount, since the
mount was made before a network connection with the Samba server was
dropped.
For laptops these kinds of vulnerability are quite debilitating.
> You can run btrfs scrub to verify the data and metadata.
>
> The most probable outcome is that everything's OK. The device layer
> reported failed writes to btrfs, and btrfs aborted the last
> transaction
> to protect the on-disk data. I would not expect any errors in either
> btrfs check or scrub, as this scenario is one the filesystem is
> designed
> and tested for.
Great, thanks. Scrub reported no errors, and the check reported none,
as already mentioned.
> Since you're transitioning from one disk to multiple disks, you
> should
> convert metadata to raid1, and ensure there's sufficient unallocated
> space on the first drive to hold metadata as it grows. This can be
> done
I thought it was the default for disk pools, fully duplicated metadata,
and JBOD-style for payload data.
> with two balance commands:
>
> btrfs balance start -dlimit=16 /fs
>
> btrfs balance start -mconvert=raid1,soft /fs
Does balance manage balanced utilization of disks? For specific
scenarios, unbalanced disk usage is actually desirable, for example, my
current one, in which the devices are logical volumes on a redundant
back end. Using as much of one volume as possible simplifies
reallocation of back end storage resources.
---
I am noticing that the order of devices in now reversed. I am wondering
whether what happened is that iSCSI, either on the client or server
side, reversed the order, by some quirk or design flaw. while I had the
live mount. Still, it doesn't explain why I originally was able to see
the new, unpartitioned device and add it to the pool.
Another possibility is that the sequence of add/remove/add, which I
explained earlier, caused some problem, but it also seems not clear
how, since all of these operations are synchronous.
next prev parent reply other threads:[~2022-01-02 4:03 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-30 21:10 parent transid verify failed Eric Levy
2021-12-30 21:47 ` Chris Murphy
2022-01-01 15:11 ` devel
2021-12-31 19:14 ` Zygo Blaxell
2021-12-31 20:33 ` Eric Levy
2021-12-31 23:09 ` Chris Murphy
2022-01-01 7:33 ` Eric Levy
2022-01-01 20:49 ` Chris Murphy
2022-01-01 21:57 ` Eric Levy
2022-01-01 20:56 ` Zygo Blaxell
2022-01-01 21:58 ` Eric Levy
2022-01-02 0:15 ` Zygo Blaxell
2022-01-02 0:55 ` Eric Levy
2022-01-02 3:27 ` Zygo Blaxell
2022-01-02 4:03 ` Eric Levy [this message]
2022-01-02 5:57 ` Zygo Blaxell
2022-01-02 10:17 ` Eric Levy
2022-01-03 7:41 ` Chris Murphy
2022-01-02 7:31 ` Andrei Borzenkov
-- strict thread matches above, loose matches on Subject: below --
2017-05-11 10:01 Massimo B.
[not found] <E18363B1-CD81-41F4-A03C-4D09AA669915@plack.net>
2015-04-28 12:34 ` Anthony Plack
2010-09-06 17:28 Jan Steffens
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=b6f84999f9506ca2e72673d8e94e72a0f29cea11.camel@ericlevy.name \
--to=contact@ericlevy.name \
--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 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).