All of lore.kernel.org
 help / color / mirror / Atom feed
From: Neil Brown <neilb@suse.de>
To: Andre Noll <maan@systemlinux.org>
Cc: Jim Paris <jim@jtan.com>, linux-raid@vger.kernel.org
Subject: Re: Zeroing multiple superblocks
Date: Fri, 29 Jan 2010 23:31:11 +1100	[thread overview]
Message-ID: <20100129233111.5c9cc1d0@notabene> (raw)
In-Reply-To: <20100125095221.GV21495@skl-net.de>

On Mon, 25 Jan 2010 10:52:21 +0100
Andre Noll <maan@systemlinux.org> wrote:

> On 15:09, Jim Paris wrote:
> 
> > I guess the only way to be fully safe with the current approach is to
> > do a zero-superblock over and over until it complains.
> 
> mdadm --zero-superblock tries to guess the location of the superblock.
> If more than one superblock is found, the one with the latest creation
> time is being zeroed. So yes, the method you describe works and I think
> it is the most reliable way to remove all superblocks of a device.
> 
> Maybe we could teach mdadm --zero-superblock to honor the --metadata=x
> option which would zero-out the region of the device where the
> version-x superblock is located.

Latest mdadm has this feature.
And if --metadata= isn't given, it repeatedly trying to find and zero a
superblock until no more superblocks can be found.

NeilBrown

  reply	other threads:[~2010-01-29 12:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-22 20:09 Zeroing multiple superblocks Jim Paris
2010-01-25  9:52 ` Andre Noll
2010-01-29 12:31   ` Neil Brown [this message]
2010-02-01 21:22     ` Bill Davidsen
2010-02-01 21:44       ` Neil Brown

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=20100129233111.5c9cc1d0@notabene \
    --to=neilb@suse.de \
    --cc=jim@jtan.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=maan@systemlinux.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.