linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Moshe Yudkowsky <moshe@pobox.com>
To: linux-raid@vger.kernel.org
Subject: Re: Unable to eradicate previous version of device information, even with zero-superblock and dd
Date: Mon, 28 Jan 2008 13:18:48 -0600	[thread overview]
Message-ID: <479E2A98.7010908@pobox.com> (raw)
In-Reply-To: <479DEF34.70306@pobox.com>


> QUESTIONS:
> 
> 1. If I create a device called /dev/md/all, should I expect that mdadm 
> will create a device called /dev/md/127, and that mdadm --detail --scan 
> will report it as /dev/md127 or something similar?

That's still happening. However:

> 2. How can I completely eradicate all traces of previous work, given 
> that zero-superblock and dd on the drives that make up the array doesn't 
> seem to erase previous information?

Answer:

In order for the md drives to be started on a reboot, upgrade-initramfs 
    places information about the current configuration into boot 
configuration.

In order to eradicate everything, stop all arrays, comment out any ARRAY 
lines in mdadm.conf, remove all md device files, and then issue

update-initramfs

This cleans out the information that's hidden inside the /boot area. On 
the next reboot, no extraneous md files are present. It's then possible 
to issue an mdadm --create /dev/md/all that will create the appropriate 
md devices automatically with proper major and minor device numbers.

To get the md device started correctly at init time, I seem to require 
the use of update-initramfs. I will investigate further when I've got 
some time...


-- 
Moshe Yudkowsky * moshe@pobox.com * www.pobox.com/~moshe
  "The odds are good, but the goods are odd."
    	     -- Alaskan women, on the high ratio of men to women in Alaska

      reply	other threads:[~2008-01-28 19:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-28 15:05 Unable to eradicate previous version of device information, even with zero-superblock and dd Moshe Yudkowsky
2008-01-28 19:18 ` Moshe Yudkowsky [this message]

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=479E2A98.7010908@pobox.com \
    --to=moshe@pobox.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).