From: Samuel Greiner <samuel@balkonien.org>
To: linux-btrfs@vger.kernel.org
Subject: btrfs replace interrupted + corruptes fs
Date: Wed, 10 Aug 2022 23:48:17 +0200 [thread overview]
Message-ID: <b4f62b10-b295-26ea-71f9-9a5c9299d42c@balkonien.org> (raw)
Dear folks,
I have the feeling of being in trouble.
I have a btrfs fs upon 4 HDs. 1 HD should be replaced.
1. I issued the btrfs replace command, but got the message, that the
target HD is mounted (it was not, it did not appear in the mount output).
2. I did a system reboot in hope to do a successfull replace. The system
did not start but said, that it could not mount the btrfs fs because of
a missing device.
3. I booted GParted Live to investigate further.
3.1 A mount -o degraded,rescue=usebackuproot,ro failed.
In dmesg I get the following errors
flagging fs with big metadata feature
allowing degraded mounts
trying to use backup root at mount time
disk space caching is enabled
has skinny extents
bdev /dev/sda errs: wr 755, rd 0, flush 0, corrupt 0, gen 0
bdev /dev/sdd1 errs: wr 7601141, rd 3801840, flush 12, corrupt 3755,
gen 245
replace devid present without n active replace item
failed to init dev_replace -117
open_ctree failed
4. btrfs check runs through without error
-> I guess even if i was prompted the message, that the target device of
the btrfs replace was mounted the replace was started. Due to the reboot
now there seems to be errors in the filesystem additional to an replace
which i cannot stop, because i can't mount the filesystem.
Right now I have a btrfs check --check-data-csum running in hope to get
the errors fixed.
But actionally I really don't know how to deal with that situation.
Do you have any recommondations?
Thank you very much!
Samuel
Additional info:
I'm on an recent debian bullseye. But I can't run uname -r because right
now I'm on the GParted (1.4.0-5) Live-System.
btrfs fi show /dev/sdd1
Label: 'Data' uuid:
Total devices 4 FS bytes used 6.59 TiB
devid 1 size 3.65 TiB used 3.39 TiB path /dev/sdd1
devid 2 size 2.73 TiB used 2.49 TiB path /dev/sdb1
devid 3 size 5.46 TiB used 2.11 TiB path /dev/sdc1
devid 1 size 5.46 TiB used 5.21 TiB path /dev/sdd1
next reply other threads:[~2022-08-10 21:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-10 21:48 Samuel Greiner [this message]
2022-08-11 2:31 ` btrfs replace interrupted + corruptes fs Anand Jain
2022-08-11 6:52 ` Samuel Greiner
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=b4f62b10-b295-26ea-71f9-9a5c9299d42c@balkonien.org \
--to=samuel@balkonien.org \
--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).