linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Omar Sandoval <osandov@osandov.com>
To: Martin Bakiev <mbakiev@gmail.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: Crash when trying to start a replace on missing device
Date: Sat, 12 Sep 2015 21:55:30 -0700	[thread overview]
Message-ID: <20150913045530.GA24813@mew> (raw)
In-Reply-To: <CAHs_hg33fkxpFzT881BGDOQNBaarcCiROHSG3Q2fCDn_SSLa-g@mail.gmail.com>

On Sat, Sep 12, 2015 at 04:51:18PM -0600, Martin Bakiev wrote:
> Hi guys,
> 
> I'm just doing testing with btrfs and I ran into a crash when
> simulating a failed drive. I yanked out one (/dev/sdc) of 4 drives and
> tried to replace it with another (/dev/sdf) with this command:
> 
> btrfs replace start missing /dev/sdf /mount_point -f
> 
> That seemed to cause a crash, you can check out the attached dmesg
> file for stack/more info. I was told to report the crash on from IRC.
> I hope this helps.
> 
> Other info:
> uname -a:
> Linux fedora-nas 4.1.6-201.fc22.x86_64 #1 SMP Fri Sep 4 17:49:24 UTC
> 2015 x86_64 x86_64 x86_64 GNU/Linux
> 
> btrfs --version
> btrfs-progs v4.1
> 
> btrfs fi show
> Label: 'raid5'  uuid: 8b17c1d2-4ef6-4946-b77f-eac57c4e23a6
>        Total devices 5 FS bytes used 18.32GiB
>        devid    0 size 4.55TiB used 7.38GiB path /dev/sdf
>        devid    1 size 4.55TiB used 7.38GiB path /dev/sdb
>        devid    3 size 4.55TiB used 7.38GiB path /dev/sdd
>        devid    4 size 4.55TiB used 7.38GiB path /dev/sde
>        *** Some devices missing
> 
> btrfs fi df
> Data, RAID5: total=21.00GiB, used=18.30GiB
> System, RAID5: total=96.00MiB, used=16.00KiB
> Metadata, RAID5: total=1.03GiB, used=19.59MiB
> GlobalReserve, single: total=16.00MiB, used=0.00B
> 
> dmesg attached.
> 
> Thanks,
> Martin

Thanks for the report, Martin. This should be fixed in v4.3-rc1 if you
want to give that a spin. Specifically, you'll want these commits:

4a770891d9dd Btrfs: fix parity scrub of RAID 5/6 with missing device
73ff61dbe5ed Btrfs: fix device replace of a missing RAID 5/6 device
b4ee1782686d Btrfs: add RAID 5/6 BTRFS_RBIO_REBUILD_MISSING operation
7cb2c4202ed5 Btrfs: count devices correctly in readahead during RAID 5/6 replace
03679ade86b2 Btrfs: remove misleading handling of missing device scrub

-- 
Omar

      reply	other threads:[~2015-09-13  4:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-12 22:51 Crash when trying to start a replace on missing device Martin Bakiev
2015-09-13  4:55 ` Omar Sandoval [this message]

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=20150913045530.GA24813@mew \
    --to=osandov@osandov.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=mbakiev@gmail.com \
    /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).