All of lore.kernel.org
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: Anthony Sheetz <sheetzam@inspire.com>,
	Roger Pau Monne <roger.pau@citrix.com>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: BUG: ext3 corruption in domU
Date: Wed, 22 May 2013 16:10:44 -0400	[thread overview]
Message-ID: <20130522201044.GA12372@phenom.dumpdata.com> (raw)
In-Reply-To: <1366633594.22143.60.camel@zakaz.uk.xensource.com>

On Mon, Apr 22, 2013 at 01:26:34PM +0100, Ian Campbell wrote:
> Konrad is on vacation this week, so it'll probably be next week before
> this gets looked at by him.

And I finally got to this email in my 'vacation-mbox'
> 
> Ian.
> 
> On Mon, 2013-04-22 at 13:22 +0100, Anthony Sheetz wrote:
> > I realize folks are pretty busy, but we're still interested in getting
> > this problem solved, and I want to be sure it's not lost in the
> > shuffle.
> > Any chance of getting some attention for it?
> > 
> > On Wed, Apr 17, 2013 at 9:00 AM, Ian Campbell <Ian.Campbell@citrix.com> wrote:
> > > On Tue, 2013-04-16 at 18:39 +0100, Anthony Sheetz wrote:
> > >> (re-sending, first message seems to have gotten lost)
> > >>
> > >> I was referred here by Ian Campbell ijc@hellion.org.uk from bugs.debian.org.
> > >
> > > I'm here too (different hat ;-)), thanks for posting it here. I've added
> > > some people who know about the block stuff to the CC.
> > >
> > > Guys, my suspicion is that the issue is that barriers issued by ext3
> > > inside the guest aren't making it all the way down the
> > > ext3->blkfront->blkback->lvm->dm-crypt->disk chain leading the
> > > filesystem to eventually corrupt itself.
> > >
> > > The issue seems to relate to the use of dm-crypt since
> > > ext3->blkfront->blkback->lvm->disk is reported work fine.
> > >
> > > However there is no problem with the local dom0 ext3 root filesystem
> > > which is also in the same lvm VG on the crypt device (i.e.
> > > ext3->lvm->dm-crypt->disk), so its not purely a dm-crypt issue. I figure
> > > something is up at the blkfront->back link which causes the barriers
> > > which blkback is injecting into the block subsystem either don't make it
> > > to the dm-crypt layer or do not DTRT once they arrive.
> > >
> > > I'm not really sure with how to proceed (or how to ask Anthony to
> > > proceed) with verifying any part of that hypothesis though.
> > >
> > > ISTR issues with old vs new style barriers or barriers with no data in
> > > them or something, could this be related to that? (or am I thinking of
> > > DISCARD?)

You are using two different kernel versions. The 2.6.32 domU is only using
WRITE_BARRIERs, while in the 3.2 kernels that have been completly eliminated.
The mechanism they use is called 'WRITE_FLUSH'. The 3.2 kernel has a patch:
ommit 29bde093787f3bdf7b9b4270ada6be7c8076e36b
Author: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Date:   Mon Oct 10 00:42:22 2011 -0400

    xen/blkback: Support 'feature-barrier' aka old-style BARRIER requests.


which emulates the barrier request by draining all of the oustanding I/Os and then
sending the WRITE_FLUSH.

But it looks like you are hitting an issue here. Just to make sure 
that is the case, what happens if you use the _same_ kernel in both dom0 and
domU? Does it work then?

> > >
> > > The issue was initially reported with Squeeze (Jeremy 2.6.32 tree) domU
> > > on a Wheezy (mainline 3.2) dom0 but IIRC has also been repeated with
> > > Wheezy on Wheezy now so this isn't cross version confusion about barrier
> > > semantics AFAICT.
> > >
> > > Ian.
> > >
> > >> First, I'm happy to provide more information about this bug as
> > >> requsted. I recognize not all relevant data has
> > >> been collected yet.
> > >>
> > >> Detailed information about this bug can be found at
> > >> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=705124.
> > >>
> > >> The executive summary is: Using Debian Testing (7.0, wheezy) dom0 with
> > >> LVM and full disk encryption with
> > >> Debian Stable (6.0, Squeeze) domU, transferring large files via scp or
> > >> rsync over openswan results in data corruption, with
> > >> eventual file system corruption. The culprit appears to be full disk
> > >> encryption, however that evidence may not be conclusive.
> > >>
> > >> While I don't mind providing additional information, I'd hate to have
> > >> to repeat the information I've provided to the Debian bug hunting
> > >> folks.
> > >>
> > >> Thanks in advance for any help you can provide.
> > >>
> > >> _______________________________________________
> > >> Xen-devel mailing list
> > >> Xen-devel@lists.xen.org
> > >> http://lists.xen.org/xen-devel
> > >
> > >
> 
> 

  reply	other threads:[~2013-05-22 20:10 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-16 17:39 BUG: ext3 corruption in domU Anthony Sheetz
2013-04-17 13:00 ` Ian Campbell
2013-04-22 12:22   ` Anthony Sheetz
2013-04-22 12:26     ` Ian Campbell
2013-05-22 20:10       ` Konrad Rzeszutek Wilk [this message]
2013-05-23 18:19         ` Anthony Sheetz
2013-05-24 14:20           ` Konrad Rzeszutek Wilk
2013-05-28 14:27             ` Anthony Sheetz
2013-05-28 18:02               ` Anthony Sheetz
2013-05-28 18:18                 ` Konrad Rzeszutek Wilk
2013-05-28 18:19                   ` Anthony Sheetz
2013-05-29 15:15                     ` Konrad Rzeszutek Wilk
2013-05-29 11:53             ` Anthony Sheetz
2013-05-30 18:36               ` Konrad Rzeszutek Wilk
2013-06-04 12:55                 ` Anthony Sheetz
2013-06-04 13:41                   ` Konrad Rzeszutek Wilk
2013-06-07 17:10                     ` Konrad Rzeszutek Wilk
2013-06-07 18:43                       ` Anthony Sheetz
2013-07-02 18:10                         ` Konrad Rzeszutek Wilk
2013-05-24 17:48   ` Roger Pau Monné
2013-05-28 12:10     ` Anthony Sheetz
2013-05-28 12:14       ` Roger Pau Monné
2013-05-28 18:15         ` Anthony Sheetz
2013-05-29  8:39           ` Ian Campbell
2013-05-06 12:46 ` Anthony Sheetz

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=20130522201044.GA12372@phenom.dumpdata.com \
    --to=konrad.wilk@oracle.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=roger.pau@citrix.com \
    --cc=sheetzam@inspire.com \
    --cc=xen-devel@lists.xen.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 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.