Skip to contentSkip to conversation

Creating RAID1 with "missing" - mdadm 1.90

DISCUSSION berk walker 4 participants 4 messages Mar 5, 2005 – Mar 6, 2005 MD RAID

lore
Share & tools
lore
#0 lore raw

What might the proper [or functional] syntax be to do this?

I'm running 2.6.10-1.766-FC3, and mdadm 1.90.

Thanks for the time.
b-

#1 lore raw
Quoted 3 lines · On Saturday March 5, [email protected] wrote:

What might the proper [or functional] syntax be to do this?

I'm running 2.6.10-1.766-FC3, and mdadm 1.90.

It would help if you told us what you tried as then we could possible give a more focussed answer, however:

   mdadm --create /dev/md1 --level=raid1 --raid-devices=2 /dev/sda3 missing

might be the sort of thing you want.

NeilBrown

Quoted 7 lines

Thanks for the time.
b-
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
In reply to berk walker
Quoted 3 lines · berk walker

What might the proper [or functional] syntax be to do this?

I'm running 2.6.10-1.766-FC3, and mdadm 1.90.

Substitute the word "missing" for the corresponding device in the mdadm create command.

(quotes manual page)

To create a "degraded" array in which some devices are missing, simply give the word "missing" in place of a device name.

Peter

#3 lore raw
In reply to berk walker

I have successfully set up a raid1 in degraded mode with this command line:

mdadm --create /dev/md0 --level=1 --raid-devices=2 missing /dev/hda2

I have experienced problems when the "missing" drive was the second and the array would not initialize correctly when a real disk was added later. When "missing" is the first I did not have any problems. (Those problems were with linux 2.4 kernels, maybe this is solved with 2.6, but I did had the opportunity to check yet)

Signature · 3 lines
---> Dirk Jagdmann
----> http://cubic.org/~doj
-----> http://llg.cubic.org