Re: bcache failure hangs something in kernel

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

 



Hi

It looks like probably the superblock of md0p2 and other data structures
were corrupted during the lvm commands, and in turn this is triggering
bugs with bcache (bcache should detect the situation and abort
everything, but instead is left with the bucket_lock held and freezes).
This immediately rises questions about reliability and safety of lvm and bcache. I thought that lvm is old, mature and safe technology, but here it is stuck, then manualy interrupted and result is catastrophic data corruption. lvm sits on top of that sandwich of block devices, on layer of /dev/bcache* devices. Another question here is how crazy lvm could damage data outside of /dev/bcache* devices? This means that some necessary io buffer range checks are missing inside bcache.

One thing you could do possibly do is blacklist bcache in your
/etc/modules, and then attach all the devices one by one, (not including
md0p2), to get at the data on all the other volumes.

Also, 54 of the backing devices are clean-- they have no dirty data in
the cache-- so they can be mounted directly if you want.
Unfortunately this md0p* block devices are not separate from each other - there is one 2Tb volume on top of them inside lvm. Loss of one 100Gib part and dirty data in another 100Gib part can kill entire file system with very high probability. Yesterday I have read that bcache failures are nasty, because file system roots data often resides on cache and is dirty on backing device. Is there any tool like fsck exist, that can check and may be try to recover data from caching and backing devices? Or developers can get this corrupted images to experiment for bugfixing?
--
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