Bug#641886: /etc/cron.daily/mdadm fails if mdadm monitor daemon, is already running
Same error here. mdadm: Only one autorebuild process allowed in scan mode, aborting run-parts: /etc/cron.daily/mdadm exited with return code 1 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#641886: /etc/cron.daily/mdadm fails if mdadm monitor daemon is already running
On Sat, 17 Sep 2011 07:02:18 + Jamie Heilman ja...@audible.transient.net wrote: Package: mdadm Version: 3.2.2-1 /etc/cron.daily/mdadm: mdadm: Only one autorebuild process allowed in scan mode, aborting run-parts: /etc/cron.daily/mdadm exited with return code 1 root@cucamonga:~# /etc/init.d/mdadm stop Stopping MD monitoring service: mdadm --monitor. root@cucamonga:~# mdadm --monitor --scan --oneshot root@cucamonga:~# /etc/init.d/mdadm start Starting MD monitoring service: mdadm --monitor. root@cucamonga:~# mdadm --monitor --scan --oneshot mdadm: Only one autorebuild process allowed in scan mode, aborting So yeah... that isn't gonna work. Work-around is to add --no-sharing option to --oneshot. i.e. mdadm --monitor --scan --oneshot --no-sharing Fix is to apply this patch which effectively does the same thing. diff --git a/mdadm.c b/mdadm.c index 4b817ab..1533510 100644 --- a/mdadm.c +++ b/mdadm.c @@ -841,6 +841,7 @@ int main(int argc, char *argv[]) continue; case O(MONITOR,'1'): /* oneshot */ oneshot = 1; + spare_sharing = 0; continue; case O(MONITOR,'t'): /* test */ test = 1; This will be in mdadm upstream in the next 24hours. Thanks for the report. NeilBrown signature.asc Description: PGP signature
Bug#641886: /etc/cron.daily/mdadm fails if mdadm monitor daemon is already running
Package: mdadm Version: 3.2.2-1 /etc/cron.daily/mdadm: mdadm: Only one autorebuild process allowed in scan mode, aborting run-parts: /etc/cron.daily/mdadm exited with return code 1 root@cucamonga:~# /etc/init.d/mdadm stop Stopping MD monitoring service: mdadm --monitor. root@cucamonga:~# mdadm --monitor --scan --oneshot root@cucamonga:~# /etc/init.d/mdadm start Starting MD monitoring service: mdadm --monitor. root@cucamonga:~# mdadm --monitor --scan --oneshot mdadm: Only one autorebuild process allowed in scan mode, aborting So yeah... that isn't gonna work. -- Jamie Heilman http://audible.transient.net/~jamie/ Paranoia is a disease unto itself, and may I add, the person standing next to you may not be who they appear to be, so take precaution. -Sathington Willoughby -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org