[Bug 557745] New: Write on a XFS formated logical volume after a snapshot (lvm2) on a DomU paravitualized
http://bugzilla.novell.com/show_bug.cgi?id=557745 http://bugzilla.novell.com/show_bug.cgi?id=557745#c0 Summary: Write on a XFS formated logical volume after a snapshot (lvm2) on a DomU paravitualized Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: x86-64 OS/Version: openSUSE 11.1 Status: NEW Severity: Major Priority: P5 - None Component: Xen AssignedTo: jdouglas@novell.com ReportedBy: martineau.antony@free.fr QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729) I reproduct this bug on DomU paravirtualized opensuse11.1 and Ubuntu server 9.10 In a domU when i mount a logical volume formated in XFS no problem. But when i do a snapshot of this logical volume the disk becomes innacessible. 1 - I start my domU whith 2 disks (/dev/vg0/lv0,(hda) and /dev/vg0/lv1(hdc) i format hdc whith xfs and i mount it on /media no problem : XFS mounting filesystem hdc Ending clean XFS mount for filesystem: hdc (writes and reads on this disk is ok) 2- I do a snapshot on Dom0 about /dev/vg0/lv1 On domU i have immediatly this error.. blkfront: hdc: write barrier op failed blkfront: hdc: barriers disabled end_request: I/O error, dev hdc, sector 2097186 end_request: I/O error, dev hdc, sector 2097186 Filesystem "hdc": xlog_iodone: Barriers are no longer supported by device. Disabling barriers the disk become inaccessible... the same thing if i try on hda... the system crash because it is the system disk. The problem is not present whith ext3 or ext4 on disk... The problem seems to be beetween XFS Barriers on LVM2 and blkfront... blkfront is not capable to use xfs barriers... Reproducible: Always Steps to Reproduce: 1.Install Dom0 opensuse11.1 up to date 2.Install DomU opensuse11.1 paravirtualized on logical volume for example /dev/vg0/lv0 (hda) and /dev/vg0/lv1 (hdc) 3.In DomU format hdc disk whith XFS and mount it 4.In Dom0 do a snapshot of hdc /dev/vg0/lv1 (not hda because freeze the system) 5.In DomU looks the dmesg ( error blkfront: hdc: write barrier op failed must be appeared) Actual Results: the disks whith snapshot is inaccessible and disabling xfs barriers -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=557745
http://bugzilla.novell.com/show_bug.cgi?id=557745#c1
James Fehlig
http://bugzilla.novell.com/show_bug.cgi?id=557745
http://bugzilla.novell.com/show_bug.cgi?id=557745#c2
--- Comment #2 from MARTINEAU Antony
http://bugzilla.novell.com/show_bug.cgi?id=557745
http://bugzilla.novell.com/show_bug.cgi?id=557745#c3
--- Comment #3 from James Fehlig
http://bugzilla.novell.com/show_bug.cgi?id=557745
http://bugzilla.novell.com/show_bug.cgi?id=557745#c
Jason Douglas
http://bugzilla.novell.com/show_bug.cgi?id=557745
http://bugzilla.novell.com/show_bug.cgi?id=557745#c4
--- Comment #4 from wei kong
http://bugzilla.novell.com/show_bug.cgi?id=557745
http://bugzilla.novell.com/show_bug.cgi?id=557745#c6
--- Comment #6 from MARTINEAU Antony
http://bugzilla.novell.com/show_bug.cgi?id=557745
http://bugzilla.novell.com/show_bug.cgi?id=557745#c7
--- Comment #7 from MARTINEAU Antony
http://bugzilla.novell.com/show_bug.cgi?id=557745
http://bugzilla.novell.com/show_bug.cgi?id=557745#c8
--- Comment #8 from wei kong
I have ever try to mount xfs whith no barrier option on DomU. But the problem was the same ...
? so pls check /proc/mounts and dmesg, it's real nobarrier. I test xfs with nobarrier on SLES11 guest, works. If it still happen, can I access your test machine to do a debug. thanks
the problem is xfs on the system Disk because it can freeze the system...
Whith DomU Paravirtualized, no problem with ext4 file system in domU
I didn't test ext4 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=557745
http://bugzilla.novell.com/show_bug.cgi?id=557745#c9
--- Comment #9 from MARTINEAU Antony
http://bugzilla.novell.com/show_bug.cgi?id=557745
http://bugzilla.novell.com/show_bug.cgi?id=557745#c11
--- Comment #11 from MARTINEAU Antony
http://bugzilla.novell.com/show_bug.cgi?id=557745
http://bugzilla.novell.com/show_bug.cgi?id=557745#c12
--- Comment #12 from MARTINEAU Antony
http://bugzilla.novell.com/show_bug.cgi?id=557745
http://bugzilla.novell.com/show_bug.cgi?id=557745#c13
--- Comment #13 from wei kong
And whith barrier on XFS have you got the problem? Yes.
I can't reproduce the problem whith nobarrier option Good news.
But When disks on domU are mounted whith barrier the problem is easy to reproduce Dom0 on opensuse11.1 x86_64, DomU on opensuse11.1 x86_64 para (/dev/vg0/lv0 system disk) Yes, on opensuse11.1(Dom0), LVM2 doesn't support Write Barrier fully.
when i do a snap about /dev/vg0/lv0, there is no one commande works.. I just tested on your machine, with nobarrier works, see testsn2 is base on lv0.
Dec 7 12:02:08 suse kernel: XFS: bad magic number Dec 7 12:02:08 suse kernel: XFS: SB validate failed Your XFS fs super block destroyed, it recovered itself.
I have checked on your machine, with nobarrier works. this option has no performance problem. So you can use it. If you don't like this workaround way, try opensuse11.2/SLES11.1 as Dom0, they don't need this option. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=557745
http://bugzilla.novell.com/show_bug.cgi?id=557745#c14
MARTINEAU Antony
participants (1)
-
bugzilla_noreply@novell.com