WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] lvm as raw disk and barriers

To: Alexandre Chapellon <a.chapellon@xxxxxxxxx>
Subject: Re: [Xen-users] lvm as raw disk and barriers
From: "Fajar A. Nugraha" <list@xxxxxxxxx>
Date: Mon, 5 Sep 2011 15:47:48 +0700
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 05 Sep 2011 01:48:56 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4E648687.4010809@xxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <4E648687.4010809@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Mon, Sep 5, 2011 at 3:21 PM, Alexandre Chapellon
<a.chapellon@xxxxxxxxx> wrote:
> Hello,
>
> I was previously using LVM2 volumes as partitions for my PV guests.
> For some reasons I now have to switch to a model where an LV is a raw disk
> and not a partition.
> This works flawlessly at first look. But today while searching in dmes logs
> I found the following errors:
>
> ##############
> ...
> [    8.515912] EXT4-fs (xvda3): mounted filesystem with ordered data mode
> [   12.961268] blkfront: xvda: write barrier op failed
> [   12.962398] blkfront: xvda: barriers disabled
> [   12.963434] end_request: I/O error, dev xvda, sector 3410072
> [   12.964285] end_request: I/O error, dev xvda, sector 3410072
> [   12.965438] JBD2: wait_on_commit_record: sync failed on xvda1-8 -
> disabling barriers
> [   13.820957] JBD: barrier-based sync failed on xvda3-8 - disabling
> barriers
> ...
> ##############
>
> I didn't have any trouble with fs consistency sor far, but I know not using
> barriers is more prone to falling into FS problems (even with modern
> journalised fs).
> Why am I getting this issue? is it related to using LV as raw disks? Is
> there anything I can do to re-enable barriers?

I'd say don't bother. Most likely it never worked in the first place.

>
> Am using Xen 3.2.1 on Debian Lenny system, kernel 2.6.26-2-xen-amd64 as
> dom0, debian squeeze , kernel 2.6.32-5-amd64 as guests. backend storage
> devices are lvm volumes from multipathed FCs SANs.

LVM doesn't fully support barriers until 2.6.33
(http://en.wikipedia.org/wiki/Logical_Volume_Manager_(Linux)#Caveats),
so again, most likely you never had it working in the first place,
regardles whether you use it directly as raw block device or put a
partition on it. Add to that the old dom0 kernel version, if
everything works then the best you can do is just ignore it.

FWIW, even with newer kernels (e.g. 3.0 dom0, 2.6.38 domU) and
partitions, I still get "blkfront: xvda: barriers disabled". The
difference is that the message appears early during boot and without
any "I/O error" messages before that.

-- 
Fajar

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>