(original article)

Advice: Sharing a hot spare device in software RAID!

22 August 2007, 11:22 UTC

Dear Neil Brown :

Global (share) spare disk is important and economic. For example, we create two array md0 and md1, and set a global (share) spare disk, whenever anyone disk of array md0 and md1 is faulty, the mdadm add the global spare disk to this array for recovering automatically. the global (share) spare disk is safety and economic strategy!

steps:

1.modify the /etc/mdadm.conf add spare-group as follows

ARRAY /dev/md0 level=raid6 num-devices=4 UUID=9b2c49f3:aab3a59f:319fd604:8d84ab53 devices=/dev/sda,/dev/sdb,/dev/sdc,/dev/sdd,spare-group=global

ARRAY /dev/md1 level=raid5 num-devices=3 spares=1 UUID=ccfde74d:ddbf8e63:4079f0e2:0c9a0cbc devices=/dev/sde,/dev/sdf,/dev/sdg,/dev/sdh,spare-group=global


2.run mdadm in daemon

mdadm -F -s -m root@localhost -f -d 30

3.test faulty the disk

mdadm /dev/md0 -f /dev/sdc

>>>>>>>> no complete

reference http://winsonz.spaces.live.com/blog/cns!10221e373b076bc9!169.entry


Zhonghua Jiang jzh800@126.com 2007-8-21












[æ]