linux-bcache.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Can't mount filesystem after clean shutdown with discard enabled
@ 2021-03-04 19:25 Sidney San Martín
  0 siblings, 0 replies; only message in thread
From: Sidney San Martín @ 2021-03-04 19:25 UTC (permalink / raw)
  To: linux-bcache

I enabled discard on the bcache backing a large filesystem with writeback caching a few weeks ago. Yesterday I restarted the system cleanly and it failed to come back. I see the following in the log:

  Mar 04 19:04:18 archiso kernel: bcache: prio_read() bad csum reading priorities
  Mar 04 19:04:18 archiso kernel: bcache: bch_cache_set_error() error on 6432e656-f28e-49f8-943d-6307d42d37e9: IO error reading priorities, disabling caching

The backing devices are all marked dirty when I check with bcache-super-show. I see threads going back years mentioning this problem:

  https://www.spinics.net/lists/linux-bcache/msg02712.html
  https://www.spinics.net/lists/linux-bcache/msg02954.html
  https://www.spinics.net/lists/linux-bcache/msg04668.html
  https://www.spinics.net/lists/linux-bcache/msg05279.html

There is also a bug report: https://bugzilla.kernel.org/show_bug.cgi?id=197377

The cache device backs a large BTRFS volume made up of many spinning disks and, while I have a backup, it’s offsite and will take a huge amount of time to restore. Since I’m running BTRFS with some redundancy, I would love to do whatever I can to get things back to as good a state as possible and try a scrub.

I tried building bcache myself and skipping loading priorities, since comments suggest they’re nonessential, and the next thing I hit is:

  Mar 04 15:32:56 archiso kernel: bcache: bch_cache_set_error() error on 6432e656-f28e-49f8-943d-6307d42d37e9: unsupported bset version at bucket 108857, block 0, 79054670 keys, disabling caching

Note that I’m not familiar with bcache internals and this is actually my first time building a kernel module to debug something.

What can I do here? And should discard even be available as an option if it fails this badly?

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-03-04 19:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-04 19:25 Can't mount filesystem after clean shutdown with discard enabled Sidney San Martín

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).