linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Nathan Dehnel <ncdehnel@gmail.com>
To: Btrfs BTRFS <linux-btrfs@vger.kernel.org>
Subject: How to replace a missing device with a smaller one
Date: Sun, 17 Nov 2019 20:09:28 -0600	[thread overview]
Message-ID: <CAEEhgEt_hNzY7Y3oct767TGGOHpqvOn4V_xWoOOB0NfYi1cswg@mail.gmail.com> (raw)

I have a 10-disk raid10 with a missing device I'm trying to replace. I
get this error when doing it though:

btrfs replace start 1 /dev/bcache0 /mnt
ERROR: target device smaller than source device (required 1000203091968 bytes)

I see that people recommend resizing a disk before replacing it, which
isn't an option for me because it's gone. I'm replacing the drive by
copying from its mirror, so can I resize the mirror and then replace?
How do I do that? Do I need to run "btrfs fi res" on each of the
remaining drives in the array?

             reply	other threads:[~2019-11-18  2:09 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-18  2:09 Nathan Dehnel [this message]
2019-11-18  5:32 ` How to replace a missing device with a smaller one Qu Wenruo
2019-11-18  7:08   ` Qu Wenruo
2019-11-19 14:38     ` David Sterba
2019-11-20  0:02       ` Qu Wenruo
2019-11-20  0:05         ` Zygo Blaxell
2019-11-21 10:21           ` Anand Jain
2019-11-24 23:02     ` Nathan Dehnel
2019-11-20 17:07   ` Chris Murphy

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=CAEEhgEt_hNzY7Y3oct767TGGOHpqvOn4V_xWoOOB0NfYi1cswg@mail.gmail.com \
    --to=ncdehnel@gmail.com \
    --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).