Package: mdadm
Version: 4.2-5
Severity: important
X-Debbugs-Cc: olau...@gmail.com

step to reproduce :
build a simple2-disks raid1 with mdadm
remove on of the 2 disks
mdadm mark the array as inactive
(we could stop and re-assemble the array manually, but the point of this bug 
report is that debian shouldassemble such array at boot, and then send a 
warning email)



-- Package-specific info:
--- mdadm.conf
HOMEHOST <system>
MAILADDR root

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

--- /proc/mdstat:
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] 
[raid10] 
md127 : inactive vdb1[0](S)
      10474496 blocks super 1.2
       
unused devices: <none>

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

 254        0   20971520 vda
 254        1   19970048 vda1
 254        2          1 vda2
 254        5     998400 vda5
 254       16   10485760 vdb
 254       17   10483712 vdb1
  11        0    1048575 sr0

--- LVM physical volumes:
LVM does not seem to be used.
--- mount output
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs 
(rw,nosuid,relatime,size=987632k,nr_inodes=246908,mode=755,inode64)
devpts on /dev/pts type devpts 
(rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs 
(rw,nosuid,nodev,noexec,relatime,size=201416k,mode=755,inode64)
/dev/vda1 on / type ext4 (rw,relatime,errors=remount-ro)
securityfs on /sys/kernel/security type securityfs 
(rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,inode64)
tmpfs on /run/lock type tmpfs 
(rw,nosuid,nodev,noexec,relatime,size=5120k,inode64)
cgroup2 on /sys/fs/cgroup type cgroup2 
(rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs 
(rw,relatime,fd=30,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=1923)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl 
(rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
ramfs on /run/credentials/systemd-sysctl.service type ramfs 
(ro,nosuid,nodev,noexec,relatime,mode=700)
ramfs on /run/credentials/systemd-sysusers.service type ramfs 
(ro,nosuid,nodev,noexec,relatime,mode=700)
ramfs on /run/credentials/systemd-tmpfiles-setup-dev.service type ramfs 
(ro,nosuid,nodev,noexec,relatime,mode=700)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc 
(rw,nosuid,nodev,noexec,relatime)
ramfs on /run/credentials/systemd-tmpfiles-setup.service type ramfs 
(ro,nosuid,nodev,noexec,relatime,mode=700)
tmpfs on /run/user/0 type tmpfs 
(rw,nosuid,nodev,relatime,size=201416k,nr_inodes=50354,mode=700,inode64)

--- initrd.img-6.1.0-30-amd64:

gzip: /boot/initrd.img-6.1.0-30-amd64: not in gzip format
cpio: premature end of archive

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

--- /proc/modules:
dm_mod 184320 0 - Live 0xffffffffc0790000
raid10 65536 0 - Live 0xffffffffc05e8000
raid456 180224 0 - Live 0xffffffffc05b1000
async_raid6_recov 24576 1 raid456, Live 0xffffffffc05aa000
async_memcpy 20480 2 raid456,async_raid6_recov, Live 0xffffffffc05a4000
async_pq 20480 2 raid456,async_raid6_recov, Live 0xffffffffc059a000
async_xor 20480 3 raid456,async_raid6_recov,async_pq, Live 0xffffffffc0594000
async_tx 20480 5 raid456,async_raid6_recov,async_memcpy,async_pq,async_xor, 
Live 0xffffffffc046c000
raid6_pq 122880 3 raid456,async_raid6_recov,async_pq, Live 0xffffffffc0575000
libcrc32c 16384 1 raid456, Live 0xffffffffc0373000
raid1 53248 0 - Live 0xffffffffc052e000
raid0 24576 0 - Live 0xffffffffc02e2000
multipath 20480 0 - Live 0xffffffffc02b9000
linear 20480 0 - Live 0xffffffffc028f000
md_mod 192512 6 raid10,raid456,raid1,raid0,multipath,linear, Live 
0xffffffffc04fe000

--- volume detail:
/dev/vda:
   MBR Magic : aa55
Partition[0] :     39940096 sectors at         2048 (type 83)
Partition[1] :      1996802 sectors at     39944190 (type 05)
--
/dev/vda1 is not recognised by mdadm.
/dev/vda2:
   MBR Magic : aa55
Partition[0] :      1996800 sectors at            2 (type 82)
--
/dev/vda5 is not recognised by mdadm.
/dev/vdb:
   MBR Magic : aa55
Partition[0] :     20971519 sectors at            1 (type ee)
--
/dev/vdb1:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x0
     Array UUID : 2ea7f497:85b26304:7c1f72bf:86855e42
           Name : debian12-netinst:0  (local to host debian12-netinst)
  Creation Time : Wed Jan 29 12:57:16 2025
     Raid Level : raid1
   Raid Devices : 2

 Avail Dev Size : 20948992 sectors (9.99 GiB 10.73 GB)
     Array Size : 10474496 KiB (9.99 GiB 10.73 GB)
    Data Offset : 18432 sectors
   Super Offset : 8 sectors
   Unused Space : before=18280 sectors, after=0 sectors
          State : clean
    Device UUID : 6e1fbf2e:8282f505:7f1b0bb6:4c983339

    Update Time : Wed Jan 29 12:59:33 2025
  Bad Block Log : 512 entries available at offset 136 sectors
       Checksum : c1714cee - correct
         Events : 19


   Device Role : Active device 0
   Array State : AA ('A' == active, '.' == missing, 'R' == replacing)
--

--- /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-6.1.0-30-amd64 
root=UUID=bdc1eeee-8e26-4a19-993f-03ec45058804 ro md-mod.start_dirty_degraded=1 
quiet

--- grub2:
        linux   /boot/vmlinuz-6.1.0-30-amd64 
root=UUID=bdc1eeee-8e26-4a19-993f-03ec45058804 ro md-mod.start_dirty_degraded=1 
quiet
                linux   /boot/vmlinuz-6.1.0-30-amd64 
root=UUID=bdc1eeee-8e26-4a19-993f-03ec45058804 ro md-mod.start_dirty_degraded=1 
quiet
                linux   /boot/vmlinuz-6.1.0-30-amd64 
root=UUID=bdc1eeee-8e26-4a19-993f-03ec45058804 ro single 
md-mod.start_dirty_degraded=1
                linux   /boot/vmlinuz-6.1.0-18-amd64 
root=UUID=bdc1eeee-8e26-4a19-993f-03ec45058804 ro md-mod.start_dirty_degraded=1 
quiet
                linux   /boot/vmlinuz-6.1.0-18-amd64 
root=UUID=bdc1eeee-8e26-4a19-993f-03ec45058804 ro single 
md-mod.start_dirty_degraded=1

--- udev:
ii  udev           252.33-1~deb12u1 amd64        /dev/ and hotplug management 
daemon
9d7dfcdc58fa54941f8d28f6094a7a5b  /lib/udev/rules.d/01-md-raid-creating.rules
d767cffc82663d79b515f66ee8557fb4  /lib/udev/rules.d/63-md-raid-arrays.rules
b733421b507e8c6c87963f4bfb572ca5  /lib/udev/rules.d/64-md-raid-assembly.rules
ba1d376ca9b7364576f950d06ba18207  
/lib/udev/rules.d/69-md-clustered-confirm-device.rules
134bbecc2a769a7c7d4ec930968ab162  /lib/udev/rules.d/99-systemd.rules

--- /dev:
brw-rw---- 1 root disk 9, 127 Jan 29 13:00 /dev/md127

/dev/disk/by-diskseq:
total 0
lrwxrwxrwx 1 root root  9 Jan 29 13:00 1 -> ../../vda
lrwxrwxrwx 1 root root 11 Jan 29 13:00 10 -> ../../loop4
lrwxrwxrwx 1 root root 11 Jan 29 13:00 11 -> ../../loop5
lrwxrwxrwx 1 root root 11 Jan 29 13:00 12 -> ../../loop6
lrwxrwxrwx 1 root root 11 Jan 29 13:00 13 -> ../../loop7
lrwxrwxrwx 1 root root  9 Jan 29 13:00 2 -> ../../vdb
lrwxrwxrwx 1 root root  9 Jan 29 13:00 5 -> ../../sr0
lrwxrwxrwx 1 root root 11 Jan 29 13:00 6 -> ../../loop0
lrwxrwxrwx 1 root root 11 Jan 29 13:00 7 -> ../../loop1
lrwxrwxrwx 1 root root 11 Jan 29 13:00 8 -> ../../loop2
lrwxrwxrwx 1 root root 11 Jan 29 13:00 9 -> ../../loop3

/dev/disk/by-id:
total 0
lrwxrwxrwx 1 root root 9 Jan 29 13:00 ata-QEMU_DVD-ROM_QM00001 -> ../../sr0

/dev/disk/by-partuuid:
total 0
lrwxrwxrwx 1 root root 10 Jan 29 13:00 7bc103d1-01 -> ../../vda1
lrwxrwxrwx 1 root root 10 Jan 29 13:00 7bc103d1-02 -> ../../vda2
lrwxrwxrwx 1 root root 10 Jan 29 13:00 7bc103d1-05 -> ../../vda5
lrwxrwxrwx 1 root root 10 Jan 29 13:00 9ba910cf-554f-9047-9eb3-257d90476dbe -> 
../../vdb1

/dev/disk/by-path:
total 0
lrwxrwxrwx 1 root root  9 Jan 29 13:00 pci-0000:00:1f.2-ata-1 -> ../../sr0
lrwxrwxrwx 1 root root  9 Jan 29 13:00 pci-0000:00:1f.2-ata-1.0 -> ../../sr0
lrwxrwxrwx 1 root root  9 Jan 29 13:00 pci-0000:04:00.0 -> ../../vda
lrwxrwxrwx 1 root root 10 Jan 29 13:00 pci-0000:04:00.0-part1 -> ../../vda1
lrwxrwxrwx 1 root root 10 Jan 29 13:00 pci-0000:04:00.0-part2 -> ../../vda2
lrwxrwxrwx 1 root root 10 Jan 29 13:00 pci-0000:04:00.0-part5 -> ../../vda5
lrwxrwxrwx 1 root root  9 Jan 29 13:00 pci-0000:08:00.0 -> ../../vdb
lrwxrwxrwx 1 root root 10 Jan 29 13:00 pci-0000:08:00.0-part1 -> ../../vdb1
lrwxrwxrwx 1 root root  9 Jan 29 13:00 virtio-pci-0000:04:00.0 -> ../../vda
lrwxrwxrwx 1 root root 10 Jan 29 13:00 virtio-pci-0000:04:00.0-part1 -> 
../../vda1
lrwxrwxrwx 1 root root 10 Jan 29 13:00 virtio-pci-0000:04:00.0-part2 -> 
../../vda2
lrwxrwxrwx 1 root root 10 Jan 29 13:00 virtio-pci-0000:04:00.0-part5 -> 
../../vda5
lrwxrwxrwx 1 root root  9 Jan 29 13:00 virtio-pci-0000:08:00.0 -> ../../vdb
lrwxrwxrwx 1 root root 10 Jan 29 13:00 virtio-pci-0000:08:00.0-part1 -> 
../../vdb1

/dev/disk/by-uuid:
total 0
lrwxrwxrwx 1 root root 10 Jan 29 13:00 bbbf6ad3-6147-42f6-a5e4-f54306c17658 -> 
../../vda5
lrwxrwxrwx 1 root root 10 Jan 29 13:00 bdc1eeee-8e26-4a19-993f-03ec45058804 -> 
../../vda1

Auto-generated on Wed, 29 Jan 2025 13:12:12 +0100 by mdadm bugscript

-- System Information:
Debian Release: 12.9
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-30-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages mdadm depends on:
ii  debconf [debconf-2.0]      1.5.82
ii  init-system-helpers        1.65.2
ii  libc6                      2.36-9+deb12u9
ii  libudev1                   252.33-1~deb12u1
ii  sysvinit-utils [lsb-base]  3.06-4
ii  udev                       252.33-1~deb12u1

Versions of packages mdadm recommends:
ii  exim4-daemon-light [mail-transport-agent]  4.96-15+deb12u6
ii  kmod                                       30+20221128-1

Versions of packages mdadm suggests:
pn  dracut-core  <none>

-- debconf information:
  mdadm/start_daemon: true
  mdadm/autoscan: true
  mdadm/autocheck: true
  mdadm/mail_to: root

Reply via email to