On Fri, 12 Nov 1999, Roeland M.J. Meyer wrote:

> > It should be fairly simple to grep for underscores in
> > /proc/mdstat using
> > cron+{perl,grep,whatever} and send a mail if one is found.
> >
> > When a disk dies it is marked in /proc/mdstat like  [UU_U].
> 
> But that is not the ONLY underscore;
> 
> Personalities : [linear] [raid0] [raid1] [raid5]
> read_ahead 1024 sectors
> md0 : active raid1 hdd1[1] hdc1[0] 6297344 blocks [2/2] [UU]
> 
> Please note the name "read_ahead".

OK, then grep for md[0-15] first and then grep for an underscore.

Jason Clifford                                  http://www.definitelinux.com/
      Definite Linux - The UK's leading distribution with crypto support
               **** Linux Workstation and Server Systems ****

Reply via email to