Skip to contentSkip to conversation

2+ raid sets, sata and a missing hd question

DISCUSSION CaT 3 participants 5 messages Feb 15, 2006 – Feb 16, 2006 MD RAID

lore
Share & tools
lore

CaT

author
#0 lore raw

Hi,

Lets say I have the following setup:

RAID 1 (as md1, md2, md3, md4, md5 for eg)
sda, sdb

RAID 5 (as md6)
sdc, sdd, sde, sdf, sdg

Seeing as how SATA drives can move around if one removes one from a set (ie given sda, sdb, sdc, if sdb was removed sdc drops to sdb) would md6 come back up without problems if I were to remove either sda or sdb.

All md partitions are of type fd (Linux raid autodetect).

Thanks. :)

Signature · 3 lines
    "To the extent that we overreact, we proffer the terrorists the
    greatest tribute."
    	- High Court Judge Michael Kirby
#1 lore raw
Quoted 3 lines · CaT

Seeing as how SATA drives can move around if one removes one from a set (ie given sda, sdb, sdc, if sdb was removed sdc drops to sdb) would md6 come back up without problems if I were to remove either sda or sdb.

if you configured mdadm correctly, you will have no problem :)

hint
echo DEVICE partitions >> /etc/mdadm.conf mdadm -Esc partitions | grep ARRAY>> /etc/mdadm.conf

Quoted 2 lines

All md partitions are of type fd (Linux raid autodetect).

this is surprisingly not at all relevant

L.

Signature · 6 lines
Luca Berra -- [email protected]
       Communication Media & Services S.r.l.
/"\
\ /     ASCII RIBBON CAMPAIGN
 X        AGAINST HTML MAIL
/ \
author
#2 lore raw
Quoted 10 lines · Luca Berra
Quoted 3 lines · CaT

Seeing as how SATA drives can move around if one removes one from a set (ie given sda, sdb, sdc, if sdb was removed sdc drops to sdb) would md6 come back up without problems if I were to remove either sda or sdb.

if you configured mdadm correctly, you will have no problem :)

hint
echo DEVICE partitions >> /etc/mdadm.conf mdadm -Esc partitions | grep ARRAY>> /etc/mdadm.conf

So the md5 array will reconstruct itself after initial bootup where the kernel reconstructs the raid1 (as well as it can) for booting?

Quoted 3 lines
Quoted 1 line

All md partitions are of type fd (Linux raid autodetect).

this is surprisingly not at all relevant

Awww. But I like it when the kernel just, well, does it all and makes it all ready. :)

Signature · 3 lines
    "To the extent that we overreact, we proffer the terrorists the
    greatest tribute."
    	- High Court Judge Michael Kirby
#3 lore raw
In reply to Luca Berra
Quoted 7 lines

hint
echo DEVICE partitions >> /etc/mdadm.conf mdadm -Esc partitions | grep ARRAY>> /etc/mdadm.conf

Quoted 2 lines

All md partitions are of type fd (Linux raid autodetect).

this is surprisingly not at all relevant

I'm not sure about that. I've accidentally shuffled disks before, and 0xfd resulted in all the MD's coming to life again. I never use /etc/mdadm.conf, since there doesn't seem to be much point...

regards, mark hahn.

#4 lore raw
Quoted 10 lines · Mark Hahn
Quoted 7 lines

hint
echo DEVICE partitions >> /etc/mdadm.conf mdadm -Esc partitions | grep ARRAY>> /etc/mdadm.conf

Quoted 2 lines

All md partitions are of type fd (Linux raid autodetect).

this is surprisingly not at all relevant

I'm not sure about that. I've accidentally shuffled disks before,
and 0xfd resulted in all the MD's coming to life again. I never use /etc/mdadm.conf, since there doesn't seem to be much point...

i did not speak about in-kernel autodetection.

don't cc me on list replies unless it is really important

Signature · 6 lines
Luca Berra -- [email protected]
       Communication Media & Services S.r.l.
/"\
\ /     ASCII RIBBON CAMPAIGN
 X        AGAINST HTML MAIL
/ \