> >> Ie what indications do you get when a disk fails? > >You should get messages in logged, plus /proc/raidtab will look different. >I don't have an example right now (RAID machines are at work). I'll try to >post something more tomorrow. > >> I am operating undder the assumption that there will be log entries in > > /var/log/messages, but am not really sure. > >Anybody got a recent failure that they can share the logs for? Mine was a >while ago, and I've cycled those logs. > You *will* get syslog messages, and it's /proc/mdstat that will change. You're thinking of /etc/raidtab, which will be unchanged when a disk fails. Here's my raid1 mdstat one disk down: chrome:~# cat /proc/mdstat Personalities : [raid1] read_ahead 1024 sectors md0 : active raid1 hde1[0] 39061952 blocks [2/1] [U_] unused devices: <none> And here in full-tilt mode: chrome:~# cat /proc/mdstat Personalities : [raid1] read_ahead 1024 sectors md0 : active raid1 hdg1[1] hde1[0] 39061952 blocks [2/2] [UU] unused devices: <none> I trashed my logs of the failure too... these are snippets though: --------------------------------------------------- /usr/src/linux-2.2.16/drivers/block/raid1.c: #define DISK_FAILED KERN_ALERT \ "raid1: Disk failure on %s, disabling device. \n" \ " Operation continuing on %d devices\n" --------------------------------------------------- /usr/src/linux-2.2.16/drivers/block/raid5.c: printk (KERN_ALERT "raid5: Disk failure on %s, disabling device." " Operation continuing on %d devices\n", partition_name (dev), conf->working_disks); --------------------------------------------------- /usr/src/linux-2.2.16/drivers/block/raid5.c: printk (KERN_ALERT "raid5: Disk failure on spare %s\n", partition_name (dev)); --------------------------------------------------- Info about my kernel sources: fresh 2.2.16 + ide.2.2.16.patch (for the ultra66) + raid-2.2.16-A0 + raid1readbalance-2.2.15-B2 (which applies cleanly to 2.2.16+ide+raid) I think the part you care about is that KERN_ALERT, which means it logs to the kern syslog facility with level alert... If you have a nextel phone or alphanumeric pager that can be sent stuff via web it's short work to hack up a script to send you alerts when your data is one step closer to The Brink... -j -- -------------------------------------------------- [EMAIL PROTECTED] - 0xCD91A427 9907 3747 3CE9 11C5 2B1C F141 D09F 488C CD91 A427 Note: key id 0x299450B6 is lost and inactive. -------------------------------------------------- Copyright 2000 Jeffrey Paul. The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. Thank you. - To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [EMAIL PROTECTED]
