On Tue, May 24, 2016 at 02:58:51PM +0200, Gionatan Danti wrote: > Hi list, > I have a question about LVM snapshot and XFS. > > Some preliminary information: CentOS Linux release 7.0.1406 (Core), > with kernel version 3.10.0-123.20.1.el7.x86_64 > > Basically, each time I mount a LVM snapshot (with the "nouuid" > option), I have the following dmesg entries: > > [824501.391058] XFS (dm-7): Mounting Filesystem > [824502.085459] XFS (dm-7): Starting recovery (logdev: internal) > [824502.120435] XFS (dm-7): log record CRC mismatch: found > 0x324293f8, expected 0x43a1b3b5. > [824502.121035] ffffc90018271000: 00 00 00 10 00 00 00 00 69 01 00 > 00 6d a0 9d a7 ........i...m... > [824502.121649] ffffc90018271010: 00 00 00 10 69 00 00 00 4e 41 52 > 54 2a 00 00 00 ....i...NART*... > [824502.122403] XFS (dm-7): log record CRC mismatch: found > 0x873f6b2, expected 0x49045c16. .... > > From my understanding, this should be more or less the expected > behavior: the snapshot is a "crash consistent" backup point, and > mounting the snapshotted filesystem can led to mismatched CRC. No, a snapshot should not have mismatched CRC errors in the log. However, log recovery should be seeing only an unmount record during recovery, so seeing multiple CRC errors indicates that the filesystem was not quiesced correctly when the snapshot was taken. How did you take the snapshot? (full command lines, please) > Anyway, I can read from the snapshot without problems. Well, until you hit whatever was not replayed out of the log.... > However, issuing a xfs_info on the original volume shows that crc > options is 0 (crc=0), so I am somewhat puzzled about the warning > above. CRCs are now always enabled on the journal. The difference is that for crc=1 filesystems this is a fatal error and the fs won't mount, while for crc=0 it is simply a canary for developers when bugs are reported that something might have gone wrong in log recovery.... > Moreover, on a more recent CentOS 7.2 server (kernel version > 3.10.0-327.13.1.el7.x86_64), I can not reproduce this warning. > > So I ask: > 1) it really is the expected behavior, or should I be worried by the > dmesg entries? Not expected. indicates a problem with the snapshot image. > 2) this is kernel-related Maybe. > should I update the kernel to newer version? Depends if it is kernel related... Cheers, Dave. -- Dave Chinner david@xxxxxxxxxxxxx _______________________________________________ xfs mailing list xfs@xxxxxxxxxxx http://oss.sgi.com/mailman/listinfo/xfs