public inbox for linux-raid@vger.kernel.org
 help / color / mirror / Atom feed
* Question about mdcheck
@ 2021-04-05 17:17 Jeffery Small
  2021-04-05 18:58 ` Jeffery Small
  0 siblings, 1 reply; 4+ messages in thread
From: Jeffery Small @ 2021-04-05 17:17 UTC (permalink / raw)
  To: Mailing Lists

This is on an Xubuntu 20.04 system.

I was wondering why I was occasionally seeing a "check" operation
occurring on my clean RAID1 mirrors.  Eventually I discovered the
checkarray and mdcheck scripts in /usr/share/mdadm.  It appears
that checkarray isn't used (is that correct?), but mdcheck is being
launched by /lib/systemd/system/mdcheck_start.service on the first
Sunday of each month.  I have a couple of questions?

1: Where do you look for the systemctl scheduling of services
like this?  Is there a cron-like scheduler?  The time for this needs
to be adjusted.

2: Why does mdcheck get a 6 hour run duration set?  Right now
it is starting a little after 8 AM, running until 2 PM and then check-
pointed and suspended.  On Monday at 9:10 AM it  continued due
to /lib/systemd/system/mdcheck_continue.service. It is running on
a 4TB raid that takes over 12 hours to complete, so why stop it
after 6 hours?  I'm certainly not getting any advantage to running in
off hours since it is starting at a really inappropriate time.

3: The process is really putting a load on the system and interfering
with other work.  Can the priority for this process be lowered so that
it doesn't consume so many resources?

4: How critical is the check operation?  Does it discover things that
the normal RAID operation misses?

Anything else I should know about all of this?

Thanks.
--
Jeffery Small

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

end of thread, other threads:[~2021-04-05 19:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-05 17:17 Question about mdcheck Jeffery Small
2021-04-05 18:58 ` Jeffery Small
2021-04-05 19:06   ` systemd black magic (was "Re: Question about mdcheck") David T-G
2021-04-05 19:21     ` Paul Menzel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox