From: Scott Talbert <swt@techie.net>
To: linux-btrfs@vger.kernel.org
Subject: RAID1 root filesystem - same device shows up twice in 'btrfs fi show'
Date: Thu, 21 Jan 2016 14:50:27 -0500 (EST) [thread overview]
Message-ID: <alpine.DEB.2.10.1601211432430.9575@bear.techie.net> (raw)
Hi,
I'm using:
Kernel 4.2.6
btrfs-progs v4.3
Debian Wheezy
I have a RAID1 root filesystem with two devices. When the system
initially boots up, "btrfs fi show" will show the same device twice:
Label: none uuid: 49f7413a-99ad-41b0-8783-06c9406e2280
Total devices 2 FS bytes used 1.19GiB
devid 1 size 7.60GiB used 3.03GiB path /dev/sdf2
devid 2 size 7.60GiB used 3.01GiB path /dev/sdf2
The filesystem seems to work fine (as best as I can tell) in this state.
If I then run another "btrfs device scan", it will correct itself:
Label: none uuid: 49f7413a-99ad-41b0-8783-06c9406e2280
Total devices 2 FS bytes used 1.19GiB
devid 1 size 7.60GiB used 3.03GiB path /dev/sde2
devid 2 size 7.60GiB used 3.01GiB path /dev/sdf2
Any idea what might be going on here? On Debian it appears that the
initial "btrfs device scan" is being done by an initramfs local-premount
script where it does:
modprobe btrfs
/bin/btrfs device scan 2>/dev/null
Does there perhaps need to be some delay between inserting the kernel
module and running a scan?
Thanks,
Scott
next reply other threads:[~2016-01-21 20:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-21 19:50 Scott Talbert [this message]
2016-01-22 4:41 ` RAID1 root filesystem - same device shows up twice in 'btrfs fi show' Anand Jain
2016-01-22 14:53 ` Scott Talbert
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=alpine.DEB.2.10.1601211432430.9575@bear.techie.net \
--to=swt@techie.net \
--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).