Re: bcache crashes at boot time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 5 Jun 2017, Igor Pavlenko wrote:

> Hi
> 
> Bcache crashes at boot time making root fs unavailable. Same error
> occurs when I try to add caching and backing devices manually through
> /sys/fs/bcache/register. I reproduced the error on ubuntu 17.04
> (kernel 4.10.0) and fedora (4.4.67).
> 
> The cache was in writeback mode.
> 
> Is it possible to recover my data?
> 
> dmesg output:
> 
> [   45.941155] bcache: register_bdev() registered backing device sda3
> [   46.138238] bcache: error on 471776aa-1b34-4eff-ba7d-509a9554b43d:
> inconsistent ptrs: mark = 3, level = 0, disabling caching

^^^

This is the reason, something was inconsistent enough that it couldn't 
continue.  

Disclaimer: No promises here about data integrity, so backup the full 
block device images first. This could cause more issues, but it might let 
the device come up far enough to access your data:

Near bcache/super.c:1315 You could try commenting out 
`bch_cache_set_unregister(c);` at the bottom of `bch_cache_set_error()`.

This won't fix the problem, but it would allow it to continue past the 
error---or it might just error again somewhere else.

-Eric


> [   46.139868] CPU: 0 PID: 1495 Comm: bcache-register Tainted: G     U
> [   46.154267]  [<ffffffffc090ba34>]
> __bch_btree_mark_key.part.23+0x244/0x270 [bcache]
> [   46.156051]  [<ffffffffc090e3df>] bch_initial_mark_key+0xdf/0xf0 [bcache]
> [   46.157744]  [<ffffffffc090e44c>] bch_btree_check_recurse+0x5c/0x230 [bcache]
> [   46.159432]  [<ffffffffc090db2a>] ? bch_btree_node_get+0xba/0x280 [bcache]
> [   46.160994]  [<ffffffffc090e51f>]
> bch_btree_check_recurse+0x12f/0x230 [bcache]
> [   46.162428]  [<ffffffffc0913738>] ? __bch_submit_bbio+0x58/0x60 [bcache]
> [   46.163894]  [<ffffffffc090e800>] bch_btree_check+0x180/0x1d0 [bcache]
> [   46.166862]  [<ffffffffc091d5d5>] run_cache_set+0x3b5/0x8e0 [bcache]
> [   46.168399]  [<ffffffffc091ee47>] register_bcache+0xe07/0x11b0 [bcache]
> [   47.182133] bcache: bch_journal_replay() journal replay done,
> 237858 keys in 207 entries, seq 3687554
> [   47.184437] bcache: bch_cached_dev_attach() Can't attach sda3: shutting down
> [   47.186168] bcache: register_cache() registered cache device sdb1
> [   47.187538] bcache: cache_set_free() Cache set
> 471776aa-1b34-4eff-ba7d-509a9554b43d unregistered
> 
> 
> -- 
> Igor Pavlenko
> ipavlenko.mail@xxxxxxxxx
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bcache" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-bcache" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux ARM Kernel]     [Linux Filesystem Development]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux