Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Fedora 18, Slackware64 13.37, Windows 7/8
Posts: 386
Rep:
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.
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
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).
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...
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.
Distribution: Fedora 18, Slackware64 13.37, Windows 7/8
Posts: 386
Original Poster
Rep:
Quote:
Originally Posted by shruggy
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.