System reboot gets hung when IMSM raid array is undergoing resync

Solution Verified - Updated -

Issue

  • System reboot gets hung when Intel IMSM or VROC raid array is undergoing resync:

    Console logs at the time of shutdown hang:

    md: md126: resync interrupted.
    INFO: task reboot:6085 blocked for more than 120 seconds.
          Not tainted 4.18.0-372.9.1.el8.x86_64 #1
    "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
    task:reboot          state:D stack:    0 pid: 6085 ppid:     1 flags:0x00004080
    Call Trace:
     __schedule+0x2d1/0x830
     schedule+0x35/0xa0
     raid5_quiesce+0x12b/0x2d0 [raid456]
     ? finish_wait+0x80/0x80
     __md_stop_writes+0x68/0x110
     md_notify_reboot+0x51/0xf0
     notifier_call_chain+0x47/0x70
     blocking_notifier_call_chain+0x3e/0x60
     kernel_restart_prepare+0x19/0x40
     kernel_restart+0xe/0x30
     __do_sys_reboot+0x1d2/0x210
     ? __fput+0xd0/0x250
     ? syscall_trace_enter+0x1fb/0x2c0
     ? __audit_syscall_exit+0x249/0x2a0
     do_syscall_64+0x5b/0x1a0
     entry_SYSCALL_64_after_hwframe+0x65/0xca
    RIP: 0033:0x7f213597a4b7
    Code: Unable to access opcode bytes at RIP 0x7f213597a48d.
    RSP: 002b:00007ffc233307d8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a9
    RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f213597a4b7
    RDX: 0000000001234567 RSI: 0000000028121969 RDI: 00000000fee1dead
    RBP: 00007ffc23330820 R08: 0000000000000002 R09: 0000000000000000
    R10: 000000000000004b R11: 0000000000000246 R12: 0000000000000001
    R13: 00000000fffffffe R14: 0000000000000006 R15: 0000000000000000
    

Environment

  • Red Hat Enterprise Linux 8.0 to 8.6
    • systemd version older than 239-58.el8_6.7
  • Red Hat Enterprise Linux 9.0
    • systemd version older than 250-6.el9_0.1
  • mdraid array configured using Intel IMSM or VROC RAID

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content