Bharata,<div> Can you try this with &#39;gluster volume set &lt;volname&gt; performance.write-behind off&#39; and see if you still face the problem?</div><div><br></div><div>Avati<br><br><div class="gmail_quote">On Mon, Aug 6, 2012 at 11:29 PM, Bharata B Rao <span dir="ltr">&lt;<a href="mailto:bharata.rao@gmail.com" target="_blank">bharata.rao@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
With latest QEMU and latest gluster git, I observe guest root<br>
filesystem corruption when the VM boots.<br>
<br>
QEMU command line I am using is this:<br>
qemu-system-x86_64 --enable-kvm --nographic -m 1024 -smp 4 -drive<br>
file=/mnt/F17,if=virtio -net nic,model=virtio -net user -redir<br>
tcp:2000::22<br>
<br>
Gluster volume is mounted in this manner:<br>
glusterfs -s bharata --volfile-id=test -L DEBUG -l glusterfs.log /mnt<br>
<br>
I see IO errors like this when VM boots:<br>
[    1.698583] end_request: I/O error, dev vda, sector 9680896<br>
[    1.699328] Buffer I/O error on device vda3, logical block 1081344<br>
[    1.699328] lost page write due to I/O error on vda3<br>
[    1.706644] end_request: I/O error, dev vda, sector 1030144<br>
[    1.707630] Buffer I/O error on device vda3, logical block 0<br>
[    1.707630] lost page write due to I/O error on vda3<br>
[    1.718671] dracut:<br>
/dev/disk/by-uuid/d29b972f-3568-4db6-bf96-d2702ec83ab6: clean,<br>
21999/623392 files, 796916/2492672 blocks<br>
[    1.723455] dracut: Remounting<br>
/dev/disk/by-uuid/d29b972f-3568-4db6-bf96-d2702ec83ab6 with -o ro<br>
<br>
VM eventually comes up with RO rootfs. Shutdown path sees these kinds of error:<br>
<br>
[   16.034271] EXT4-fs (vda3): previous I/O error to superblock detected<br>
[   16.041699] end_request: I/O error, dev vda, sector 1030144<br>
[   16.042679] EXT4-fs error (device vda3): ext4_remount:4418: Abort<br>
forced by user<br>
[   16.046465] EXT4-fs (vda3): re-mounted. Opts: (null)<br>
<br>
Full glusterfs log is too big to go with this mail. I can see this<br>
kind of errors:<br>
<br>
[2012-08-07 05:56:29.598636] T [io-cache.c:128:ioc_inode_flush]<br>
0-test-io-cache: locked inode(0xd2d2c0)<br>
[2012-08-07 05:56:29.598642] T [io-cache.c:132:ioc_inode_flush]<br>
0-test-io-cache: unlocked inode(0xd2d2c0)<br>
[2012-08-07 05:56:29.598651] T [fuse-bridge.c:2113:fuse_writev_cbk]<br>
0-glusterfs-fuse: 319: WRITE =&gt; 4096/4096,4956618752/10737418240<br>
[2012-08-07 05:56:29.598749] T [fuse-bridge.c:2293:fuse_fsync_resume]<br>
0-glusterfs-fuse: 320: FSYNC 0xd6f060<br>
[2012-08-07 05:56:29.598845] W [write-behind.c:2809:wb_fsync]<br>
0-test-write-behind: write behind wb_inode pointer is not stored in<br>
context of inode(0x7f9cb1eab0c0), returning EBADFD<br>
[2012-08-07 05:56:29.598858] W [fuse-bridge.c:1063:fuse_err_cbk]<br>
0-glusterfs-fuse: 320: FSYNC() ERR =&gt; -1 (File descriptor in bad<br>
state)<br>
[2012-08-07 05:56:29.605831] T [fuse-bridge.c:2154:fuse_write_resume]<br>
0-glusterfs-fuse: 322: WRITE (0xd6f060, size=4096, offset=527433728)<br>
<br>
Just to clarify, I am not using GlusterFS block backend in QEMU (via<br>
libgfapi) here but instead using it with normal FUSE mount.<br>
<br>
Regards,<br>
Bharata.<br>
<span class="HOEnZb"><font color="#888888">--<br>
<a href="http://bharata.sulekha.com/blog/posts.htm" target="_blank">http://bharata.sulekha.com/blog/posts.htm</a>, <a href="http://raobharata.wordpress.com/" target="_blank">http://raobharata.wordpress.com/</a><br>
<br>
_______________________________________________<br>
Gluster-devel mailing list<br>
<a href="mailto:Gluster-devel@nongnu.org">Gluster-devel@nongnu.org</a><br>
<a href="https://lists.nongnu.org/mailman/listinfo/gluster-devel" target="_blank">https://lists.nongnu.org/mailman/listinfo/gluster-devel</a><br>
</font></span></blockquote></div><br></div>