Re: Timestamp/metadata sync

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 3 Mar 2009 16:59:33 +0530, Anand Avati <anand.avati@xxxxxxxxx>
wrote:
>> OK, last post for this week, I promise.
>>
>> Are the timestamps in the backing store supposed to be the same on all
>> nodes after syncing? Files were just synced from the master node
>> (primarly lock server). The master has files with a timestamp
>> 1-Jan-1970. The secondary node that just synced them has the current
>> timestamp on the files (17-Feb-2009).
> 
> Do you still observe this with the latest codebase?

I haven't checked since the upgrade from rc1 to rc2, I'll re-test.

>> The gluster metadata doesn't match, either:
>>
>> primary:
>> # file: spreadsheet.ods
>> trusted.glusterfs.afr.data-pending=0sAAAAAAAAAAAAAAAA
>> trusted.glusterfs.afr.metadata-pending=0sAAAAAAAAAAAAAAAA
>> trusted.glusterfs.createtime="1218717518"
>> trusted.glusterfs.version="11"
>>
>> secondary:
>> getfattr -m "" -d spreadsheet.ods
>> # file: spreadsheet.ods
>> trusted.glusterfs.afr.data-pending=0sAAAAAAAAAAA=
> 
> glusterFS 2.0 relies upon pending flags and versions are no more used.

Ah, OK, that makes sense. But it still doesn't explain why for some files
the old, deprecated xattrs were getting replicated, and for some they
weren't.

>> md5 checksums of the files match, so the contents are the same.
>>
>> When both servers are up, the timestamp lists correctly (1-Jan-1970).
>> When
>> the primary gets shut down, ls lists the timestamp of the file on the
>> secondary server (17-Feb-2009).
>>
>> When the primary server returns, the secondary starts listing the
>> timestamp
>> correctly again. cat-ing all the files doesn't "heal" the discrepancy.
>>
>> The file sync was done by
>> # ls -laR /mount/path; find /mount/path -type f -exec head -c1 '{}' \;
>>
>> The really weird thing is that this doesn't seem to happen to all the
>> files,
>> but it does appear to happen to a very large number of them. The master
>> seems to have valid sattr metadata, but the newly synced mirror doesn't,
>> even though the content of the files in the backing store is correct.
>>
>> It is also worth noting that the timestamp discrepancy seems to have the
>> incidence of nearly 100%. The metadata discrepancy seems to be occuring
>> considerably less often.
> 
> By metadata do you mean ownership and permission?

I was referring to the data in the xattrs. The weird thing was that
sometimes the old xattr flags were being synced to the new node and
sometimes they weren't.

Gordan




[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux