All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andy Smith <andy@strugglers.net>
To: linux-raid@vger.kernel.org
Subject: Config option for removing bbl on assembly?
Date: Fri, 4 Sep 2020 07:45:57 +0000	[thread overview]
Message-ID: <20200904074557.GT13298@bitfolk.com> (raw)

Hi,

Could we have a config setting for removing the bad blocks list on
assembly?

I'm aware that one could put:

CREATE bbl=no

in mdadm.conf and then newly created arrays won't have a bad blocks
list. But in many cases, system arrays are created before an
mdadm.conf exists, so they get a bbl.

So, to remove a bbl I know that you have to stop the array and
assemble it like:

# mdadm /dev/mdX --assemble --update=no-bbl

Again, for arrays with the actual system on it this is rather
inconvenient. Even having to have some downtime of the service to do
this is not great.

So how about a config option telling mdadm to remove empty bbl the
next time arrays are assembled? If there is a bbl with entries in it
then it could warn and not remove it (so no force).

Cheers,
Andy

             reply	other threads:[~2020-09-04  8:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-04  7:45 Andy Smith [this message]
2020-09-12 10:58 ` Config option for removing bbl on assembly? Roy Sigurd Karlsbakk
2020-09-12 11:07   ` Andy Smith
2020-11-28 20:15 ` Roy Sigurd Karlsbakk
2020-11-28 20:59   ` 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=20200904074557.GT13298@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.