Bug#624273: /usr/share/mdadm/checkarray should check creation date

Clint Byrum clint at ubuntu.com
Wed Apr 27 00:34:14 UTC 2011


Package: mdadm
Version: 3.1.4-1+8efb9d1ubuntu4
Severity: wishlist

Forwarding this feature request that was added to Ubuntu a while ago, and still
seems to be present in the mdadm packages.

The original report is available at https://launchpad.net/bugs/188482

Tor Henning Ueland Wrote:
> As i can see, the "/usr/share/mdadm/checkarray" is set up automagicly to
> run the first sunday each month. I created a RAID that finished first
> sync 3 hours ago, and since it`s now the first sunday in the month,
> a new resync started, which is a bit "to fast" IMO.
> 
> The script should make shure that the RAID`s creation date actually is
> more than foo days old before running the script.
> 
> root at foo:/etc# cat /etc/lsb-release
> DISTRIB_ID=Ubuntu
> DISTRIB_RELEASE=7.10
> DISTRIB_CODENAME=gutsy
> DISTRIB_DESCRIPTION="Ubuntu 7.10"

-- Package-specific info:

WARNING:
  the following output was not generated by the root user. If you can, please
  replace the following up until "-- System Information:" with the output of
    /usr/share/bug/mdadm/script 3>&1
  run as root. Thanks!

--- mdadm.conf
DEVICE partitions
CREATE owner=root group=disk mode=0660 auto=yes
HOMEHOST <system>
MAILADDR root

--- /etc/default/mdadm
AUTOCHECK=true
START_DAEMON=true
DAEMON_OPTIONS="--syslog"
VERBOSE=false

--- /proc/mdstat:
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] 
unused devices: <none>

--- /proc/partitions:
major minor  #blocks  name

   8        0  312571224 sda
   8        1     204800 sda1
   8        2  156285612 sda2
   8        3    1952768 sda3
   8        4  154127360 sda4

--- LVM physical volumes:
--- mount output
/dev/sda4 on / type ext4 (rw,errors=remount-ro,commit=0)
proc on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
/dev/sda2 on /mac type hfsplus (ro,uid=1000,gid=1000)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/clint/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=clint)

--- initrd.img-2.6.38-8-generic:
75572 blocks
e73f555a31b2e2f9805649e2ab1a76bb  ./scripts/init-premount/mdadm
317f6a29d6b773cc9691233be351e166  ./etc/mdadm/mdadm.conf
317f6a29d6b773cc9691233be351e166  ./etc/mdadm/mdadm.conf.tmp
e278e2563b460860d6308c584e16eab3  ./lib/modules/2.6.38-8-generic/kernel/drivers/md/raid0.ko
267b886e81b98220dd6afd390b68001a  ./lib/modules/2.6.38-8-generic/kernel/drivers/md/linear.ko
c393ea2ed88d1a439acd7e78de9b234a  ./lib/modules/2.6.38-8-generic/kernel/drivers/md/raid1.ko
71c644f82b1973418df786967912b407  ./lib/modules/2.6.38-8-generic/kernel/drivers/md/raid456.ko
cbd4ddb3113934dadf2c31e19f1492bb  ./lib/modules/2.6.38-8-generic/kernel/drivers/md/raid10.ko
ef4a9f8a4b98e00aa83dc4e622ba75e3  ./lib/modules/2.6.38-8-generic/kernel/drivers/md/multipath.ko
7ad3b050ca82a8ccb193c848b6ef8c04  ./conf/conf.d/mdadm
8e29ba3efb8e8487fb5b611ebcda8336  ./sbin/mdadm

--- initrd's /conf/conf.d/md:
no conf/md file.

--- /proc/modules:
raid10 30673 0 - Live 0x0000000000000000
raid456 62777 0 - Live 0x0000000000000000
async_pq 12995 1 raid456, Live 0x0000000000000000
async_xor 12879 2 raid456,async_pq, Live 0x0000000000000000
async_memcpy 12529 1 raid456, Live 0x0000000000000000
async_raid6_recov 12776 1 raid456, Live 0x0000000000000000
raid6_pq 88307 2 async_pq,async_raid6_recov, Live 0x0000000000000000
async_tx 13349 5 raid456,async_pq,async_xor,async_memcpy,async_raid6_recov, Live 0x0000000000000000
raid1 30596 0 - Live 0x0000000000000000
raid0 17271 0 - Live 0x0000000000000000
multipath 13187 0 - Live 0x0000000000000000
linear 12966 0 - Live 0x0000000000000000

--- /var/log/syslog:

--- volume detail:
/dev/sda not readable by user.
/dev/sda1 not readable by user.
/dev/sda2 not readable by user.
/dev/sda3 not readable by user.
/dev/sda4 not readable by user.

--- /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-2.6.38-8-generic root=UUID=ed27950b-c6c0-4232-aa2b-c545364a68b8 ro quiet splash vt.handoff=7

--- grub2:
set root='(/dev/sda,gpt4)'
set root='(/dev/sda,gpt4)'
	set root='(/dev/sda,gpt4)'
	linux	/boot/vmlinuz-2.6.38-8-generic root=UUID=ed27950b-c6c0-4232-aa2b-c545364a68b8 ro   quiet splash vt.handoff=7
	set root='(/dev/sda,gpt4)'
	linux	/boot/vmlinuz-2.6.38-8-generic root=UUID=ed27950b-c6c0-4232-aa2b-c545364a68b8 ro single 
	set root='(/dev/sda,gpt4)'
	linux	/boot/vmlinuz-2.6.38-7-generic root=UUID=ed27950b-c6c0-4232-aa2b-c545364a68b8 ro   quiet splash vt.handoff=7
	set root='(/dev/sda,gpt4)'
	linux	/boot/vmlinuz-2.6.38-7-generic root=UUID=ed27950b-c6c0-4232-aa2b-c545364a68b8 ro single 
	set root='(/dev/sda,gpt4)'
	linux	/boot/vmlinuz-2.6.38-6-generic root=UUID=ed27950b-c6c0-4232-aa2b-c545364a68b8 ro   quiet splash vt.handoff=7
	set root='(/dev/sda,gpt4)'
	linux	/boot/vmlinuz-2.6.38-6-generic root=UUID=ed27950b-c6c0-4232-aa2b-c545364a68b8 ro single 
	set root='(/dev/sda,gpt4)'
	linux	/boot/vmlinuz-2.6.38-5-generic root=UUID=ed27950b-c6c0-4232-aa2b-c545364a68b8 ro   quiet splash vt.handoff=7
	set root='(/dev/sda,gpt4)'
	linux	/boot/vmlinuz-2.6.38-5-generic root=UUID=ed27950b-c6c0-4232-aa2b-c545364a68b8 ro single 
	set root='(/dev/sda,gpt4)'
	linux	/boot/vmlinuz-2.6.38-1-generic root=UUID=ed27950b-c6c0-4232-aa2b-c545364a68b8 ro   quiet splash vt.handoff=7
	set root='(/dev/sda,gpt4)'
	linux	/boot/vmlinuz-2.6.38-1-generic root=UUID=ed27950b-c6c0-4232-aa2b-c545364a68b8 ro single 
	set root='(/dev/sda,gpt4)'
	linux	/boot/vmlinuz-2.6.37-12-generic root=UUID=ed27950b-c6c0-4232-aa2b-c545364a68b8 ro   quiet splash vt.handoff=7
	set root='(/dev/sda,gpt4)'
	linux	/boot/vmlinuz-2.6.37-12-generic root=UUID=ed27950b-c6c0-4232-aa2b-c545364a68b8 ro single 
	set root='(/dev/sda,gpt4)'
	linux	/boot/vmlinuz-2.6.37-11-generic root=UUID=ed27950b-c6c0-4232-aa2b-c545364a68b8 ro   quiet splash vt.handoff=7
	set root='(/dev/sda,gpt4)'
	linux	/boot/vmlinuz-2.6.37-11-generic root=UUID=ed27950b-c6c0-4232-aa2b-c545364a68b8 ro single 
	set root='(/dev/sda,gpt4)'
	linux	/boot/vmlinuz-2.6.35-23-generic root=UUID=ed27950b-c6c0-4232-aa2b-c545364a68b8 ro   quiet splash vt.handoff=7
	set root='(/dev/sda,gpt4)'
	linux	/boot/vmlinuz-2.6.35-23-generic root=UUID=ed27950b-c6c0-4232-aa2b-c545364a68b8 ro single 
	set root='(/dev/sda,gpt4)'
	set root='(/dev/sda,gpt4)'
	set root='(/dev/sda,gpt2)'
	set root='(/dev/sda,gpt2)'

--- udev:
ii  udev           167-0ubuntu3   rule-based device node and kernel event mana
e143161798744026d7e4aac78e0bfede  /lib/udev/rules.d/65-mdadm-blkid.rules
916ce910a5829a0026a5b8bb3861c935  /lib/udev/rules.d/85-mdadm.rules

--- /dev:
/dev/disk/by-id:
total 0
lrwxrwxrwx 1 root root  9 Apr 24 11:18 ata-Hitachi_HTS543232L9SA02_081031FB1400LEHTG0AF -> ../../sda
lrwxrwxrwx 1 root root 10 Apr 24 11:18 ata-Hitachi_HTS543232L9SA02_081031FB1400LEHTG0AF-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Apr 24 11:18 ata-Hitachi_HTS543232L9SA02_081031FB1400LEHTG0AF-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Apr 24 11:18 ata-Hitachi_HTS543232L9SA02_081031FB1400LEHTG0AF-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Apr 24 11:18 ata-Hitachi_HTS543232L9SA02_081031FB1400LEHTG0AF-part4 -> ../../sda4
lrwxrwxrwx 1 root root  9 Apr 25 08:30 ata-MATSHITADVD-R_UJ-868_dE07DF79 -> ../../sr0
lrwxrwxrwx 1 root root  9 Apr 24 11:18 scsi-SATA_Hitachi_HTS5432081031FB1400LEHTG0AF -> ../../sda
lrwxrwxrwx 1 root root 10 Apr 24 11:18 scsi-SATA_Hitachi_HTS5432081031FB1400LEHTG0AF-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Apr 24 11:18 scsi-SATA_Hitachi_HTS5432081031FB1400LEHTG0AF-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Apr 24 11:18 scsi-SATA_Hitachi_HTS5432081031FB1400LEHTG0AF-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Apr 24 11:18 scsi-SATA_Hitachi_HTS5432081031FB1400LEHTG0AF-part4 -> ../../sda4
lrwxrwxrwx 1 root root  9 Apr 24 11:18 wwn-0x5000cca55dd93501 -> ../../sda
lrwxrwxrwx 1 root root 10 Apr 24 11:18 wwn-0x5000cca55dd93501-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Apr 24 11:18 wwn-0x5000cca55dd93501-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Apr 24 11:18 wwn-0x5000cca55dd93501-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Apr 24 11:18 wwn-0x5000cca55dd93501-part4 -> ../../sda4

/dev/disk/by-label:
total 0
lrwxrwxrwx 1 root root 10 Apr 24 11:18 EFI -> ../../sda1
lrwxrwxrwx 1 root root 10 Apr 24 11:18 Mac\x20HD -> ../../sda2

/dev/disk/by-path:
total 0
lrwxrwxrwx 1 root root  9 Apr 24 11:18 pci-0000:00:0b.0-scsi-0:0:0:0 -> ../../sda
lrwxrwxrwx 1 root root 10 Apr 24 11:18 pci-0000:00:0b.0-scsi-0:0:0:0-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Apr 24 11:18 pci-0000:00:0b.0-scsi-0:0:0:0-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Apr 24 11:18 pci-0000:00:0b.0-scsi-0:0:0:0-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Apr 24 11:18 pci-0000:00:0b.0-scsi-0:0:0:0-part4 -> ../../sda4
lrwxrwxrwx 1 root root  9 Apr 25 08:30 pci-0000:00:0b.0-scsi-1:0:0:0 -> ../../sr0

/dev/disk/by-uuid:
total 0
lrwxrwxrwx 1 root root 10 Apr 24 11:18 70D6-1701 -> ../../sda1
lrwxrwxrwx 1 root root 10 Apr 24 11:18 8bc3e467-6c70-4013-b164-5df3de0326f2 -> ../../sda3
lrwxrwxrwx 1 root root 10 Apr 24 11:18 ed27950b-c6c0-4232-aa2b-c545364a68b8 -> ../../sda4
lrwxrwxrwx 1 root root 10 Apr 24 11:18 f7f4f9c8-185f-37e8-b11e-0f604cba76f8 -> ../../sda2

Auto-generated on Tue, 26 Apr 2011 17:32:13 -0700
by mdadm bugscript 3.1.4-1+8efb9d1ubuntu4

-- System Information:
Debian Release: squeeze/sid
  APT prefers natty-updates
  APT policy: (500, 'natty-updates'), (500, 'natty-security'), (500, 'natty')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.38-8-generic (SMP w/2 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.36ubuntu4     Debian configuration management sy
ii  initramfs-tools        0.98.8ubuntu3     tools for generating an initramfs
ii  libc6                  2.13-0ubuntu13    Embedded GNU C Library: Shared lib
ii  lsb-base               4.0-0ubuntu10     Linux Standard Base 4.0 init scrip
ii  udev                   167-0ubuntu3      rule-based device node and kernel 
ii  util-linux             2.17.2-9.1ubuntu4 Miscellaneous system utilities

Versions of packages mdadm recommends:
ii  module-init-tools         3.12-1ubuntu6  tools for managing Linux kernel mo
ii  postfix [mail-transport-a 2.8.2-1ubuntu1 High-performance mail transport ag

mdadm suggests no packages.

-- debconf information excluded





More information about the pkg-mdadm-devel mailing list