[CentOS] Detecting harddrive problem
Dominik Zyla
gavroche at gavroche.pl
Fri Feb 25 09:36:58 UTC 2011
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 at arinet.org> 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 at centos.org
> > 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.centos.org/pipermail/centos/attachments/20110225/63c7bad7/attachment.sig>
More information about the CentOS
mailing list