CEPH filesystem development
 help / color / mirror / Atom feed
From: Phil Carns <carns@mcs.anl.gov>
To: ceph-devel@vger.kernel.org
Subject: block device journal durability
Date: Wed, 16 Jun 2010 10:46:28 -0400	[thread overview]
Message-ID: <4C18E3C4.5030303@mcs.anl.gov> (raw)

I noticed that Ceph issues a warning if it detects that you are using a 
raw block device as the journal and write caching is enabled on that 
device.

When it opens the block device file, however, the FileJournal is using 
O_DIRECT|O_SYNC.  In recent kernels, syncing a block device file 
actually triggers a proper write barrier operation
(http://lxr.linux.no/linux+v2.6.34/fs/block_dev.c#L420).  The barrier 
operation is also supported on MD and LVM now as well if you happen to 
have a journal on a multi-disk volume.

Does this mean that if you have a new enough kernel, and a block device 
that understands barriers, that you can safely leave the write cache 
enabled for the journal device?  It seems that way to me, but I wanted 
to make sure that I am not missing a more subtle issue related to how 
Ceph performs its journaling.

Kudos on the user-friendly warning messages in Ceph in general, by the way.

thanks,
-Phil


             reply	other threads:[~2010-06-16 14:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-16 14:46 Phil Carns [this message]
2010-06-16 17:03 ` block device journal durability Sage Weil
2010-06-16 17:32   ` Phil Carns

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C18E3C4.5030303@mcs.anl.gov \
    --to=carns@mcs.anl.gov \
    --cc=ceph-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox