I am using GlusterFS as the shared storage for shared-disk database.Now i have two operations. operation 1:use lseek to get a file's total size. operation 2:write and fsync immediately to extend a file. (o1 and o2 are mutually exclusive.) Here comes the problem : I have a file which is 8Bytes.node 2 executes operation 2,enlarge it to 16B.After that,node 1 executes operation 1 to get file size and finds out it is still 8B.
I have been trying to change configuration of glusterFS,but none of them work.Is there a specifc option? thanks.