Koozali.org formerly Contribs.org

Contribs.org Forums => SME Server 9.x => Topic started by: jwmw on July 28, 2018, 03:23:07 PM

Title: mdadm eating up CPU with no I/O load
Post by: jwmw 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??
Title: Re: mdadm eating up CPU with no I/O load
Post by: Fumetto 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)...
Title: Re: mdadm eating up CPU with no I/O load
Post by: jwmw 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.
Title: Re: mdadm eating up CPU with no I/O load
Post by: craig on July 31, 2018, 05:27:05 PM
Is there any disc activity?
Title: Re: mdadm eating up CPU with no I/O load
Post by: ReetP 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

Title: Re: mdadm eating up CPU with no I/O load
Post by: Jean-Philippe Pialasse 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.