* /dev/bcache* missing after reboot
@ 2013-12-02 22:36 Thierry De Leeuw
2013-12-05 15:37 ` Matthias Ferdinand
0 siblings, 1 reply; 2+ messages in thread
From: Thierry De Leeuw @ 2013-12-02 22:36 UTC (permalink / raw)
To: linux-bcache
Hi,
Running Linux 3.12.1. I have disk /dev/sda2 with LVM that has, amongst
other, lvHome as a bcache device, and the cache resides on /dev/sdb1
My PC hung and I had to do a forced shutdown.
Now the /dev/bcache0 (and so on) do not appear anymore.
The LVM is available (I can see /dev/mapper/vgData_lvHome), when I do a
bcache-super-show /dev/mapper/vgData_lvHome I get
sb.magic ok
ssb.first_sector 8 [match]
sb.csum xxxxx [match]
ssb.version 1 [backing device]
dev.label (empty)
dev.uuid xxxxx
dev.sector_per_block 8
dev.sector_per_bucket 1024
dev.data.first_sector 16
dev.data.cache_mode 1 [writeback]
dev.data.cache_state 2 [dirty]
cset.uuid yyyyyyy (note that it matches the entry in /sys/fs/bcache)
similar stuff for the other logical volumes so looks like the header is ok.
dmesg reports only the following entries about bcache
bcache: bch_journal_replay() journal replay done, 46 keys in 17 entries seq
973143
bcache: register_cache() registered cache sdb1
note that the same replay message is reported at each reboot.
/dev/block has no bcache* entries
looking at /sys/fs/bcache/yyyyyy
what seems suspicious to me is that the cache_available_percent is at 100
and dirty data is at 0 is it because it is not "connnected" to the backing
devices?
What can I do now to recover from this situation/help providing you
information to determine the problem and hav my disk back?
Thanks!
Thierry
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: /dev/bcache* missing after reboot
2013-12-02 22:36 /dev/bcache* missing after reboot Thierry De Leeuw
@ 2013-12-05 15:37 ` Matthias Ferdinand
0 siblings, 0 replies; 2+ messages in thread
From: Matthias Ferdinand @ 2013-12-05 15:37 UTC (permalink / raw)
To: Thierry De Leeuw; +Cc: linux-bcache
[already sent 2 days ago, but did not appear on the list]
On Mon, Dec 02, 2013 at 11:36:47PM +0100, Thierry De Leeuw wrote:
> Hi,
>
> Running Linux 3.12.1. I have disk /dev/sda2 with LVM that has, amongst
> other, lvHome as a bcache device, and the cache resides on /dev/sdb1
>
> My PC hung and I had to do a forced shutdown.
>
> Now the /dev/bcache0 (and so on) do not appear anymore.
Perhaps you need to re-register / re-attach the backing device to the
caching device, something like
echo /dev/dm-xx > /sys/fs/bcache/register
echo yyyyyyy > /sys/devices/virtual/block/dm-xx/bcache/attach
If that does not help, you can try to force starting the bcache backing
device without the caching device (might give you serious fs damage with
writeback):
echo "1" > /sys/devices/virtual/block/dm-xx/bcache/running
But since you are using LVM, you might want to create a snapshot of the
backing device LV before doing this, just in case.
Regards
Matthias
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-12-05 15:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-02 22:36 /dev/bcache* missing after reboot Thierry De Leeuw
2013-12-05 15:37 ` Matthias Ferdinand
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).