<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hello!<br>
<br>
I'm using glusterfs version 2.0.0rc2 on both client and servers and
configuration copied literally from
<a class="moz-txt-link-freetext" href="http://gluster.org/docs/index.php/Automatic_File_Replication_(Mirror)_across_Two_Storage_Servers">http://gluster.org/docs/index.php/Automatic_File_Replication_(Mirror)_across_Two_Storage_Servers</a>
with only change being replacement of "storage*.example.com" with 2
different "10.*.*.*" IPs.<br>
There are 2 servers, 1 client.<br>
"server1" is the first server mentioned in client's config, "server2"
is the second.<br>
<br>
I start servers with "glusterfsd -f
/etc/glusterfs/glusterfs-server.vol" and client with "glusterfs -f
/etc/glusterfs/glusterfs-client.vol /home/import"<br>
<br>
My test looks like (commands were issued by hand, so you may assume
quite long sleeps between them).<br>
<tt>server2$ glusterfsd -f /etc/glusterfs/glusterfs-server.vol<br>
client$ glusterfs -f /etc/glusterfs/glusterfs-client.vol /home/import<br>
client$ echo 1 &gt; /home/import/1<br>
client$ umount /home/import<br>
server1$ glusterfsd -f /etc/glusterfs/glusterfs-server.vol<br>
client$ glusterfs -f /etc/glusterfs/glusterfs-client.vol /home/import<br>
client$ ls -l /home/import/1<br>
-rw-r--r-- 1 root root 0 Mar  0 12:39 /home/import/1<br>
client$ make-a-coffee # e.g. wait a while<br>
client$ ls -l /home/import/1<br>
-rw-r--r-- 1 root root 2 Mar  2 12:40 /home/import/1<br>
client$ hexdump -C /home/import/1<br>
00000000  00 00                                             |..|<br>
00000002</tt><br>
<br>
So: <br>
- first `ls -l` after server1 is brought up gives <b>0</b> byte file
size, instead of 2<br>
- later `ls -l` gives proper size, but the file is filled with 0<br>
- now, if i do `killall glusterfsd` on server1, client sees file "1"
with proper contents, but only until glusterfsd is started on server1
again.<br>
<br>
This is what is `ls` and `hexdump` gives on servers:<br>
<tt>server1$ hexdump -C /data/export/1<br>
00000000  00 00                                             |..|<br>
00000002<br>
server1$ ls -l /data/export/1<br>
-rw-r--r-- 1 root root 2 Mar  2 12:40 /data/export/1<br>
<br>
server2$ hexdump -C /data/export/1<br>
00000000  31 0a                                             |1.|<br>
00000002<br>
server2$ ls -l /data/export/1<br>
-rw-r--r-- 1 root root 2 Mar  2 12:39 /data/export/1</tt><br>
<br>
Am I doing something obviously wrong?<br>
<br>
<br>
I'm running both client and servers in OpenVZ VPSes on Debian lenny.
Servers have SYS_ADMIN granted for xattrs to work correctly.<br>
<br>
Best regards,<br>
Piotr Findeisen<br>
</body>
</html>