|
发表于 2005-10-3 13:04:02
|
显示全部楼层
Post by zaiwen
1. Yes, /dev/hda13 is already an active SPARE device, but I would like to add it as a real active device. By real, I mean it should show "ACTIVE" instead of "SPARE" in "mdadm --detail".
If I don't do anything, will the spare device automatically become a real active device after the faulty device is removed? Maybe a reboot will force it?
It seems I need to enhance my understanding of "active" and "spare" concept. Feel puzzled....
2. How to add additional spare device? Suppose /dev/hda14 is only a fd partition and is not a spare device created by the "mdadm -C", now I want to add it as a spare device to /dev/md0, what's the command?
If I run:
mdadm /dev/md0 -a /dev/hda14
How could it tell if i want to add it directly to the raid matrix or add it as spare?
Hope I make myself understood....sounds confusing.... I will do more tests tomorrow and let u know.
I appreciate your help very much.
1. yes, it will be automatically if you take an active device out. That's why it is called spare device.
2. when you created your md, you specified 1 spare device, after that, if you hot added another disk in and at that moment, if there is no active disk failed, that extra disk will become a new spare device. And if you didn't specify any spare when you were creating the md, then any disk you add in later will become spare device.
The rule of thumb is, mdadm will try to maintain the same structure when you create a md at the first time. If the structure is clean and no disks are failed, then any extra disk will be a spare. if an active disk fails, an existing spare will become an active auto, if a spare fails, you manually exchange it. |
|