IMSM fakeraid handled by mdadm: unclean mounted volumes on shutdown/reboot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mdadm (Ubuntu) |
Fix Committed
|
Critical
|
Dimitri John Ledkov | ||
Xenial |
Fix Committed
|
Critical
|
Dimitri John Ledkov | ||
Yakkety |
Won't Fix
|
Critical
|
Dimitri John Ledkov | ||
Zesty |
Won't Fix
|
Critical
|
Dimitri John Ledkov |
Bug Description
Opening this report for Xenial and later as this problem does surface again due to moving to systemd.
Background:
mdadm is used to create md raid volumes based on Intel Matrix Storage Manager fakeraid metadata. The setup usually consists of a container set that contains one or more raid volumes. Which is the reason that those fakeraid volume are more affected by timing issues on shutdown/reboot.
In my specific setup I am using one of the IMSM raid volumes as a LVM PV and one LV of that is mounted as /home. The problem is that unmounting /home on shutdown/reboot will update the filesystem superblock which causes the raid state to become dirty for a small period of time. For that reason with sysvinit scripts there is a mdadm-waitidle script which *must* be run after the umountroot (or for /home at least after umountfs) script has run.
With Xenial both umountroot and umountfs are softlinks to /dev/null in /lib/systemd/
Practically I see that if /home is mounted on shutdown/reboot, the raid set will go into a full resync the next time I boot (additional pain but different problem: the resync appears to be much more aggressive than in the past, delaying boot a lot and rendering the system barely usable until it finishes). If I manually unmount /home before the reboot, the raid set is good.
Changed in mdadm (Ubuntu): | |
importance: | Undecided → Critical |
Changed in mdadm (Ubuntu Zesty): | |
status: | Fix Committed → Won't Fix |
annoying.
/lib/systemd/ system- shutdown/ mdadm.shutdown should be syncing everything up, but of course that's only in unstable / yakkety.
I have spare drives finally again, so I will setup ISMS on my xenial desktop and play around with it. Hopefully package from yakkety is "good enough" for SRU into xenial.