linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Unable to eradicate previous version of device information, even with zero-superblock and dd
@ 2008-01-28 15:05 Moshe Yudkowsky
  2008-01-28 19:18 ` Moshe Yudkowsky
  0 siblings, 1 reply; 2+ messages in thread
From: Moshe Yudkowsky @ 2008-01-28 15:05 UTC (permalink / raw)
  To: linux-raid

I've been trying to bring up a RAID10 device, and I'm having some 
difficulty with automatically-created device names.

mdadm version 2.5.6, Debian Etch.

With metadata=1.2 in my config file,

mdadm --create /dev/md/all --auto=p7 -n 4 --level=10 /dev/sd*2

This does seem to create a RAID array. I see that my /dev/md/ directory 
is populated with all1 through all7.

On reboot, however, I notice that there's a suddenly a /dev/md127 
device. Confused, I attempted to start over many times, but I can't seem 
to create a non-"all" array and I can't seem to create a simple 
/dev/md/0 array.

Steps:

To eradicate all prior traces of md configuration, I issue these commands:

mdadm --stop /dev/md/all

which stops.

mdadm --zero-superblock  /dev/sd[each drive]2


I went further (after some trouble) and issued

dd if=/dev/zero of=/dev/sd[each drive]2 count=2M

I then issue:

rm /dev/md* /dev/md/*

The ARRAY information is commented out of the config file (mdadm.conf).

On reboot, I see that the devices /dev/md/all, /dev/md/all1, etc. have 
reappeared, along /dev/md127, /dev/md_127, and /dev/md_d127.

This is very, very puzzling.

Well, I thought I could work around this. I issued

mdadm --create /dev/md/all

with the same paramters as above. I can use cfdisk and fdisk (either 
one) to create two partitions, /dev/md/all1 and /dev/md/all2.

However,

mkfs.reiserfs /dev/md/all1

claims that the /dev/md/all1 has "no such device or address."

ls -l /dev/md/all gives

brw-rw---- 1 root disk 254, 8129 (date) /dev/md/all1

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?

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?



-- 
Moshe Yudkowsky * moshe@pobox.com * www.pobox.com/~moshe
  "If you're going to shoot, shoot! Don't talk!"
    		   -- Eli Wallach,"The Good, the Bad, and the Ugly"

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-01-28 19:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).