* Re: Bug#715019: linux-image-3.10-rc7-amd64: Bcache (with cache on LVM?) stops system from shutting down [not found] ` <CAL3dRBXX8Ex3iNE1v8N4pswqwh08enGPih0sP_ubpqUmbctdHA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2013-07-10 22:42 ` Ben Hutchings [not found] ` <1373496148.24446.21.camel-nDn/Rdv9kqW9Jme8/bJn5UCKIB8iOfG2tUK59QYPAWc@public.gmane.org> 0 siblings, 1 reply; 2+ messages in thread From: Ben Hutchings @ 2013-07-10 22:42 UTC (permalink / raw) To: Jarno Elonen, linux-bcache-u79uwXL29TY76Z2rM5mHXA Cc: 715019-61a8vm9lEZVf4u+23C9RwQ, lvm2-R+A61+qa7K2F9N/2sQ04j0B+6BGkLq7r [-- Attachment #1: Type: text/plain, Size: 1394 bytes --] On Mon, 2013-07-08 at 19:56 +0300, Jarno Elonen wrote: > Ok, I tried to take a photo but apparently the camera was set for very > low resolution. :/ Anyway, a few pictures attached, and here's also a > manual transcript of a few lines: [...] > [242866.xxxxxx] ata5.00: exception Emask 0x0 SAct 0x0 SError 0x0 > action 0x6 frozen > [242866.xxxxxx] ata5.00: failed command: FLUSH CACHE EXT > [242866.xxxxxx] ata8.00: exception Emask 0x0 SAct 0x0 SError 0x0 > action 0x6 frozen > [242866.xxxxxx] ata8.00: failed command: FLUSH CACHE EXT > [242866.xxxxxx] ata8.00: cmd ea/00:00:00:00:00/00:00:00:00:00/a0 tag 0 > [242866.xxxxxx] res 40/00:ff:00:00:00/00:00:00:00:00/00 Emask > 0x4 (timeout) > [242866.xxxxxx] ata8.00: status { DRDY } > [242867.xxxxxx] ata5.00: cmd ea/00:00:00:00:00/00:00:00:00:00/a0 tag 0 > ... > [242877.xxxxxx] ata3: COMRESET failed (errno=-16) > [242877.xxxxxx] ata5: COMRESET failed (errno=-16) > ... > > These kinds of splurs com up once in a minute or so. This suggests to me that LVM is *not* part of the problem, but instead the disks are being shut down before bcache has been quiesced. bcache developers - is this supposed to just work, or does the init system need to do (or not do) something special for bcache devices? Ben. -- Ben Hutchings It is easier to write an incorrect program than to understand a correct one. [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 828 bytes --] ^ permalink raw reply [flat|nested] 2+ messages in thread
[parent not found: <1373496148.24446.21.camel-nDn/Rdv9kqW9Jme8/bJn5UCKIB8iOfG2tUK59QYPAWc@public.gmane.org>]
* Re: Bug#715019: linux-image-3.10-rc7-amd64: Bcache (with cache on LVM?) stops system from shutting down [not found] ` <1373496148.24446.21.camel-nDn/Rdv9kqW9Jme8/bJn5UCKIB8iOfG2tUK59QYPAWc@public.gmane.org> @ 2013-07-10 23:00 ` Kent Overstreet 0 siblings, 0 replies; 2+ messages in thread From: Kent Overstreet @ 2013-07-10 23:00 UTC (permalink / raw) To: Ben Hutchings Cc: Jarno Elonen, linux-bcache-u79uwXL29TY76Z2rM5mHXA, 715019-61a8vm9lEZVf4u+23C9RwQ, lvm2-R+A61+qa7K2F9N/2sQ04j0B+6BGkLq7r On Wed, Jul 10, 2013 at 11:42:28PM +0100, Ben Hutchings wrote: > On Mon, 2013-07-08 at 19:56 +0300, Jarno Elonen wrote: > > Ok, I tried to take a photo but apparently the camera was set for very > > low resolution. :/ Anyway, a few pictures attached, and here's also a > > manual transcript of a few lines: > [...] > > [242866.xxxxxx] ata5.00: exception Emask 0x0 SAct 0x0 SError 0x0 > > action 0x6 frozen > > [242866.xxxxxx] ata5.00: failed command: FLUSH CACHE EXT > > [242866.xxxxxx] ata8.00: exception Emask 0x0 SAct 0x0 SError 0x0 > > action 0x6 frozen > > [242866.xxxxxx] ata8.00: failed command: FLUSH CACHE EXT > > [242866.xxxxxx] ata8.00: cmd ea/00:00:00:00:00/00:00:00:00:00/a0 tag 0 > > [242866.xxxxxx] res 40/00:ff:00:00:00/00:00:00:00:00/00 Emask > > 0x4 (timeout) > > [242866.xxxxxx] ata8.00: status { DRDY } > > [242867.xxxxxx] ata5.00: cmd ea/00:00:00:00:00/00:00:00:00:00/a0 tag 0 > > ... > > [242877.xxxxxx] ata3: COMRESET failed (errno=-16) > > [242877.xxxxxx] ata5: COMRESET failed (errno=-16) > > ... > > > > These kinds of splurs com up once in a minute or so. > > This suggests to me that LVM is *not* part of the problem, but instead > the disks are being shut down before bcache has been quiesced. > > bcache developers - is this supposed to just work, or does the init > system need to do (or not do) something special for bcache devices? This is supposed to work - bcache has a reboot notifier, which shuts stuff down. I _suspect_ what might be going on (I've seen the same issue myself with bcache + md) is stacked block devices breaks it - which makes sense; the block devices have to be torn down in the right order (because they depend on each other) but the reboot notifier stuff just runs all the notifiers one after the other, synchronously. And I can't just put the asynchronous magic in the bcache code because, well, returning from our notifier is how the core stuff knows that everything should be done shutting down that can be. I haven't actually tried to look and check that this is what's going on, but if it is the right solution is for the reboot notifier to run all the callbacks asynchronously. ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-07-10 23:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20130705135658.9757.33407.reportbug@domo-b>
[not found] ` <20130705184222.GX4752@decadent.org.uk>
[not found] ` <CAL3dRBXX8Ex3iNE1v8N4pswqwh08enGPih0sP_ubpqUmbctdHA@mail.gmail.com>
[not found] ` <CAL3dRBXX8Ex3iNE1v8N4pswqwh08enGPih0sP_ubpqUmbctdHA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-07-10 22:42 ` Bug#715019: linux-image-3.10-rc7-amd64: Bcache (with cache on LVM?) stops system from shutting down Ben Hutchings
[not found] ` <1373496148.24446.21.camel-nDn/Rdv9kqW9Jme8/bJn5UCKIB8iOfG2tUK59QYPAWc@public.gmane.org>
2013-07-10 23:00 ` Kent Overstreet
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox