[Gluster-devel] File Clobbering Bug
Gordan Bobic
gordan at bobich.net
Tue Feb 17 01:45:06 UTC 2009
I've done a bit more digging on this one and there is some extra
weirdness happening. If a directory gets deleted via samba on the
client, when the other server rejoins the file/directory can be seen
with permissions 000. But the file ends up still being there. It also
seems to end up being owned as root.
This sounds very suspiciously similar to the weirdness I was seeing with
the ~/.openoffice directory. It looks like something doesn't replicate
correctly when a server node rejoins. In this particular case, files
were moved or deleted, but they deletes don't get healed correctly.
Trawling back through the logs, I can actually see entries from a few
days ago:
2009-01-28 14:15:56 W
[afr-self-heal-entry.c:471:afr_sh_entry_expunge_rmdir] home: removing
directory /foo/bar on home2
2009-01-28 14:15:56 E
[afr-self-heal-entry.c:449:afr_sh_entry_expunge_remove_cbk] home:
removing /foo/bar on home2 failed (Directory not empty)
2009-01-28 14:15:56 W
[afr-self-heal-entry.c:495:afr_sh_entry_expunge_unlink] home: unlinking
file /foo/bar/baz on home2
This was when the entry in question was being deleted with the server
down (I think it was, at least).
The files end up with 000 permissions owned by user 0 (root) group 0 (root).
When I repair the ownership and permissions on the files and delete
them, this appears in the logs:
E [posix.c:2434:posix_xattrop] home-store: /foo/bar: Numerical result
out of range
In other words, most of the problems I've been reporting recently appear
to be somehow related.
I hope this helps.
Gordan
Krishna Srinivas wrote:
> Gordan,
>
> More clues would help us.
>
> * Can you reproduce the problem without samba?
> * Are perf xlators loaded? can you mail the vol files?
> * do the logs indicate anything?
>
> Krishna
>
> On Mon, Feb 16, 2009 at 6:05 AM, Gordan Bobic <gordan at bobich.net> wrote:
>> I seem to have stumbled upon another bug.
>>
>> Two Linux servers in AFR (2.0.0rc1), one client that exports the directory
>> via samba.
>>
>> If one server is shut down, and a client connects to the client and modifies
>> a file via samba, the changes get clobbered when the 2nd server comes back.
>> When the server that was disconnected rejoins it seems to take precedence
>> and clobbers the changes made while it was down.
>>
>> Gordan
>>
>>
>> _______________________________________________
>> Gluster-devel mailing list
>> Gluster-devel at nongnu.org
>> http://lists.nongnu.org/mailman/listinfo/gluster-devel
>>
More information about the Gluster-devel
mailing list