All of lore.kernel.org
 help / color / mirror / Atom feed
From: linbloke <linbloke@fastmail.fm>
To: hansbkk@gmail.com
Cc: Linux-RAID <linux-raid@vger.kernel.org>
Subject: Re: Shouldn't --zero-superblock reset the UUID?
Date: Thu, 17 Feb 2011 12:21:05 +1100	[thread overview]
Message-ID: <4D5C7801.5070306@fastmail.fm> (raw)
In-Reply-To: <AANLkTikuHrSyhmi01LgKGZhMCvAKoXJmutwhfL974zvT@mail.gmail.com>

hansbkk@gmail.com wrote:
> I've only seen this problem with RAID1, but perhaps it applies to other levels.
>
> When adding a member partition to an array, the UUID of that partition
> gets set to that of the array (and all the other members)
>
> However, when fail/remove/zero-superblock 'ing a member back out of
> the array, the UUID gets left behind, along with the label and fs
> type.
>
> Ideally the partition would be left in a state as if it never had any
> filesystem at all on it, as when using dd /if=dev/zero and a fresh
> sfdisk.
>
> If this isn't possible, perhaps the zero-superblock option should
> trigger a reminder message to either zero the drive or re-format the
> partition?
>
>   
I recall reading on this list that zero-superblock only zero's the first 
superblock that it finds. It may be necessary to run mdadm 
zero-superblock several times to remove all superblocks that may be on 
the device from historical times.

hth

> Not a huge issue but. . .
>   
> --
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>   

  reply	other threads:[~2011-02-17  1:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-16 16:10 Shouldn't --zero-superblock reset the UUID? hansbkk
2011-02-17  1:21 ` linbloke [this message]
2011-02-17  1:45   ` NeilBrown
  -- strict thread matches above, loose matches on Subject: below --
2012-09-21 20:29 mirovis
2012-09-22 12:53 mirovis

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=4D5C7801.5070306@fastmail.fm \
    --to=linbloke@fastmail.fm \
    --cc=hansbkk@gmail.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 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.