[Bug 849523] New: mdadmd running superfluously
https://bugzilla.novell.com/show_bug.cgi?id=849523 https://bugzilla.novell.com/show_bug.cgi?id=849523#c0 Summary: mdadmd running superfluously Classification: openSUSE Product: openSUSE Factory Version: 13.1 Beta 1 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: per@computer.org QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:11.0) Gecko/20100101 Firefox/11.0 On a system newly upgraded to 13.1rc2, I noticed mdadmd was running despite /etc/mdadm.conf being non-existent and no RAID arrays being present. It seems pretty odd for it to be started to monitor nothing. When I asked on opensuse-factory, this was part of the answer:
Package mdadmd is installed as a dependency of package libstorage4, which is dependency by autoyast and yast-backup
I don't know if this is a YaST issue, but I'll start with you guys. Reproducible: Always -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=849523
https://bugzilla.novell.com/show_bug.cgi?id=849523#c
Per Jessen
https://bugzilla.novell.com/show_bug.cgi?id=849523
https://bugzilla.novell.com/show_bug.cgi?id=849523#c1
Steffen Winterfeldt
https://bugzilla.novell.com/show_bug.cgi?id=849523
https://bugzilla.novell.com/show_bug.cgi?id=849523#c2
Neil Brown
https://bugzilla.novell.com/show_bug.cgi?id=849523
https://bugzilla.novell.com/show_bug.cgi?id=849523#c3
Per Jessen
It this a problem?
It is useful to have it running if any array is started.
It is easily disabled and stopped, so "problem" is perhaps a bit strong, but it certainly seems unnecessary unless arrays have been configured. I have long been in the habit of configuring and running mdadmd on machines with arrays, which is why I noticed mdadmd running on this machine which has no arrays (hardware raid).
I guess we could conceivably arrange to start it when any array was started. That would require deeper integration with systemd which I guess is inevitable.
Unless it is appropriately configured, the mails will go to root, which quite likely won't be read. Personally speaking, I feel it ought to be the admins job to configure and enable it and make sure the warnings go somewhere sensible. Purely my opinion though. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=849523
https://bugzilla.novell.com/show_bug.cgi?id=849523#c4
Neil Brown
https://bugzilla.novell.com/show_bug.cgi?id=849523
https://bugzilla.novell.com/show_bug.cgi?id=849523#c5
Per Jessen
I just checked a new install of 13.1-rc and mdadmd is not enabled:
systemctl is-enabled mdadmd
reports
disabled
I guess it is conceivable that an upgrade does something different to a fresh install.
Are you sure that mdadmd wasn't enabled previously?
The box is for testing only, it has been running since around June with various 13.1 installations, plus updates. The first kernel was 3.10.0-rc4-1-default. mdadm was installed on the first install (from the y2logs). I would never have had reason to run mdadm on it, as it doesn't have any individual disks, only an HP Smartarray. Judging by the logs, the first start of mdadmd happens 3 October, after an update on 2 October. Kernel was updated to 3.11.2-1.g420e19b-default. I grep'ed around a bit: chestnut:/var/log/zypp # grep mdadm history # 2013-06-15 14:31:56 mdadm-3.2.6-6.2.x86_64.rpm installed ok # Updating /etc/sysconfig/mdadm... 2013-06-15 14:31:56|install|mdadm|3.2.6-6.2|x86_64||openSUSE-13.1-1.12|2230fac607d7140a2e43e174f0680ff53c3dd7ebe6d22e99a1ba1e8686e6491f| # 2013-08-09 17:02:38 mdadm-3.2.6-7.3.x86_64.rpm installed ok # Updating /etc/sysconfig/mdadm... # redirecting to systemctl try-restart mdadmd 2013-08-09 17:02:38|install|mdadm|3.2.6-7.3|x86_64||openSUSE-13.1-1.12|658ea2bc6a05437b4fcd145b59a01e462ccbc1df363be222a0bd0fbb0871aaf0| # 2013-08-21 13:38:47 mdadm-3.2.6-7.4.x86_64.rpm installed ok # Updating /etc/sysconfig/mdadm... # redirecting to systemctl try-restart mdadmd 2013-08-21 13:38:47|install|mdadm|3.2.6-7.4|x86_64||factory|9e3a52502c02c59ee7d9f7dd5560af5151cd4c694e3c248f754cb6c5f3b15fc1| # 2013-10-02 14:40:08 mdadm-3.3-5.2.x86_64.rpm installed ok # Updating /etc/sysconfig/mdadm... # redirecting to systemctl try-restart mdadmd 2013-10-02 14:40:08|install|mdadm|3.3-5.2|x86_64||factory|e52d93f721ab7caf6d81ea882d44da0d8b64f720e15abd88a91acf5cf4b5f5f3| -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=849523
https://bugzilla.novell.com/show_bug.cgi?id=849523#c6
Neil Brown
https://bugzilla.novell.com/show_bug.cgi?id=849523
https://bugzilla.novell.com/show_bug.cgi?id=849523#c7
Neil Brown
https://bugzilla.novell.com/show_bug.cgi?id=849523
https://bugzilla.novell.com/show_bug.cgi?id=849523#c8
Frederic Crozat
Frederic: is there some systemd thing that runs when upgrading from 12.3 to 13.1 which auto-enables scripts in /etc/init.d? Is there any chance it could be enabling mdadmd even though it wasn't enabled for sysv-init?
the upgrade path is saving initscript being enabled in /var/lib/systemd/sysv-convert/database (when a package with systemd service in it is being upgraded for the first time) and enables the service accordingly -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=849523
https://bugzilla.novell.com/show_bug.cgi?id=849523#c9
--- Comment #9 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=849523
https://bugzilla.novell.com/show_bug.cgi?id=849523#c11
--- Comment #11 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=849523
https://bugzilla.novell.com/show_bug.cgi?id=849523#c13
Neil Brown
participants (1)
-
bugzilla_noreply@novell.com