Koozali.org: home of the SME Server

mdadm eating up CPU with no I/O load

Offline jwmw

  • 10
  • +0/-0
mdadm eating up CPU with no I/O load
« on: July 28, 2018, 03:23:07 PM »
Hi everyone,

at my parents home I have an SME Server with a recent quadcore and 8 GB of RAM. Since a month everytime I look into top the process mdadm is taking ~ 95% CPU

I restarted the process but after a few minutes the same picture :-(

The raid itself is healthy. A reboot and installing all updates didn't help.

Any thoughts??
« Last Edit: July 28, 2018, 03:25:16 PM by jwmw »

Offline Fumetto

  • *
  • 874
  • +1/-0
Re: mdadm eating up CPU with no I/O load
« Reply #1 on: July 30, 2018, 01:37:28 AM »
I remember something about a raid test, an automatic procedure, I think it started at 4:00 AM (but not sure)...

Offline jwmw

  • 10
  • +0/-0
Re: mdadm eating up CPU with no I/O load
« Reply #2 on: July 30, 2018, 11:05:23 AM »
Thanks Fumetto,

for that hint. Unfortunatly this process occupies one thread 24/7  :shock: :???: not sure what mdadm does whole the time.

Offline craig

  • 10
  • +0/-0
Re: mdadm eating up CPU with no I/O load
« Reply #3 on: July 31, 2018, 05:27:05 PM »
Is there any disc activity?

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: mdadm eating up CPU with no I/O load
« Reply #4 on: July 31, 2018, 06:09:04 PM »
Not sure why it is firing itself like this.

Have you done any mods to the server at all?

I guess first have a look in /etc/cron.d

There should be a file called raid-check

[root@home etc]# cat /etc/cron.d/raid-check
# Run system wide raid-check once a week on Sunday at 1am by default
0 1 * * Sun root /usr/sbin/raid-check

What do these show?

Code: [Select]
cat /proc/mdstat
Code: [Select]
cat/etc/mdadm.conf

...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Jean-Philippe Pialasse

  • *
  • 2,746
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: mdadm eating up CPU with no I/O load
« Reply #5 on: August 15, 2018, 10:01:02 PM »
check your disks with smartctl short and long test (or any already logged errors), you might have a defective disk.
I saw this few months ago, and it happened to be a drive about to die.