Bug#1041697: linux-image-6.1.0-10-amd64: Hang at shutdown with mdraid
Package: src:linux
Version: 6.1.38-1
Severity: important
Dear Maintainer,
after upgrading a server to bookworm, I experience hangs on shutdown
while the console is spammed with "md: mdXX stopped." messages.
As this is a remote server, it's tricky for me to copy the entire
shutdown log, but I was able to catch some of the repeated messages on a
screen recording:
[...]
md: md30 stopped.
md: md30 stopped.
md: md30 stopped.
md: md30 stopped.
md: md30 stopped.
[...]
md: md30 stopped.
systemd-shutdown[1]: Not all MD devices stopped, 1 left.
systemd-shutdown[1]: Stopping MD devices.
systemd-shutdown[1]: Stopping MD /dev/md30 (9:30).
md: md30 stopped.
systemd-shutdown[1]: Not all MD devices stopped, 1 left.
systemd-shutdown[1]: Stopping MD devices.
systemd-shutdown[1]: Stopping MD /dev/md30 (9:30).
md: md30 stopped.
systemd-shutdown[1]: Not all MD devices stopped, 1 left.
systemd-shutdown[1]: Stopping MD devices.
systemd-shutdown[1]: Stopping MD /dev/md30 (9:30).
md: md30 stopped.
[...]
I believe the issue to be very similar to #1023876 but AIUI the BTS
won't let me add messages to an archived bug.
I have tested both 6.1.37 (bookworm) and 6.1.38
(bookworm-proposed-updates)
which both appear to be affected. I haven't tested older versions so I
am unsure if the issue reappeared or was never fully fixed.
This is my first time reporting a bug to the BTS so please excuse any
newbie mistakes (but feel free to point them out so I can do it properly
next time).
Thanks and best regards,
Steve
-- additional info: kernel log
reportbug was unable to read the kernel log so I've pasted dmesg output
of the running system here: https://paste.debian.net/hidden/359bf40e/
Sadly I don't know how to capture dmesg during shutdown on this server.
-- additional info: block device information, mdraid and mdadm
information
# set -x ; lsblk ; cat /proc/mdstat ; cat /etc/mdadm/mdadm.conf ; mdadm
--examine --scan
I've pasted the output here: https://paste.debian.net/hidden/1393afd2/
-- Package-specific info:
** Version:
Linux version 6.1.0-10-amd64 (debian-kernel@lists.debian.org) (gcc-12
(Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP
PREEMPT_DYNAMIC Debian 6.1.38-1 (2023-07-14)
** Command line:
BOOT_IMAGE=/vmlinuz-6.1.0-10-amd64 root=UUID=[id redacted but confirmed
identical to the one that appears in `blkid /dev/md1`] ro net.ifnames=0
biosdevname=0 nomodeset consoleblank=0
** Not tainted
** Kernel log:
Unable to read kernel log; any relevant messages should be attached
** Model information
sys_vendor: QEMU
product_name: Standard PC (i440FX + PIIX, 1996)
product_version: pc-i440fx-3.1
chassis_vendor: QEMU
chassis_version: pc-i440fx-3.1
bios_vendor: SeaBIOS
bios_version: 1.12.0-1
** Loaded modules:
nf_tables
nfnetlink
cpufreq_powersave
cpufreq_conservative
cpufreq_userspace
cpufreq_ondemand
bridge
stp
llc
intel_rapl_msr
intel_rapl_common
kvm_intel
binfmt_misc
kvm
ppdev
irqbypass
rapl
drm_vram_helper
joydev
evdev
sg
drm_ttm_helper
serio_raw
parport_pc
ttm
parport
drm_kms_helper
button
drm
dm_mod
fuse
loop
efi_pstore
configfs
qemu_fw_cfg
ip_tables
x_tables
autofs4
ext4
crc16
mbcache
jbd2
btrfs
blake2b_generic
zstd_compress
raid10
raid456
async_raid6_recov
async_memcpy
async_pq
async_xor
async_tx
xor
raid6_pq
libcrc32c
crc32c_generic
multipath
linear
raid1
raid0
md_mod
hid_generic
usbhid
hid
crc32_pclmul
crc32c_intel
sd_mod
t10_pi
crc64_rocksoft_generic
ghash_clmulni_intel
crc64_rocksoft
crc_t10dif
crct10dif_generic
crct10dif_pclmul
sha512_ssse3
crc64
crct10dif_common
ata_generic
sha512_generic
ahci
libahci
ata_piix
libata
aesni_intel
uhci_hcd
ehci_hcd
crypto_simd
e1000e
scsi_mod
cryptd
usbcore
psmouse
ptp
pps_core
usb_common
i2c_piix4
scsi_common
floppy
** PCI devices:
00:00.0 Host bridge [0600]: Intel Corporation 440FX - 82441FX PMC
[Natoma] [8086:1237] (rev 02)
Subsystem: Red Hat, Inc. Qemu virtual machine [1af4:1100]
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort-
<TAbort- <MAbort- >SERR- <PERR- INTx-
00:01.0 ISA bridge [0601]: Intel Corporation 82371SB PIIX3 ISA
[Natoma/Triton II] [8086:7000]
Subsystem: Red Hat, Inc. Qemu virtual machine [1af4:1100]
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR- INTx-
00:01.1 IDE interface [0101]: Intel Corporation 82371SB PIIX3 IDE
[Natoma/Triton II] [8086:7010] (prog-if 80 [ISA Compatibility mode-only
controller, supports bus mastering])
Subsystem: Red Hat, Inc. Qemu virtual machine [1af4:1100]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Region 0: I/O ports at 01f0 [size=8]
Region 1: I/O ports at 03f4
Region 2: I/O ports at 0170 [size=8]
Region 3: I/O ports at 0374
Region 4: I/O ports at c060 [size=16]
Kernel driver in use: ata_piix
Kernel modules: ata_piix, ata_generic
00:01.2 USB controller [0c03]: Intel Corporation 82371SB PIIX3 USB
[Natoma/Triton II] [8086:7020] (rev 01) (prog-if 00 [UHCI])
Subsystem: Red Hat, Inc. QEMU Virtual Machine [1af4:1100]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort-
<TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin D routed to IRQ 11
Region 4: I/O ports at c000 [size=32]
Kernel driver in use: uhci_hcd
Kernel modules: uhci_hcd
00:01.3 Bridge [0680]: Intel Corporation 82371AB/EB/MB PIIX4 ACPI
[8086:7113] (rev 03)
Subsystem: Red Hat, Inc. Qemu virtual machine [1af4:1100]
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR- INTx-
Interrupt: pin A routed to IRQ 9
Kernel driver in use: piix4_smbus
Kernel modules: i2c_piix4
00:02.0 VGA compatible controller [0300]: Device [1234:1111] (rev 02)
(prog-if 00 [VGA controller])
Subsystem: Red Hat, Inc. Device [1af4:1100]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort-
<TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Region 0: Memory at fd000000 (32-bit, prefetchable) [size=16M]
Region 2: Memory at febd4000 (32-bit, non-prefetchable)
[size=4K]
Expansion ROM at 000c0000 [disabled] [size=128K]
Kernel modules: bochs
00:03.0 SATA controller [0106]: Intel Corporation 82801IR/IO/IH
(ICH9R/DO/DH) 6 port SATA Controller [AHCI mode] [8086:2922] (rev 02)
(prog-if 01 [AHCI 1.0])
Subsystem: Red Hat, Inc. QEMU Virtual Machine [1af4:1100]
Physical Slot: 3
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR+ FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort-
<TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 27
Region 4: I/O ports at c020 [size=32]
Region 5: Memory at febd5000 (32-bit, non-prefetchable)
[size=4K]
Capabilities: <access denied>
Kernel driver in use: ahci
Kernel modules: ahci
00:04.0 Ethernet controller [0200]: Intel Corporation 82574L Gigabit
Network Connection [8086:10d3]
Subsystem: Intel Corporation 82574L Gigabit Network Connection
[8086:0000]
Physical Slot: 4
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR+ FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort-
<TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 11
Region 0: Memory at feb80000 (32-bit, non-prefetchable)
[size=128K]
Region 1: Memory at feba0000 (32-bit, non-prefetchable)
[size=128K]
Region 2: I/O ports at c040 [size=32]
Region 3: Memory at febd0000 (32-bit, non-prefetchable)
[size=16K]
Expansion ROM at feb40000 [disabled] [size=256K]
Capabilities: <access denied>
Kernel driver in use: e1000e
Kernel modules: e1000e
** USB devices:
Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd QEMU Tablet
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
-- System Information:
Debian Release: 12.1
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500,
'proposed-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.1.0-10-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages linux-image-6.1.0-10-amd64 depends on:
ii initramfs-tools [linux-initramfs-tool] 0.142
ii kmod 30+20221128-1
ii linux-base 4.9
Versions of packages linux-image-6.1.0-10-amd64 recommends:
ii apparmor 3.0.8-3
ii firmware-linux-free 20200122-1
Versions of packages linux-image-6.1.0-10-amd64 suggests:
pn debian-kernel-handbook <none>
ii grub-pc 2.06-13
pn linux-doc-6.1 <none>
Versions of packages linux-image-6.1.0-10-amd64 is related to:
pn firmware-amd-graphics <none>
pn firmware-atheros <none>
pn firmware-bnx2 <none>
ii firmware-bnx2x 20230210-5
pn firmware-brcm80211 <none>
pn firmware-cavium <none>
pn firmware-intel-sound <none>
pn firmware-intelwimax <none>
pn firmware-ipw2x00 <none>
pn firmware-ivtv <none>
pn firmware-iwlwifi <none>
pn firmware-libertas <none>
pn firmware-linux-nonfree <none>
pn firmware-misc-nonfree <none>
pn firmware-myricom <none>
pn firmware-netxen <none>
pn firmware-qlogic <none>
ii firmware-realtek 20230210-5
pn firmware-samsung <none>
pn firmware-siano <none>
pn firmware-ti-connectivity <none>
pn xen-hypervisor <none>
-- no debconf information
Thank you for using reportbug
Reply to: