On Tue, Jun 17, 2014 at 3:22 AM, Ke-fei Lin <k...@kfei.net> wrote: > Hi list, > > How does RADOS check an object and its replica are consistent? Is there > a checksum in object's metadata or some other mechanisms? Does the > mechanism depend on > OSD's underlying file system?
It does not check consistency on read. On scrub it compares the local FS metadata (size et al) and RADOS metadata (object versions and things); on deep scrub it computes a checksum of each replica and compares them. RADOS does not maintain checksums alongside the objects in replicated pools. > And what would happen if a corrupted object being readed (like a > corrupted block in traditional file system)? If the local filesystem doesn't return an error, it will return the data it was given to the end user. (btrfs maintains its own checksums and will return errors, but unfortunately xfs will not.) -Greg Software Engineer #42 @ http://inktank.com | http://ceph.com _______________________________________________ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com