All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Last scrub date and result
       [not found] <CAJH6TXjryixcArdcu_oVzmkEyktpMSb62YaUJvUv_Nd7k3mbDg@mail.gmail.com>
@ 2020-01-10 11:17 ` Gandalf Corvotempesta
  2020-01-10 17:31   ` Piergiorgio Sartor
  2020-01-20 14:29 ` Gandalf Corvotempesta
  1 sibling, 1 reply; 5+ messages in thread
From: Gandalf Corvotempesta @ 2020-01-10 11:17 UTC (permalink / raw)
  To: Linux RAID Mailing List

Any thought ? Is this a stupid suggestion ?

Il giorno lun 6 gen 2020 alle ore 12:49 Gandalf Corvotempesta
<gandalf.corvotempesta@gmail.com> 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!

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Last scrub date and result
  2020-01-10 11:17 ` Last scrub date and result Gandalf Corvotempesta
@ 2020-01-10 17:31   ` Piergiorgio Sartor
       [not found]     ` <CAJH6TXgByNnaWkFo25SrkbR15XgN47b5VhzgWLX=LvMhH-A1VQ@mail.gmail.com>
  0 siblings, 1 reply; 5+ messages in thread
From: Piergiorgio Sartor @ 2020-01-10 17:31 UTC (permalink / raw)
  To: Gandalf Corvotempesta; +Cc: Linux RAID Mailing List

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@gmail.com> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Last scrub date and result
       [not found]     ` <CAJH6TXgByNnaWkFo25SrkbR15XgN47b5VhzgWLX=LvMhH-A1VQ@mail.gmail.com>
@ 2020-01-10 18:17       ` Piergiorgio Sartor
  2020-01-12 13:57         ` Gandalf Corvotempesta
  0 siblings, 1 reply; 5+ messages in thread
From: Piergiorgio Sartor @ 2020-01-10 18:17 UTC (permalink / raw)
  To: Gandalf Corvotempesta; +Cc: Piergiorgio Sartor, Linux RAID Mailing List

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@nexgo.de>
> 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@gmail.com> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Last scrub date and result
  2020-01-10 18:17       ` Piergiorgio Sartor
@ 2020-01-12 13:57         ` Gandalf Corvotempesta
  0 siblings, 0 replies; 5+ messages in thread
From: Gandalf Corvotempesta @ 2020-01-12 13:57 UTC (permalink / raw)
  To: Piergiorgio Sartor; +Cc: Linux RAID Mailing List

Il giorno ven 10 gen 2020 alle ore 19:17 Piergiorgio Sartor
<piergiorgio.sartor@nexgo.de> ha scritto:
> 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.

What is logged when a scrub finished with errors ?
When everything succeed, "data-chec done" is wrote, but what in case of errors ?

Anyway, i'm still thinking that adding an explicit line on --detail
output would be very useful

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Last scrub date and result
       [not found] <CAJH6TXjryixcArdcu_oVzmkEyktpMSb62YaUJvUv_Nd7k3mbDg@mail.gmail.com>
  2020-01-10 11:17 ` Last scrub date and result Gandalf Corvotempesta
@ 2020-01-20 14:29 ` Gandalf Corvotempesta
  1 sibling, 0 replies; 5+ messages in thread
From: Gandalf Corvotempesta @ 2020-01-20 14:29 UTC (permalink / raw)
  To: Linux RAID Mailing List

Il giorno lun 6 gen 2020 alle ore 12:49 Gandalf Corvotempesta
<gandalf.corvotempesta@gmail.com> ha scritto:
> 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

something similiar to ZFS:

scan: resilvered 817G in 0 days 01:33:48 with 0 errors on Wed Jan 15
19:36:08 2020

this is for a resilver, but a scub is similiar

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-01-20 14:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CAJH6TXjryixcArdcu_oVzmkEyktpMSb62YaUJvUv_Nd7k3mbDg@mail.gmail.com>
2020-01-10 11:17 ` Last scrub date and result Gandalf Corvotempesta
2020-01-10 17:31   ` Piergiorgio Sartor
     [not found]     ` <CAJH6TXgByNnaWkFo25SrkbR15XgN47b5VhzgWLX=LvMhH-A1VQ@mail.gmail.com>
2020-01-10 18:17       ` Piergiorgio Sartor
2020-01-12 13:57         ` Gandalf Corvotempesta
2020-01-20 14:29 ` Gandalf Corvotempesta

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.