Re: How to enable direct io??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There are two things you need to change for o-direct to be handled properly in gluster stack:

1) gluster volume set <volname> performance.strict-o-direct on
on nfs this option is gluster volume set <volname> performance.nfs.strict-o-direct on

2) gluster volume set <volname> network.remote-dio off

Please note that we found a bug in o-direct reads which happen sometime, which is fixed by http://review.gluster.org/14639

Without this patch you may get EINVAL for reads sometimes.

Pranith

On Fri, Jun 17, 2016 at 7:04 PM, Keiviw <keiviw@xxxxxxx> wrote:
By "mount -t glusterfs XXXX:/testvol -o direct-io-mode=true mountpoint",the GlusterFS client will enable the direct io, and the file will not cached in the GlusterFS client,but it won't work in the GlusterFS server. By defalut,the GlusterFS will ignore the direct io flag. How to make the server work in direct-io-mode??


 


_______________________________________________
Gluster-devel mailing list
Gluster-devel@xxxxxxxxxxx
http://www.gluster.org/mailman/listinfo/gluster-devel



--
Pranith
_______________________________________________
Gluster-devel mailing list
Gluster-devel@xxxxxxxxxxx
http://www.gluster.org/mailman/listinfo/gluster-devel

[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux