13.07.2016 10:24, Pranith Kumar
Karampuri пишет:
You mean on fuse mount? It doesn't work: [root@father ~]# mount -t glusterfs localhost:/pool gluster [root@father ~]# then make it zero lengths in brick: [root@father gluster]# > /wall/pool/brick/gstatus-0.64-3.el7.x86_64.rpm [root@father gluster]# [root@father gluster]# ls -laR /root/gluster/ /root/gluster/: итого 122153384 drwxr-xr-x 4 qemu qemu 4096 июл 11 13:36 . dr-xr-x---. 10 root root 4096 июл 11 12:26 .. -rw-r--r-- 1 root root 8589934592 май 11 09:14 csr1000v1.img -rw-r--r-- 1 root root 0 июл 13 10:34 gstatus-0.64-3.el7.x86_64.rpm As you can see gstatus-0.64-3.el7.x86_64.rpm has 0 length But: [root@father gluster]# touch /root/gluster/gstatus-0.64-3.el7.x86_64.rpm [root@father gluster]# ls -laR /root/gluster/ /root/gluster/: итого 122153436 drwxr-xr-x 4 qemu qemu 4096 июл 11 13:36 . dr-xr-x---. 10 root root 4096 июл 11 12:26 .. -rw-r--r-- 1 root root 8589934592 май 11 09:14 csr1000v1.img -rw-r--r-- 1 root root 52268 июл 13 10:36 gstatus-0.64-3.el7.x86_64.rpm I.e. if I do some i.o. on file then it is back. By the way the same problem if I delete file directly in brick: [root@father gluster]# rm /wall/pool/brick/gstatus-0.64-3.el7.x86_64.rpm rm: удалить обычный файл «/wall/pool/brick/gstatus-0.64-3.el7.x86_64.rpm»? y [root@father gluster]# ls -laR /root/gluster/ /root/gluster/: итого 122153384 drwxr-xr-x 4 qemu qemu 4096 июл 13 10:38 . dr-xr-x---. 10 root root 4096 июл 11 12:26 .. -rw-r--r-- 1 root root 8589934592 май 11 09:14 csr1000v1.img -rw-r--r-- 1 qemu qemu 43692064768 июл 13 10:38 infimonitor.img I don't see it in directory in fuse mount at all till touch, which restores file too.
You recipe doesn't work :-( If there is difference between bricks directories due to direct brick manipulation it leads to problems.
|
_______________________________________________ Gluster-users mailing list Gluster-users@xxxxxxxxxxx http://www.gluster.org/mailman/listinfo/gluster-users