Skip to contentSkip to conversation

Can't add or delete a device from raid 1

DISCUSSION [email protected] 2 participants 3 messages May 26, 2004 MD RAID

lore
Share & tools
lore
#0 lore raw

Hi,

I'm trying to add a partition to a raid 1 set that I built with a "missing" partition. But mdadm won't let me add it to md0, or remove it

platinum:~# cd /
platinum:/# mdadm /dev/md0 -r /dev/hda1
mdadm: hot remove failed for /dev/hda1: No such device or address
platinum:/# mdadm /dev/md0 -a /dev/hda1
mdadm: hot add failed for /dev/hda1: Invalid argument

I don't get this. I had it all working, then I tried to update my kernel to 2.6.5, then the machine wouldn't boot without my interaction. So now when I boot to the old (working) kernel. I'm missing on partiion on /dev/md0.

I'm running on debian

Thanks
Jay

#1 lore raw

Hi!

Quoted 8 lines · On Tue, 25 May 2004 [email protected] wrote:

I'm trying to add a partition to a raid 1 set that I built with a "missing" partition. But mdadm won't let me add it to md0, or remove it

platinum:~# cd /
platinum:/# mdadm /dev/md0 -r /dev/hda1
mdadm: hot remove failed for /dev/hda1: No such device or address
platinum:/# mdadm /dev/md0 -a /dev/hda1
mdadm: hot add failed for /dev/hda1: Invalid argument

What do "mdadm --detail /dev/md0" and "mdadm --examine /dev/hda1" report?

Regards,
Martin

#2 lore raw
Quoted 6 lines

What do "mdadm --detail /dev/md0" and "mdadm --examine /dev/hda1" report?

Regards,
Martin

When I did --detail it showed the array having 2 devices, the first of which was faulty (the bottom of the screen). Unfortunately, I can't do the --examine. This morning I got frustrated and:

dd if=/dev/zero of=/dev/hda &
dd if=/dev/zero of=/dev/hdc &

I'm going to start over with clean drives

Thanks
Jay