Systemd-shutdown run sometimes in long md0 shutdown loop


i have installed RL9.1 on a raid 1 server. Sometimes the sysdtemd-shutdown runs i a long shutdown loop.

For example:

This takes sometimes more than 10 Minutes on ssd drives. (Sometimes it works on demand)

~]# cat /proc/mdstat 
Personalities : [raid1] 
md1 : active raid1 sda3[0] sdb3[1]
      1046528 blocks super 1.2 [2/2] [UU]
md0 : active raid1 sda2[0] sdb2[1]
      524224 blocks [2/2] [UU]
md2 : active raid1 sda4[0] sdb4[1]
      115576832 blocks super 1.2 [2/2] [UU]
      bitmap: 1/1 pages [4KB], 65536KB chunk

unused devices: <none>

~]# mount | grep '/dev/md'
/dev/md2 on / type ext4 (rw,relatime)
/dev/md0 on /boot type ext3 (rw,relatime)

~]# cat /proc/cmdline 
BOOT_IMAGE=(mduuid/f4671b22d70f2df4206a8bbae0af42f6)/vmlinuz-5.14.0-162.6.1.el9_1.0.1.x86_64 root=UUID=0ca41f33-22a2-4ff5-b2ad-d4403de0fcdf ro rootdelay=10

Someone had a similar issue: ROCKY 9.1 : system with md devices never shuts down