You are not logged in.
Hi,
I just found that my mdadm.service is failed:
# systemctl status mdadm.service
● mdadm.service - MDADM Event Monitor
Loaded: loaded (/usr/lib/systemd/system/mdadm.service; enabled)
Active: failed (Result: exit-code) since dj 2014-07-03 14:01:50 CEST; 10min ago
Process: 536 ExecStart=/usr/bin/mdadm --monitor --scan (code=exited, status=1/FAILURE)
Main PID: 536 (code=exited, status=1/FAILURE)
jul 03 14:01:50 negre systemd[1]: Started MDADM Event Monitor.
jul 03 14:01:50 negre mdadm[536]: mdadm: Only one autorebuild process allowed in scan mode, aborting
jul 03 14:01:50 negre systemd[1]: mdadm.service: main process exited, code=exited, status=1/FAILURE
jul 03 14:01:50 negre systemd[1]: Unit mdadm.service entered failed stateBut I don't know why?
My mdadm.conf is:
# cat /etc/mdadm.conf
ARRAY /dev/md/0 metadata=1.2 UUID=5218f37a:919f639c:b441dc56:4bb92c30 name=negre:0 devices=/dev/sdb1,/dev/sdc1
PROGRAM aplay /usr/local/sbin/Roland-GR-1-Trumpet-C5.wavAnybody could help me to triage that?
Thanks in advance,
Xan
Last edited by xanb (2014-07-07 08:38:50)
Owning one OpenRC (artoo way) and other three systemd machines
Offline
From man mdadm:
For Monitor mode:
...
--no-sharing
This inhibits the functionality for moving spares between arrays. Only one monitoring process started with --scan but without this flag is allowed, otherwise the two could interfere with each other.Sounds like there's already another 'mdadm --monitor --scan' running, and it's refusing to start another. Trying this out on my desktop, where I didn't have mdadm.service running, I see the same output as you. In that case, there was already a running process from mdmonitor.service, which was started by one of the udev rules for mdadm arrays (/usr/lib/udev/rules.d/63-md-raid-arrays.rules on my machine).
ps `pgrep mdadm`should show any already running mdadm processes you have, and
systemctl status mdmonitorwill show you if that particular service is already loaded. If so, it would seem that mdadm.service is redundant.
Last edited by eewallace (2014-07-06 23:17:38)
Offline
eewallace, thank you very much for answering. I had had running the NFS + RAID slices for 2 years without problem until this notice. I'm in trouble here.
Here are my results:
$ systemctl status mdadm.service
● mdadm.service - MDADM Event Monitor
Loaded: loaded (/usr/lib/systemd/system/mdadm.service; enabled)
Active: failed (Result: exit-code) since dl 2014-07-07 09:27:39 CEST; 1min 16s ago
Process: 291 ExecStart=/usr/bin/mdadm --monitor --scan (code=exited, status=1/FAILURE)
Main PID: 291 (code=exited, status=1/FAILURE)
jul 07 09:27:41 negre mdadm[291]: mdadm: Only one autorebuild process allowed in scan mode, aborting
[xane@negre ~]$ ps `pgrep mdadm`
PID TTY STAT TIME COMMAND
244 ? Ss 0:00 /sbin/mdadm --monitor --scan
[xane@negre ~]$ systemctl status mdmonitor
● mdmonitor.service - MD array monitor
Loaded: loaded (/usr/lib/systemd/system/mdmonitor.service; static)
Active: active (running) since dl 2014-07-07 09:27:34 CEST; 5min ago
Process: 242 ExecStartPre=/usr/lib/systemd/scripts/mdadm_env.sh (code=exited, status=203/EXEC)
Main PID: 244 (mdadm)
CGroup: /system.slice/mdmonitor.service
└─244 /sbin/mdadm --monitor --scan
jul 07 09:27:34 negre systemd[1]: Started MD array monitor.What does this mean?
What can I do now?
Last edited by xanb (2014-07-07 07:34:00)
Owning one OpenRC (artoo way) and other three systemd machines
Offline
I have two harddrives replicating with RAID 1, mounting in /mnt/magatzem. I serve this mount point as NFS too but the problem is when I try to mount the NFS in other computer I get:
mount.nfs: requested NFS version or transport protocol is not supportedUPDATE: that's solved: I don't know why nfs-server was off (systemctl enable and start and all works). Now we can concentrate in the mdadm error.
Last edited by xanb (2014-07-07 08:03:37)
Owning one OpenRC (artoo way) and other three systemd machines
Offline
Yes it's.
systemctl disable mdadm.service worksThanks,
From man mdadm:
will show you if that particular service is already loaded. If so, it would seem that mdadm.service is redundant.
Owning one OpenRC (artoo way) and other three systemd machines
Offline
If I'm understanding correctly, the mdadm service is just failing because the command it's trying to run is already being run by another service (mdmonitor). So it doesn't seen like a problem, since the monitor command you want is being run regardless.
Offline
Yes, you understood correctly. I have two issues: nfs-server.service was not running and mdmonitor superseeded mdadm.service.
Thanks
Owning one OpenRC (artoo way) and other three systemd machines
Offline