All of lore.kernel.org
 help / color / mirror / Atom feed
* all rbd users: set 'filestore fiemap = false'
@ 2012-06-18  4:02 Sage Weil
  2012-06-18  8:29 ` Oliver Francke
  2012-06-18  8:57 ` Christoph Hellwig
  0 siblings, 2 replies; 5+ messages in thread
From: Sage Weil @ 2012-06-18  4:02 UTC (permalink / raw)
  To: ceph-devel

If you are using RBD, and want to avoid potential image corruption, add

	filestore fiemap = false

to the [osd] section of your ceph.conf and restart your OSDs.

We've tracked down the source of some corruption to racy/buggy FIEMAP 
ioctl behavior.  The RBD client (when caching is diabled--the default) 
uses a 'sparse read' operation that the OSD implements by doing an fsync 
on the object file, mapping which extents are allocated, and sending only 
that data over the wire.  We have observed incorrect/changing FIEMAP on 
both btrfs:

	fsync
	fiemap returns mapping
	<time passes, no modifications to file>
	fiemap returns different mapping

Josh is still tracking down which kernels and file system are affected; 
fortunately it is relatively easy to reproduce with the test_librbd_fsx 
tool.  In the meantime, the (mis)feature can be safely disabled. It will 
default to off in 0.48. It is unclear whether it's really much of a 
performance win anyway.

Thanks!
sage

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-06-22 15:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-18  4:02 all rbd users: set 'filestore fiemap = false' Sage Weil
2012-06-18  8:29 ` Oliver Francke
2012-06-18  8:57 ` Christoph Hellwig
2012-06-18 15:32   ` Sage Weil
2012-06-22 15:16     ` Christoph Hellwig

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.