Re[2]: bcache error -> btrfs unmountable

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

 



Hello Jean-Denis,

Friday, November 13, 2020, 11:54:50 PM, you wrote:

> Le 13/11/2020 a 06:19, Pavel Goran a ecrit :
>> First, you may want to check if there is any dirty data in the cache, by
>> executing:
>> cat /sys/block/bcache0/bcache/state
>> cat /sys/block/bcache1/bcache/state
>> 
>> If these return "clean", then you should be good to detach the cache.

> I get "no cache", not sure why:
> [jdg@tiare ~]$ cat /sys/block/bcache{0,1}/bcache/state
> no cache
> no cache

This means that bcache already detached the faulty cache device. The data
that was cached but not written to the backing devices is now lost. (I don't
expect it to be recoverable, but don't take my word for it.) The logs from
your initial message say that the cache was dirty, so there *was* some
non-written data in the cache.

You can now try to check the BTRFS devices, preferably in read-only mode.
(It's important in case you would try to recoved the lost cached data.)
Since you mentioned you had a backup, probably there isn't much sense in
trying to recover the data, so you could just try to mount the BTRFS
filesystem instead. Maybe compare the filesystem contents with what was
restored from the backup, if you are curious (and if the filesystem can be
mounted). Maybe do btrfs scrub, too.

> Here are the kernel logs concerning bcache:
> [jdg@tiare ~]$ dmesg | grep bcache
> [    9.217610] bcache: bch_journal_replay() journal replay done, 0 keys 
> in 1 entries, seq 254637130
> [    9.219671] bcache: register_cache() registered cache device nvme0n1p4
> [    9.223512] bcache: register_bdev() registered backing device sdc
> [    9.226015] bcache: register_bdev() registered backing device sdb
> [    9.312796] BTRFS: device fsid c5b8386b-b81d-4473-9340-7b8a74fc3a3c 
> devid 2 transid 29647859 /dev/bcache1 scanned by systemd-udevd (314)
> [    9.314219] BTRFS: device fsid c5b8386b-b81d-4473-9340-7b8a74fc3a3c 
> devid 1 transid 29647859 /dev/bcache0 scanned by systemd-udevd (290)

> That was after rebooting, and no trying to mount the broken Btrfs RAID1.

> So, should I detach the cache?


> Thanks for your assistance Pavel,
> Best regards,



Pavel Goran
  




[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