On Fri, Feb 25, 2011 at 07:12:59AM +0200, yonatan pingle wrote: > On Fri, Feb 25, 2011 at 4:11 AM, Fajar Priyanto <fajarpri@xxxxxxxxxx> wrote: > > Hi all, > > Recently I realize the filesystem became Read-only and there is "media > > error" message in the system log. It has passed several days without > > notice. > > I'm thinking of setting up a script to grep that "media error" and send email. > > Is there more elegant way of doing this? > > > > Thank you. > > _______________________________________________ > > CentOS mailing list > > CentOS@xxxxxxxxxx > > http://lists.centos.org/mailman/listinfo/centos > > > > Actions needed to be done: > > Buy new disk > Remove old disk > Install OS on new disk > Migrate data from old disk > > done. > > elegant way? > but two new disks. > configure mdadm to mail you if the array fails. It's better to configure smartd. With it you can get mails informing you about relocations, errors, etc from a single disk. Probably it would be lot of such mails before array corruption. So you'll have some time for schedule downtime and swap faulty disk. -- Dominik Zyla
Attachment:
pgpO71l7CUL6i.pgp
Description: PGP signature
_______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos