On 3/25/21 4:21 AM, Nikolaus Rath wrote: > Hello, > > My (writeback enabled) bcache cache device had a temporary failure, but seems to have fully recovered (it may have been overheating or a loose cable). > > From the last kernel messages, it seems that bcache tried to flush the dirty data, but failed, and then stopped the cache device. > > After a reboot, the bcacheX device indeed no longer has an associated cache set.. > > I think in my case the cache device is in perfect shape again and still has all the data, so I would really like bcache to attach it again so that the dirty cache data is not lost. > > Is there a way to do that? > > (Yes, I will still replace the device afterwards) > > (I am pretty sure that just re-attaching the cacheset will make bcache forget that there was a previous association and will wipe the corresponding metadata). > Hi Nikolaus, Do you have the kernel log? It depends on whether the cache set is clean or not. For a clear cache set, the cache set is detached, and next reattach will invalidate all existing cached data. If the cache set is dirty and all existing data is wiped, that will be fishy.... Thanks. Coly Li