LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-03-2020, 08:13 AM   #1
thund3rstruck
Member
 
Registered: Nov 2005
Location: East Coast, USA
Distribution: Fedora 18, Slackware64 13.37, Windows 7/8
Posts: 386

Rep: Reputation: 43
Question System Problem Detected On Login [RAID]


Hi all,

Approx one week ago I built a new home file server, assembling 3x 10 TB disks into a single RAID5 mdadm volume (/mnt/md0). Array has been working great for the week and I transferred my ~15TB of data from the old server to this one.

This morning I am getting an error on login 'System program problem detected'.

Per the screenshot above, it seems the mdcheck_start.service is failing due to MD array scrubbing.

What does this mean exactly?

UPDATE

It seems this mdcheck_start daemon is trying to launch a script in the path /usr/share/mdadm/mdcheck. Ubuntu 20.04 does not ship with this file and the mdadm packages do not install this file.

Is this service even valid? Should I disable it?

Code:
systemctl status mdcheck_start.service
● mdcheck_start.service - MD array scrubbing
     Loaded: loaded (/lib/systemd/system/mdcheck_start.service; static; vendor preset: enabled)
     Active: failed (Result: exit-code) since Sun 2020-05-03 09:18:05 EDT; 5min ago
TriggeredBy: ● mdcheck_start.timer
    Process: 196602 ExecStart=/usr/share/mdadm/mdcheck --duration $MDADM_CHECK_DURATION (code=exited, status=203/EXEC)
   Main PID: 196602 (code=exited, status=203/EXEC)

May 03 09:18:05 BAILEYFS02 systemd[1]: Starting MD array scrubbing...
May 03 09:18:05 BAILEYFS02 systemd[196602]: mdcheck_start.service: Failed to execute command: No such file or directory
May 03 09:18:05 BAILEYFS02 systemd[196602]: mdcheck_start.service: Failed at step EXEC spawning /usr/share/mdadm/mdcheck: No such file or directory
May 03 09:18:05 BAILEYFS02 systemd[1]: mdcheck_start.service: Main process exited, code=exited, status=203/EXEC
May 03 09:18:05 BAILEYFS02 systemd[1]: mdcheck_start.service: Failed with result 'exit-code'.
May 03 09:18:05 BAILEYFS02 systemd[1]: Failed to start MD array scrubbing.

Last edited by thund3rstruck; 05-03-2020 at 08:33 AM. Reason: Adding more details
 
Old 05-03-2020, 09:34 AM   #2
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,677

Rep: Reputation: Disabled
Looks like Ubuntu just copied this patch from OpenSUSE without much thought. The mdadm.spec from OpenSUSE contains this line:
Code:
install -m 755 misc/mdcheck %{buildroot}/usr/share/mdadm/mdcheck
Moreover, while I see the file SUSE-mdadm_env.sh in Ubuntu source, it doesn't seem to be installed. OpenSUSE package has another patch for this. And another bunch of patches for mdcheck (1, 2, 3, 4).
 
1 members found this post helpful.
Old 05-03-2020, 09:47 AM   #3
thund3rstruck
Member
 
Registered: Nov 2005
Location: East Coast, USA
Distribution: Fedora 18, Slackware64 13.37, Windows 7/8
Posts: 386

Original Poster
Rep: Reputation: 43
Quote:
Originally Posted by shruggy View Post
Looks like Ubuntu just copied this patch from OpenSUSE without much thought. The mdadm.spec from OpenSUSE contains this line:
Code:
install -m 755 misc/mdcheck %{buildroot}/usr/share/mdadm/mdcheck
Moreover, while I see the file SUSE-mdadm_env.sh in Ubuntu source, it doesn't seem to be installed. OpenSUSE package has another patch for this. And another bunch of patches for mdcheck (1, 2, 3, 4).
Thanks for the detailed response!

What should/can I do on my end to resolve this or is this something that I have to wait for Ubuntu to fix on their end?

I'm guessing its kind of important for mdadm to be periodically scrubbing my array to keep it healthy, which is not currently happening...
 
Old 05-03-2020, 10:24 AM   #4
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,677

Rep: Reputation: Disabled
Well, nothing prevents you from downloading the OpenSUSE package, extracting the relevant files (those would be two shell scripts, /usr/lib/mdadm/mdadm_env.sh and /usr/share/mdadm/mdcheck as well as /etc/sysconfig/mdadm), adjusting them to your liking (e.g. changing /etc/sysconfig to /etc/default as is customary on Debian-based distros) and using them.
 
Old 05-03-2020, 12:53 PM   #5
thund3rstruck
Member
 
Registered: Nov 2005
Location: East Coast, USA
Distribution: Fedora 18, Slackware64 13.37, Windows 7/8
Posts: 386

Original Poster
Rep: Reputation: 43
Quote:
Originally Posted by shruggy View Post
Well, nothing prevents you from downloading the OpenSUSE package, extracting the relevant files (those would be two shell scripts, /usr/lib/mdadm/mdadm_env.sh and /usr/share/mdadm/mdcheck as well as /etc/sysconfig/mdadm), adjusting them to your liking (e.g. changing /etc/sysconfig to /etc/default as is customary on Debian-based distros) and using them.
This RAID contains 20 years of vital family and business data and I'm not willing to experiment with various untested solutions. I need something stable (verified and tested) which is what I though long-term support meant.

Thanks again for the responses!

Update

I found the script they forgot to include here.

I made it executable, copied it to the appropriate directory, and started the service. The service now starts, though I am still getting this stupid error dialog on login, whatever it is isn't related to this broken service as the systemctl --failed command shows no failed services now.

Last edited by thund3rstruck; 05-03-2020 at 01:26 PM. Reason: Updating status.
 
Old 05-03-2020, 07:13 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,142

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
Open a bug against Ubuntu so others don't get bitten. As for the annoying pop-up, read this.
 
  


Reply

Tags
mdadm, raid5, ubuntu 20.04



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
raid 1 badly detected as raid 0 when one drive is missing alfonz19@gmail.com Linux - General 5 02-12-2019 06:07 AM
How can I convert RAID 1 to NON-RAID system in Cent OS 5 system? jiltin Linux - Server 6 01-09-2010 10:31 PM
LXer: Linux RAID Smackdown: Crush RAID 5 with RAID 10 LXer Syndicated Linux News 0 02-26-2008 09:40 PM
which raid level (RAID 5 or RAID 10) inspiredbymetal Linux - Server 4 11-25-2007 07:59 PM
HW RAID, fake-HW RAID or SW RAID? stromdal Linux - Hardware 5 08-10-2007 02:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration