<a href="http://gluster.org/pipermail/gluster-users/2012-May/010368.html">http://gluster.org/pipermail/gluster-users/2012-May/010368.html</a><div><br></div><div>O_DIRECT is supported for fuse since kernel 3.4</div><div><br clear="all">

Best regards,<br>George Machitidze<br>
<br><br><div class="gmail_quote">On Mon, Sep 24, 2012 at 11:50 AM, Joe Julian <span dir="ltr">&lt;<a href="mailto:joe@julianfamily.org" target="_blank">joe@julianfamily.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    1. is a deficiency of the libvirt test for safe filesystems. There
    is a way to override that, but I&#39;m not sure off the top of my head
    what that was. You should be able to search the libvirt mailing
    lists for that error and find it though. I know I read it there a
    little while ago.<br>
    2. Should work with any current kernels and the &quot;direct-io-mode=yes&quot;
    mount option (using the fuse client).<br>
    3. That&#39;s correct. qemu-kvm sets o_direct for just about anything
    but type=raw,cache=none. That&#39;s (imho) a qemu bug. Any app that
    doesn&#39;t fall back if it can&#39;t do O_DIRECT should.<br>
    <br>
    Anyway, I hope that all helps.<br>
    <br>
    <div>On 09/24/2012 12:39 AM, flintcq wrote:<br>
    </div>
    <blockquote type="cite">
      <div>1. kvm can run on glusterfs using option cache=writeback, but
        can not implement migration because of following error:</div>
      <div>Unable to migrate guset: Unsafe migration: Migration may lead
        to data corruption if disks use cache != none</div>
      <div>2. then i change the option as cache=none, but i doesn&#39;t work
        with following error:</div>
      <div>could not open disk image ..... invalid argument</div>
      <div><br>
      </div>
      <div>3.later, i found that fuse doesn&#39;t support cache=none(using
        O_DIRECT flag), and if using disks with option type=raw, then
        cache=none may workable, so i change the type of disks, but
         still the same error mentioned above.</div>
      <div><br>
      </div>
      <div>this is my most works.</div>
      <div><u></u>
          <div><br>
          </div>
        <u></u><br>
      </div>
    </blockquote>
    <br>
  </div>

<br>_______________________________________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a href="http://gluster.org/cgi-bin/mailman/listinfo/gluster-users" target="_blank">http://gluster.org/cgi-bin/mailman/listinfo/gluster-users</a><br>
<br></blockquote></div><br></div>