public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andreas Sundstrom <sunkan@zappa.cx>
To: linux-kernel@vger.kernel.org
Subject: Re: 2.6.28 ext4, xen and lvm volume becomes ro after snapshot
Date: Fri, 26 Dec 2008 19:48:22 +0100	[thread overview]
Message-ID: <495526F6.9040704@zappa.cx> (raw)
In-Reply-To: <20081226182145.GP9871@mit.edu>

Theodore Tso wrote:
> Hmm... ok, to summarize, you are seeing this problem with 2.6.28 (have
> you tried earlier kernel versions) when an LVM volume has a read/only
> snapshot in existence and you try to mount the LVM volume using ext4.
> If you mount the same LVM volume using ext3, you don't see any
> problems.   Is that correct?
>   
Correct, and I have not been using barriers with any earlier kernel.
I stumbled upon this because barriers are enabled by default in ext4.
> Can you try mounting ext3 with barriers enabled?  Booting with the
> command linux option rootflags=barriers should do the trick.  If that
> fails, then it would indicate that trying to enable barriers in a Xen
> guest while the host OS has created a snapshot of volume causes an I/O
> error, thus leading errors which you are seeing.
>
> 						- Ted
>   
Yes, I mounted it with ext3 and barrier=1 and could reproduce the problem.
ext3 did not remount the fs ro though, it seems to only disable barriers:

[    7.681759] blkfront: xvda1: write barrier op failed
[    7.681776] blkfront: xvda1: barriers disabled
[    7.681785] end_request: I/O error, dev xvda1, sector 4584
[    7.681800] end_request: I/O error, dev xvda1, sector 4584
[    7.681886] JBD: barrier-based sync failed on xvda1 - disabling barriers

And then I tested with ext4 and barrier=0 and that also works.

I don't know if this is expected behaviour or not or if it's worth
looking into.
I just wanted to report back what I saw. For me personally it's no issue.
I'll be using ext4 without barriers for a while and see how it goes.

But I'm here if you want something tested or a patch verified or anything,
but I guess this might be a Xen issue rather than vanilla kernel stuff.

Thanks for helping out with the narrowing down of the issue

/Andreas

  reply	other threads:[~2008-12-26 18:48 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-26 11:06 2.6.28 ext4, xen and lvm volume becomes ro after snapshot Andreas Sundstrom
2008-12-26 14:07 ` Theodore Tso
2008-12-26 15:42   ` Andreas Sundstrom
2008-12-26 18:21     ` Theodore Tso
2008-12-26 18:48       ` Andreas Sundstrom [this message]
2008-12-26 19:33         ` Theodore Tso
2008-12-26 22:00           ` Andreas Sundstrom
2008-12-27  3:06             ` Theodore Tso
2008-12-27  9:19               ` Andreas Sundstrom
2009-01-02  3:11                 ` Theodore Tso
2009-01-02  8:29                   ` Andreas Sundstrom
2009-01-02 14:10                     ` Theodore Tso
2009-01-03 10:25                       ` Andreas Sundstrom

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=495526F6.9040704@zappa.cx \
    --to=sunkan@zappa.cx \
    --cc=linux-kernel@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