Comment 8 for bug 1940514

Revision history for this message
Bin Li (binli) wrote :

@xnox,

 I checked the mdadm source code, in systemd it has provided mdadm.shutdown to stop raid service, should we use the mdadm.finalrd now? From the changelog I couldn't find any history, just 'Ship finalrd hook' in each release, :D. Could you give me some background about the mdadm.finalrd? Our customer have a strong request to dismiss these error messages, if we disable finalrd.service, is there any risk? Thanks a lot!

$ cat mdadm.finalrd
mdmon --all --takeover
mdadm -vv --wait-clean --scan
mdadm -vv --stop --scan

$ cat systemd/mdadm.shutdown
#!/bin/sh
# We need to ensure all md arrays with external metadata
# (e.g. IMSM, DDF) are clean before completing the shutdown.
BINDIR/mdadm --wait-clean --scan