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