All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andy Smith <andy@strugglers.net>
To: linux-raid@vger.kernel.org
Subject: Re: "--re-add for /dev/sdb1 to /dev/md0 is not possible"
Date: Thu, 17 Sep 2020 08:29:30 +0000	[thread overview]
Message-ID: <20200917082930.GB23197@bitfolk.com> (raw)
In-Reply-To: <20200915102736.GE13298@bitfolk.com>

On Tue, Sep 15, 2020 at 10:27:36AM +0000, Andy Smith wrote:
> mdadm: --re-add for /dev/sdb1 to /dev/md6 is not possible
> 
> So, is that supposed to work and if so, why doesn't it work for me?
> 
> In both cases these are simple two device RAID-1 metadata version
> 1.2 arrays. Neither has bitmaps.

The lack of bitmaps was why I couldn't use --re-add. I was testing
with small arrays that didn't get a bitmap by default. As mentioned
on the wiki, a bitmap can be added like:

# mdadm --grow --bitmap=internal /dev/mdX

So, as pointed out to me by Jakub Wilk, it is possible to remove the
bad blocks log on a running array by failing and re-adding each
device in turn, as long as you are willing to experience lower / no
redundancy while it rebuilds.

# mdadm --fail /dev/md0 /dev/sdb1 \
        --remove /dev/sdb1 \
        --re-add /dev/sdb1 \
        --update=no-bbl

Cheers,
Andy

  reply	other threads:[~2020-09-17  8:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-15 10:27 "--re-add for /dev/sdb1 to /dev/md0 is not possible" Andy Smith
2020-09-17  8:29 ` Andy Smith [this message]
2020-09-22 10:27 ` Roy Sigurd Karlsbakk
2020-09-22 23:18   ` antlists
2020-11-28 17:59     ` Roy Sigurd Karlsbakk
2020-11-28 19:51       ` Andy Smith

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=20200917082930.GB23197@bitfolk.com \
    --to=andy@strugglers.net \
    --cc=linux-raid@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.