Package: mdadm Version: 3.1.1-1 Severity: normal I got this morning a mail message from the cron daemon of a ~10 days old system:
>Subject: Cron <r...@misun50> [ -x /usr/share/mdadm/checkarray ] && [ $(date >+%d) -le 7 ] && /usr/share/mdadm/checkarray --cron --all --quiet (failed) >Date: Sun, 09 May 2010 00:57:01 +0200 > >command failed with exit status 1 It seems to me that the exit status 1 is only due to the date test. Wouldn't it be nicer to put these tests into a shell script which returns exit status 0 if its not the first week of the month? Regards, Meik -- Package-specific info: --- mount output /dev/md0 on / type ext3 (rw,errors=remount-ro) tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) udev on /dev type tmpfs (rw,mode=0755) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620) /dev/sda1 on /boot type ext3 (rw) /dev/sdb1 on /boot2 type ext3 (rw) /dev/md1 on /home type ext4 (rw) fusectl on /sys/fs/fuse/connections type fusectl (rw) binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev) automount(pid5393) on /www type autofs (rw,fd=4,pgrp=5393,minproto=2,maxproto=4) --- mdadm.conf # mdadm.conf # # Please refer to mdadm.conf(5) for information about this file. # # by default, scan all partitions (/proc/partitions) for MD superblocks. # alternatively, specify devices to scan, using wildcards if desired. DEVICE partitions # auto-create devices with Debian standard permissions CREATE owner=root group=disk mode=0660 auto=yes # automatically tag new arrays as belonging to the local system HOMEHOST <system> # instruct the monitoring daemon where to send mail alerts MAILADDR *...@***.uni-leipzig.de # definitions of existing MD arrays ARRAY /dev/md/0 metadata=1.1 UUID=1f351652:ac2b8e1b:4a4bf18e:fe3b68fa name=misun50:0 ARRAY /dev/md/1 metadata=1.1 UUID=77c1c118:35b1836c:0e68af8b:37e4e24c name=misun50:1 # This file was auto-generated on Fri, 30 Apr 2010 16:24:56 +0200 # by mkconf 3.0.3-2 --- /proc/mdstat: Personalities : [raid1] md1 : active raid1 sda4[0] sdb4[1] 380859260 blocks super 1.1 [2/2] [UU] [==============>......] check = 73.4% (279676928/380859260) finish=17.7min speed=95191K/sec md0 : active raid1 sda3[0] sdb3[1] 97655740 blocks super 1.1 [2/2] [UU] unused devices: <none> --- /proc/partitions: major minor #blocks name 8 0 488386584 sda 8 1 3905536 sda1 8 2 3906560 sda2 8 3 97655808 sda3 8 4 380859392 sda4 8 16 488386584 sdb 8 17 3905536 sdb1 8 18 3906560 sdb2 8 19 97655808 sdb3 8 20 380859392 sdb4 9 0 97655740 md0 9 1 380859260 md1 --- initrd.img-2.6.32-5-amd64: 52117 blocks 116eeea1a50e23e247508b2b4480cc55 ./sbin/mdadm 1f77d21fea1973a7d503e0a9989d9a55 ./etc/mdadm/mdadm.conf f4fbd9099399ab08ba9b9f6c71d77595 ./scripts/local-top/mdadm b1fbc253428467880289edb547cc1c94 ./lib/modules/2.6.32-5-amd64/kernel/drivers/md/raid6_pq.ko 4513e8fea21d3c53ff37a912d8b98d27 ./lib/modules/2.6.32-5-amd64/kernel/drivers/md/raid0.ko d51961784f152a12ef53f7f2e2765f39 ./lib/modules/2.6.32-5-amd64/kernel/drivers/md/raid456.ko d509d6a56f54258c8bc705e1838b962e ./lib/modules/2.6.32-5-amd64/kernel/drivers/md/multipath.ko cb47f44a0ce2899805eb7013082fb60d ./lib/modules/2.6.32-5-amd64/kernel/drivers/md/raid10.ko dd279244c63c4a4a7fed6d6bc8f439e7 ./lib/modules/2.6.32-5-amd64/kernel/drivers/md/linear.ko 9016965443351ccad6449af6a58a78de ./lib/modules/2.6.32-5-amd64/kernel/drivers/md/raid1.ko 058b4302fc23705a5694d77dcc556f07 ./lib/modules/2.6.32-5-amd64/kernel/drivers/md/md-mod.ko --- /proc/modules: raid1 18191 2 - Live 0xffffffffa011b000 md_mod 73648 3 raid1, Live 0xffffffffa00ff000 --- /var/log/syslog: --- volume detail: /dev/sda is not recognised by mdadm. /dev/sda1 is not recognised by mdadm. /dev/sda2 is not recognised by mdadm. /dev/sda3: Magic : a92b4efc Version : 1.1 Feature Map : 0x0 Array UUID : 1f351652:ac2b8e1b:4a4bf18e:fe3b68fa Name : misun50:0 (local to host misun50) Creation Time : Fri Apr 30 16:21:31 2010 Raid Level : raid1 Raid Devices : 2 Avail Dev Size : 195311480 (93.13 GiB 100.00 GB) Array Size : 195311480 (93.13 GiB 100.00 GB) Data Offset : 136 sectors Super Offset : 0 sectors State : clean Device UUID : 0b99a6e8:e8530e22:ce3f3442:347daafc Update Time : Sun May 9 14:51:55 2010 Checksum : 486b997f - correct Events : 4376 Device Role : Active device 0 Array State : AA ('A' == active, '.' == missing) -- /dev/sda4: Magic : a92b4efc Version : 1.1 Feature Map : 0x0 Array UUID : 77c1c118:35b1836c:0e68af8b:37e4e24c Name : misun50:1 (local to host misun50) Creation Time : Fri Apr 30 16:21:42 2010 Raid Level : raid1 Raid Devices : 2 Avail Dev Size : 761718520 (363.22 GiB 390.00 GB) Array Size : 761718520 (363.22 GiB 390.00 GB) Data Offset : 264 sectors Super Offset : 0 sectors State : clean Device UUID : f2f47441:843d483b:03259c77:8b9b2d66 Update Time : Sun May 9 14:50:05 2010 Checksum : 3be079a - correct Events : 41 Device Role : Active device 0 Array State : AA ('A' == active, '.' == missing) -- /dev/sdb is not recognised by mdadm. /dev/sdb1 is not recognised by mdadm. /dev/sdb2 is not recognised by mdadm. /dev/sdb3: Magic : a92b4efc Version : 1.1 Feature Map : 0x0 Array UUID : 1f351652:ac2b8e1b:4a4bf18e:fe3b68fa Name : misun50:0 (local to host misun50) Creation Time : Fri Apr 30 16:21:31 2010 Raid Level : raid1 Raid Devices : 2 Avail Dev Size : 195311480 (93.13 GiB 100.00 GB) Array Size : 195311480 (93.13 GiB 100.00 GB) Data Offset : 136 sectors Super Offset : 0 sectors State : clean Device UUID : 0c04236a:a0c2ead6:53665757:6314b06b Update Time : Sun May 9 14:51:55 2010 Checksum : 2ed30ed - correct Events : 4376 Device Role : Active device 1 Array State : AA ('A' == active, '.' == missing) -- /dev/sdb4: Magic : a92b4efc Version : 1.1 Feature Map : 0x0 Array UUID : 77c1c118:35b1836c:0e68af8b:37e4e24c Name : misun50:1 (local to host misun50) Creation Time : Fri Apr 30 16:21:42 2010 Raid Level : raid1 Raid Devices : 2 Avail Dev Size : 761718520 (363.22 GiB 390.00 GB) Array Size : 761718520 (363.22 GiB 390.00 GB) Data Offset : 264 sectors Super Offset : 0 sectors State : clean Device UUID : dd44ff7b:98a8bb41:8a0d2fa4:73da6ef2 Update Time : Sun May 9 14:50:05 2010 Checksum : fd8fea09 - correct Events : 41 Device Role : Active device 1 Array State : AA ('A' == active, '.' == missing) -- --- /proc/cmdline BOOT_IMAGE=/vmlinuz-2.6.32-5-amd64 root=/dev/md0 ro quiet --- grub2: set root='(hd0,1)' set root='(hd0,1)' linux /vmlinuz-2.6.32-5-amd64 root=/dev/md0 ro quiet set root='(hd0,1)' linux /vmlinuz-2.6.32-5-amd64 root=/dev/md0 ro single set root='(hd0,1)' set root='(hd0,1)' --- udev: ii udev 153-2 /dev/ and hotplug management daemon 4a574fcd059040d33ea18a8aa605a184 /lib/udev/rules.d/64-md-raid.rules --- /dev: brw-rw---- 1 root disk 9, 0 May 6 13:15 /dev/md0 brw-rw---- 1 root disk 9, 1 May 6 13:15 /dev/md1 /dev/disk/by-id: total 0 lrwxrwxrwx 1 root root 9 May 6 13:15 ata-SAMSUNG_HD502HJ_S20BJ9FZ300560 -> ../../sdb lrwxrwxrwx 1 root root 10 May 6 13:15 ata-SAMSUNG_HD502HJ_S20BJ9FZ300560-part1 -> ../../sdb1 lrwxrwxrwx 1 root root 10 May 6 13:15 ata-SAMSUNG_HD502HJ_S20BJ9FZ300560-part2 -> ../../sdb2 lrwxrwxrwx 1 root root 10 May 6 13:15 ata-SAMSUNG_HD502HJ_S20BJ9FZ300560-part3 -> ../../sdb3 lrwxrwxrwx 1 root root 10 May 6 13:15 ata-SAMSUNG_HD502HJ_S20BJ9FZ300560-part4 -> ../../sdb4 lrwxrwxrwx 1 root root 9 May 6 13:15 ata-SAMSUNG_HD502HJ_S20BJ9FZ302835 -> ../../sda lrwxrwxrwx 1 root root 10 May 6 13:15 ata-SAMSUNG_HD502HJ_S20BJ9FZ302835-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 May 6 13:15 ata-SAMSUNG_HD502HJ_S20BJ9FZ302835-part2 -> ../../sda2 lrwxrwxrwx 1 root root 10 May 6 13:15 ata-SAMSUNG_HD502HJ_S20BJ9FZ302835-part3 -> ../../sda3 lrwxrwxrwx 1 root root 10 May 6 13:15 ata-SAMSUNG_HD502HJ_S20BJ9FZ302835-part4 -> ../../sda4 lrwxrwxrwx 1 root root 9 May 6 13:15 md-name-misun50:0 -> ../../md0 lrwxrwxrwx 1 root root 9 May 6 13:15 md-name-misun50:1 -> ../../md1 lrwxrwxrwx 1 root root 9 May 6 13:15 md-uuid-1f351652:ac2b8e1b:4a4bf18e:fe3b68fa -> ../../md0 lrwxrwxrwx 1 root root 9 May 6 13:15 md-uuid-77c1c118:35b1836c:0e68af8b:37e4e24c -> ../../md1 lrwxrwxrwx 1 root root 9 May 6 13:15 scsi-SATA_SAMSUNG_HD502HJS20BJ9FZ300560 -> ../../sdb lrwxrwxrwx 1 root root 10 May 6 13:15 scsi-SATA_SAMSUNG_HD502HJS20BJ9FZ300560-part1 -> ../../sdb1 lrwxrwxrwx 1 root root 10 May 6 13:15 scsi-SATA_SAMSUNG_HD502HJS20BJ9FZ300560-part2 -> ../../sdb2 lrwxrwxrwx 1 root root 10 May 6 13:15 scsi-SATA_SAMSUNG_HD502HJS20BJ9FZ300560-part3 -> ../../sdb3 lrwxrwxrwx 1 root root 10 May 6 13:15 scsi-SATA_SAMSUNG_HD502HJS20BJ9FZ300560-part4 -> ../../sdb4 lrwxrwxrwx 1 root root 9 May 6 13:15 scsi-SATA_SAMSUNG_HD502HJS20BJ9FZ302835 -> ../../sda lrwxrwxrwx 1 root root 10 May 6 13:15 scsi-SATA_SAMSUNG_HD502HJS20BJ9FZ302835-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 May 6 13:15 scsi-SATA_SAMSUNG_HD502HJS20BJ9FZ302835-part2 -> ../../sda2 lrwxrwxrwx 1 root root 10 May 6 13:15 scsi-SATA_SAMSUNG_HD502HJS20BJ9FZ302835-part3 -> ../../sda3 lrwxrwxrwx 1 root root 10 May 6 13:15 scsi-SATA_SAMSUNG_HD502HJS20BJ9FZ302835-part4 -> ../../sda4 lrwxrwxrwx 1 root root 9 May 6 13:15 wwn-0x50024e92020e958a -> ../../sdb lrwxrwxrwx 1 root root 10 May 6 13:15 wwn-0x50024e92020e958a-part1 -> ../../sdb1 lrwxrwxrwx 1 root root 10 May 6 13:15 wwn-0x50024e92020e958a-part2 -> ../../sdb2 lrwxrwxrwx 1 root root 10 May 6 13:15 wwn-0x50024e92020e958a-part3 -> ../../sdb3 lrwxrwxrwx 1 root root 10 May 6 13:15 wwn-0x50024e92020e958a-part4 -> ../../sdb4 lrwxrwxrwx 1 root root 9 May 6 13:15 wwn-0x50024e920230ac54 -> ../../sda lrwxrwxrwx 1 root root 10 May 6 13:15 wwn-0x50024e920230ac54-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 May 6 13:15 wwn-0x50024e920230ac54-part2 -> ../../sda2 lrwxrwxrwx 1 root root 10 May 6 13:15 wwn-0x50024e920230ac54-part3 -> ../../sda3 lrwxrwxrwx 1 root root 10 May 6 13:15 wwn-0x50024e920230ac54-part4 -> ../../sda4 /dev/disk/by-path: total 0 lrwxrwxrwx 1 root root 9 May 6 13:15 pci-0000:00:1f.2-scsi-0:0:0:0 -> ../../sda lrwxrwxrwx 1 root root 10 May 6 13:15 pci-0000:00:1f.2-scsi-0:0:0:0-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 May 6 13:15 pci-0000:00:1f.2-scsi-0:0:0:0-part2 -> ../../sda2 lrwxrwxrwx 1 root root 10 May 6 13:15 pci-0000:00:1f.2-scsi-0:0:0:0-part3 -> ../../sda3 lrwxrwxrwx 1 root root 10 May 6 13:15 pci-0000:00:1f.2-scsi-0:0:0:0-part4 -> ../../sda4 lrwxrwxrwx 1 root root 9 May 6 13:15 pci-0000:00:1f.2-scsi-1:0:0:0 -> ../../sdb lrwxrwxrwx 1 root root 10 May 6 13:15 pci-0000:00:1f.2-scsi-1:0:0:0-part1 -> ../../sdb1 lrwxrwxrwx 1 root root 10 May 6 13:15 pci-0000:00:1f.2-scsi-1:0:0:0-part2 -> ../../sdb2 lrwxrwxrwx 1 root root 10 May 6 13:15 pci-0000:00:1f.2-scsi-1:0:0:0-part3 -> ../../sdb3 lrwxrwxrwx 1 root root 10 May 6 13:15 pci-0000:00:1f.2-scsi-1:0:0:0-part4 -> ../../sdb4 lrwxrwxrwx 1 root root 9 May 6 13:15 pci-0000:00:1f.2-scsi-5:0:0:0 -> ../../sr0 /dev/disk/by-uuid: total 0 lrwxrwxrwx 1 root root 10 May 6 13:15 31988b6c-8850-486f-8322-612aecb1dca6 -> ../../sda1 lrwxrwxrwx 1 root root 10 May 6 13:15 887cdaac-1858-493d-bd26-18ca99786d0d -> ../../sda2 lrwxrwxrwx 1 root root 9 May 6 13:15 8bd25eba-0675-4067-91e8-aa263e2c01b0 -> ../../md1 lrwxrwxrwx 1 root root 10 May 6 13:15 c0ae282d-7b8a-4c4a-ae47-cea44250928a -> ../../sdb2 lrwxrwxrwx 1 root root 10 May 6 13:15 ccc02690-4ff9-467e-8ecc-e14219926ff2 -> ../../sdb1 lrwxrwxrwx 1 root root 9 May 6 13:15 e382a67c-dbb7-4a25-b492-a23a7ee81342 -> ../../md0 /dev/md: total 0 lrwxrwxrwx 1 root root 6 May 6 13:15 0 -> ../md0 lrwxrwxrwx 1 root root 6 May 6 13:15 1 -> ../md1 Auto-generated on Sun, 09 May 2010 14:53:14 +0200 by mdadm bugscript 3.1.1-1 -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages mdadm depends on: ii debconf 1.5.32 Debian configuration management sy ii libc6 2.10.2-7 Embedded GNU C Library: Shared lib ii lsb-base 3.2-23.1 Linux Standard Base 3.2 init scrip ii udev 153-2 /dev/ and hotplug management daemo Versions of packages mdadm recommends: ii exim4-daemon-light [mail-tra 4.71-4 lightweight Exim MTA (v4) daemon ii module-init-tools 3.12~pre2-3 tools for managing Linux kernel mo mdadm suggests no packages. -- debconf information excluded -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org