Re: bcache shutdown sequence
From: Michael Lyle <hidden>
Date: 2017-12-18 18:23:23
Hi Larkin-- On Mon, Dec 18, 2017 at 9:37 AM, Larkin Lowrey [off-list ref] wrote:
I'm noticing that, with Fedora, dracut is trying to stop the mdraid devices before bcache stops. I haven't seen any data loss or corruption so this doesn't seem to be a problem but it would be nice to have bcache stop first so I don't get so alarmed by these messages.
Well, plus, it'd be nice to properly stop md, else there's a chance you end up scrubbing volumes when you don't need to, etc.
How is the shutdown sequence for bcache controlled? Where can I find the relevant code?
All of that, unfortunately, is details maintained by your distribution. And this is a tricky problem-- note some people build md-on-bcache instead of bcache-on-md (I prefer the latter), and the shutdown order would be correct for the former. Mike