Mon 23 Feb 2009 05:45:47 PM UTC, original submission:
I'm having trouble with self-healing. I have a client cluster/replicate volume with two bricks as subvolumes. Writes are replicated to both bricks.
The problem occurs when I shut down one brick (let's say remote2), create a new file and start the brick back up again. Making a new lookup of the directory causes the self-heal to occur, and the files are created on remote2, but the files are 0 bytes in size. Reads from the files work fine (assuming they're coming from remote1).
So the process to reproduce is:
start both servers, mount on /srv/share
mkdir /srv/share/test
cd /srv/share/test
cp /boot/memtest86+.bin test1
# all ok up to here
shutdown glusterfsd on remote2
cp /boot/memtest86+.bin test2
startup glusterfsd on remote2
cd .. && cd test # to force a new lookup
# test2 is created 0 bytes in size on remote2's filesystem
I've attached my server and client configs, and the debug output from the gluster client process, logging the above session from start (mkdir /srv/share/test) to end.
|