Quote:
Originally Posted by pruneau
Happy that you go the system to work.
Well, from what you said in your question, I guessed that you already somehow had a constructed array that the md driver refused to overwrite.
Altough, without precisely knowing the chain of event that lead you to this situation, it's very difficult to assess what predicament you were into.
Anyway, from what you just said, here's a few answers:
- a "spare" disk in an array is never marked as such without manual intervention. It's a disk _you_ designate as the receptacle of the informations if another one fails.
- which command did you use to wipe those hd ?
is what is required to wipe the boot sector and partition table. But if you use /dev/sdb1, then it's only going to wipe the first partition, keeping all the information you want to get rid of. To check that a removal worked, useit should report an unreadable partition table.
|
Thank you for your reply.
this is my current mdstat:
root@quadstore:~# cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md0 : inactive sdc1[2](S) sdb1[0](S)
976767872 blocks
and,
root@quadstore:~# mdadm -E /dev/sdc1
/dev/sdc1:
Magic : a92b4efc
Version : 00.90.00
UUID : 465bed38:9127b10b:79a18f5e:c079f5f7 (local to host quadstore)
Creation Time : Sat Jul 19 13:48:28 2008
Raid Level : raid5
Used Dev Size : 488383936 (465.76 GiB 500.11 GB)
Array Size : 2441919680 (2328.80 GiB 2500.53 GB)
Raid Devices : 6
Total Devices : 4
Preferred Minor : 0
Update Time : Tue Jul 22 13:01:40 2008
State : clean
Active Devices : 4
Working Devices : 4
Failed Devices : 1
Spare Devices : 0
Checksum : 68ef312e - correct
Events : 0.562
Layout : left-symmetric
Chunk Size : 64K
Number Major Minor RaidDevice State
this 2 8 17 2 active sync /dev/sdb1
0 0 0 0 0 removed
1 1 0 0 1 faulty removed
2 2 8 17 2 active sync /dev/sdb1
3 3 8 49 3 active sync
4 4 8 81 4 active sync
5 5 8 65 5 active sync
unused devices: <none>
This is after what I did the following in exact order:
wiped out all first 100 MB of everey disk of the array with:
dd if=/dev/zero of=/dev/sda bs=100M count=1
next I deinstalled mdadm with:
apt-get --purge remove mdadm, /proc/mdstat still showing the device
next, I rebooted, /proc/mdstat was absent, wiped out 100 MB of every dis again, to be sure
next, I added partions on 2 disks, linux raid autodetect (fd)
next, I rebooted
next, I reinstalled mdadm with
apt-get install mdadm, /proc/mdstat showing no devices
next, I rebooted and came to where I am now...
please tell what I am doing wrong, I just want the array deleted and start over, creating a new array :S
tnx,
DB