From: Wolfgang Mader <Wolfgang_Mader@brain-frog.de>
To: linux-btrfs@vger.kernel.org
Subject: How to get the devid of a missing device
Date: Sun, 26 Apr 2015 20:39:34 +0200 [thread overview]
Message-ID: <1704142.6uN5bYeLWo@discus> (raw)
Hello,
I have a raid10 with one device missing. I would like to use btrfs replace to
replace it. However, I am unsure on how to obtain the devid of the missing
device. Having the filesystem mounted in degraded mode under mnt, btrfs fs
show /mnt returns
sudo btrfs filesystem show /mnt
Label: 'dataPool' uuid: b5f082e2-2ce0-4f91-b54b-c2d26185a635
Total devices 4 FS bytes used 665.88GiB
devid 2 size 931.51GiB used 336.03GiB path /dev/sdb
devid 4 size 931.51GiB used 336.03GiB path /dev/sdd
devid 5 size 931.51GiB used 336.03GiB path /dev/sde
*** Some devices missing
but does not mention the devid of the missing device. The device stat is
sudo btrfs device stats /mnt
[/dev/sdb].write_io_errs 0
[/dev/sdb].read_io_errs 0
[/dev/sdb].flush_io_errs 0
[/dev/sdb].corruption_errs 0
[/dev/sdb].generation_errs 0
[(null)].write_io_errs 1448
[(null)].read_io_errs 0
[(null)].flush_io_errs 0
[(null)].corruption_errs 0
[(null)].generation_errs 0
[/dev/sdd].write_io_errs 0
[/dev/sdd].read_io_errs 0
[/dev/sdd].flush_io_errs 0
[/dev/sdd].corruption_errs 0
[/dev/sdd].generation_errs 0
[/dev/sde].write_io_errs 0
[/dev/sde].read_io_errs 0
[/dev/sde].flush_io_errs 0
[/dev/sde].corruption_errs 0
[/dev/sde].generation_errs 0
Btw, the file system is too old for skinny metadata and extended inode refs.
If I do a btrfs replace or a btrfs device add, must I myself ensure that the
new features are not enables for the new device which is to be added?
Thank!
Wolfgang
next reply other threads:[~2015-04-26 18:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-26 18:39 Wolfgang Mader [this message]
2015-04-27 2:11 ` How to get the devid of a missing device Duncan
2015-04-27 8:00 ` Wolfgang Mader
2015-04-27 4:48 ` Anand Jain
2015-04-27 8:01 ` Wolfgang Mader
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=1704142.6uN5bYeLWo@discus \
--to=wolfgang_mader@brain-frog.de \
--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).