[Bug 920324] Re: /etc/cron.daily/mdadm fails if mdadm monitor daemon is already running

nutznboltz 920324 at bugs.launchpad.net
Tue Feb 7 21:32:06 UTC 2012


** Description changed:

+ Reproducing:
+ 
+ 1. Install Ubuntu 12.04 with md raid.
+ 
+ My system has:
+ 
+ $ cat /proc/mdstat 
+ Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10] 
+ md1 : active raid1 sdb2[1] sda2[0]
+       522048 blocks [2/2] [UU]
+       
+ md0 : active raid1 sdb1[1] sda1[0]
+       10490304 blocks [2/2] [UU]
+       
+ md2 : active raid1 sdc1[0] sdd1[1]
+       805305143 blocks super 1.2 [2/2] [UU]
+       
+ unused devices: <none>
+ 
+ 2. Try running this mdadm command, observe unexpected results:
+ 
+ # mdadm --monitor --scan --oneshot
+ mdadm: Only one autorebuild process allowed in scan mode, aborting
+ 
+ 3. Also cron will send mail:
+ 
  /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
  
- fixed in Debian, please merge from them.
+ 4. Stop any mdadm processes (but only for testing, it is unacceptable to
+ turn off mdadm monitoring.)
+ 
+ # service mdadm stop
+ 
+ 5. Try running, observe expected results:
+ # mdadm --monitor --scan --oneshot
+ (no output)
+ 
+ This issue was fixed in Debian, please d-i this version:
+ 
+ Format: 1.8
+ Date: Wed, 18 Jan 2012 22:33:01 +0400
+ Source: mdadm
+ Binary: mdadm mdadm-udeb
+ Architecture: source i386
+ Version: 3.2.3-2
+ Distribution: unstable
+ Urgency: low
+ Maintainer: Debian mdadm maintainers <pkg-mdadm-devel at lists.alioth.debian.org>
+ Changed-By: Michael Tokarev <mjt at tls.msk.ru>
+ Description: 
+  mdadm      - tool to administer Linux MD arrays (software RAID)
+  mdadm-udeb - tool to administer Linux MD arrays (software RAID) (udeb)
+ Closes: 607375 628667 633880 637068 641584 641886 641972 645563 650630 651737 651880 652547 655212
+ Changes: 
+  mdadm (3.2.3-2) unstable; urgency=low
+  .
+    [ Michael Tokarev ]
+    * new upstream bugfix/stable version, with lots of fixes all over.
+      Closes: #641886, #628667, #645563, #651880, #607375, #633880
+    * update Neil's email (Closes: #650630)
+    * update mdadd.sh to version 1.52 (Closes: #655212)
+    * fixed a typo (RAID6 vs RAID10) in FAQ (Closes: #637068)
+    * declare ordering dependency for multipath-tools-boot in
+      mdadm-raid init script (Closes: #641584)
+      While at it, remove mention of devfsd
+    * added Slovak (sk.po) po-debconf translation from Slavko <linux at slavino.sk>
+      (Closes: #641972)
+    * set nice value of the check/resync thread too, together with I/O
+      scheduling class, based on patch by Sergey B Kirpichev (Closes: #652547)
+    * small changes for debian/checkarray
+    * (internal) move files from contrib/* topgit branches into debian directory
+    * remove dh_testroot from clean target
+    * add myself to uploaders
+  .
+    [ Peter Eisentraut ]
+    * Added support for "status" action to mdadm init script (Closes: #651737)

** Tags added: testcase

** Tags added: precise

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to mdadm in Ubuntu.
https://bugs.launchpad.net/bugs/920324

Title:
  /etc/cron.daily/mdadm fails if mdadm monitor daemon is already running

Status in “mdadm” package in Ubuntu:
  Confirmed
Status in “mdadm” package in Debian:
  Fix Released

Bug description:
  Reproducing:

  1. Install Ubuntu 12.04 with md raid.

  My system has:

  $ cat /proc/mdstat 
  Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10] 
  md1 : active raid1 sdb2[1] sda2[0]
        522048 blocks [2/2] [UU]
        
  md0 : active raid1 sdb1[1] sda1[0]
        10490304 blocks [2/2] [UU]
        
  md2 : active raid1 sdc1[0] sdd1[1]
        805305143 blocks super 1.2 [2/2] [UU]
        
  unused devices: <none>

  2. Try running this mdadm command, observe unexpected results:

  # mdadm --monitor --scan --oneshot
  mdadm: Only one autorebuild process allowed in scan mode, aborting

  3. Also cron will send mail:

  /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

  4. Stop any mdadm processes (but only for testing, it is unacceptable
  to turn off mdadm monitoring.)

  # service mdadm stop

  5. Try running, observe expected results:
  # mdadm --monitor --scan --oneshot
  (no output)

  This issue was fixed in Debian, please d-i this version:

  Format: 1.8
  Date: Wed, 18 Jan 2012 22:33:01 +0400
  Source: mdadm
  Binary: mdadm mdadm-udeb
  Architecture: source i386
  Version: 3.2.3-2
  Distribution: unstable
  Urgency: low
  Maintainer: Debian mdadm maintainers <pkg-mdadm-devel at lists.alioth.debian.org>
  Changed-By: Michael Tokarev <mjt at tls.msk.ru>
  Description: 
   mdadm      - tool to administer Linux MD arrays (software RAID)
   mdadm-udeb - tool to administer Linux MD arrays (software RAID) (udeb)
  Closes: 607375 628667 633880 637068 641584 641886 641972 645563 650630 651737 651880 652547 655212
  Changes: 
   mdadm (3.2.3-2) unstable; urgency=low
   .
     [ Michael Tokarev ]
     * new upstream bugfix/stable version, with lots of fixes all over.
       Closes: #641886, #628667, #645563, #651880, #607375, #633880
     * update Neil's email (Closes: #650630)
     * update mdadd.sh to version 1.52 (Closes: #655212)
     * fixed a typo (RAID6 vs RAID10) in FAQ (Closes: #637068)
     * declare ordering dependency for multipath-tools-boot in
       mdadm-raid init script (Closes: #641584)
       While at it, remove mention of devfsd
     * added Slovak (sk.po) po-debconf translation from Slavko <linux at slavino.sk>
       (Closes: #641972)
     * set nice value of the check/resync thread too, together with I/O
       scheduling class, based on patch by Sergey B Kirpichev (Closes: #652547)
     * small changes for debian/checkarray
     * (internal) move files from contrib/* topgit branches into debian directory
     * remove dh_testroot from clean target
     * add myself to uploaders
   .
     [ Peter Eisentraut ]
     * Added support for "status" action to mdadm init script (Closes: #651737)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/920324/+subscriptions




More information about the foundations-bugs mailing list