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