Re: Last scrub date and result

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

 



Hi,

On Fri, Jan 10, 2020 at 07:07:30PM +0100, Gandalf Corvotempesta wrote:
> Is triggered by a cron but is MD that does the scrub
> 
> As the scrub procedure is async, is not easy to log the scrub result,
> that's why i'm asking for something "native" that mdadm -D could show.

well, the time is available at script
level and this can be logged.
About the result, I guess it is possible
to log as well.
One option to investigate would be the
"--wait" of mdadm.

bye,

pg

> Il ven 10 gen 2020, 18:31 Piergiorgio Sartor <piergiorgio.sartor@xxxxxxxx>
> ha scritto:
> 
> > Hi,
> >
> > On Fri, Jan 10, 2020 at 12:17:21PM +0100, Gandalf Corvotempesta wrote:
> > > Any thought ? Is this a stupid suggestion ?
> > >
> > > Il giorno lun 6 gen 2020 alle ore 12:49 Gandalf Corvotempesta
> > > <gandalf.corvotempesta@xxxxxxxxx> ha scritto:
> > > >
> > > > Would be possible to add, in mdadm --detail output, the date of last
> > > > scrub and it's result ?
> > > > Looking through logs is not always possible (and much more harder to
> > > > script something), having something like:
> > > >
> > > > Update Time : Mon Jan  6 12:47:29 2020
> > > >           State : clean
> > > > Last scrub Time: Mon Jan  4 12:47:29 2020
> > > > Last scrub result: success
> > > >
> > > > would be great!
> >
> > as far as I know, the scrub is triggered by
> > a cron job, so, very likely, the logging of
> > time and result could / should be done there.
> >
> > I do not think mdadm is the right place to
> > keep this information, but I might be wrong.
> >
> > bye,
> >
> > --
> >
> > piergiorgio
> >

-- 

piergiorgio



[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux