Created attachment 1237793 [details]
patches blkdeactivate to try umounting raid devices too
Description of problem: /usr/sbin/blkdeactivate is called during shutdown/reboot to umount and deactivate any lvm or dmraid block devices. With the update in RHEL/CentOS 7.3, it now also deactivates software raid devices. However, the unmount function was not updated to unmount software raid devices prior to deactivating them.
This is causing an issue with the system not shutting down or rebooting when it is set up with a software RAID1 for /boot and the rest of the system with ZFS (using the zfs on linux repo).
I've included a patch to fix it.
Version-Release number of selected component (if applicable):
Issue occurs every shutdown/reboot when using ZFS root.
I'd suspect this issue could also lead to corruption of filesystems on software RAID devices since it deactivates the underlying md device without unmounting it first.
Steps to Reproduce:
1. Install system with ZFS root and software raid 1 for /boot
2. Reboot or shutdown system
system loops in shutdown with kernel errors regarding ZFS being out of memory
I've diagnosed and solved the problem. Patch is attached.
Thanks for the diagnosis and a patch! However, I've changed the patch a bit to check the device's kernel name for "md" instead of checking "raidN" type because that can be also used for devices other than MD itself.