[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: "big" machines running Debian?



Ron Johnson <ron.l.johnson@cox.net> writes:

> On 02/27/2009 07:50 AM, Lennart Sorensen wrote:
>> On Thu, Feb 26, 2009 at 05:58:43PM -0600, Ron Johnson wrote:
>>> As would auto-replacement of bad drives by hot spares.
>>
>> Usually the firmware of a raid card does that itself.  If a drive is
>> flagged hotspare, the raid card should automatically start the rebuild
>> if a drive fails.  You should never have to tell it to do that.  If you
>> had to tell it then it hardly qualifies as a hot spare.
>>
>
> I was referring to the fact that softraid couldn't do that.

Hot-spare devices work just fine (see below).

What doesn't exists afaik are global hot spares. E.g. 7 disks, two 3
disk raid5 and one spare disk for whatever raid fails first. You would
have to script that yourself.

MfG
        Goswin

----------------------------------------------------------------------

# mdadm --create -l1 -n2 /dev/md9 /dev/ram0 /dev/ram1
# mdadm --add /dev/md9 /dev/ram2 
# cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] 
md9 : active raid1 ram2[2](S) ram1[1] ram0[0]
      65472 blocks [2/2] [UU]
# mdadm --fail /dev/md9 /dev/ram0
# cat /proc/mdstat 
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] 
md9 : active raid1 ram2[0] ram1[1] ram0[2](F)
      65472 blocks [2/2] [UU]


And syslog shows:

Feb 28 10:09:47 frosties mdadm[4078]: NewArray event detected on md device /dev/md9
Feb 28 10:10:00 frosties kernel: md: bind<ram2>
Feb 28 10:10:52 frosties kernel: raid1: Disk failure on ram0, disabling device. 
Feb 28 10:10:52 frosties kernel: ^IOperation continuing on 1 devices
Feb 28 10:10:52 frosties kernel: RAID1 conf printout:
Feb 28 10:10:52 frosties kernel:  --- wd:1 rd:2
Feb 28 10:10:52 frosties kernel:  disk 0, wo:1, o:0, dev:ram0
Feb 28 10:10:52 frosties kernel:  disk 1, wo:0, o:1, dev:ram1
Feb 28 10:10:52 frosties kernel: RAID1 conf printout:
Feb 28 10:10:52 frosties kernel:  --- wd:1 rd:2
Feb 28 10:10:52 frosties kernel:  disk 1, wo:0, o:1, dev:ram1
Feb 28 10:10:52 frosties kernel: RAID1 conf printout:
Feb 28 10:10:52 frosties kernel:  --- wd:1 rd:2
Feb 28 10:10:52 frosties kernel:  disk 0, wo:1, o:1, dev:ram2
Feb 28 10:10:52 frosties kernel:  disk 1, wo:0, o:1, dev:ram1
Feb 28 10:10:52 frosties kernel: md: recovery of RAID array md9
Feb 28 10:10:52 frosties kernel: md: minimum _guaranteed_  speed: 1000 KB/sec/disk.
Feb 28 10:10:52 frosties kernel: md: using maximum available idle IO bandwidth (but not more than 200000 KB/sec) for recovery.
Feb 28 10:10:52 frosties kernel: md: using 128k window, over a total of 65472 blocks.
Feb 28 10:10:52 frosties kernel: md: md9: recovery done.
Feb 28 10:10:52 frosties kernel: RAID1 conf printout:
Feb 28 10:10:52 frosties kernel:  --- wd:2 rd:2
Feb 28 10:10:52 frosties kernel:  disk 0, wo:0, o:1, dev:ram2
Feb 28 10:10:52 frosties kernel:  disk 1, wo:0, o:1, dev:ram1


Reply to: