From: Andre Noll <maan@systemlinux.org>
To: Jim Paris <jim@jtan.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: Zeroing multiple superblocks
Date: Mon, 25 Jan 2010 10:52:21 +0100 [thread overview]
Message-ID: <20100125095221.GV21495@skl-net.de> (raw)
In-Reply-To: <20100122200924.GA29183@psychosis.jim.sh>
[-- Attachment #1: Type: text/plain, Size: 710 bytes --]
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.
Andre
--
The only person who always got his work done by Friday was Robinson Crusoe
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2010-01-25 9:52 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 [this message]
2010-01-29 12:31 ` Neil Brown
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=20100125095221.GV21495@skl-net.de \
--to=maan@systemlinux.org \
--cc=jim@jtan.com \
--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 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).