<div dir="ltr"><div><div><div><div>Hello,<br></div>I've been testing dm-cache for use with static web content.<br></div>It appears that, when using big cache ~3TB(+20TB origin dev) dm-cache device corrupts the filesystem after block eviction starts to happen.<br>
</div>If I set smaller cache size - single 480GB ssd(again with 20TB origin dev), the dm-cache dev works just fine.<br><br><br></div>dmesg error:<br><br>XFS (dm-0): Corruption detected. Unmount and run xfs_repair<br>XFS (dm-0): metadata I/O error: block 0x3d4f534e0 ("xfs_trans_read_buf_map") error 117 numblks 16<br>

XFS (dm-0): xfs_imap_to_bp: xfs_trans_read_buf() returned error 117.<br>XFS (dm-0): Corruption detected. Unmount and run xfs_repair<br>XFS (dm-0): Corruption detected. Unmount and run xfs_repair<br><div><br><br></div><div>
ext4 also got broken.<br></div><div><br><br></div><div>Tested with 3.10.11-gentoo, fedora 19- kernel 3.11.something, xfs, ext4, writeback and writethrough modes.<br><br><br></div><div><br>regards,<br></div><div>Vladimir Smolensky<br>
</div></div>