Re: Re: Unexpected behaviour when self-healing

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

 



Be careful to have the right time. Use ntpdate in the startup of both
servers and clients, then have ntp running as server on all machines.
Use one local server as ntp server for your cluster, getting his time
from an official ntp server. Then adjust /etc/ntp.conf and put the local
server as the only one at all your hosts. This will assure all machines
are correct about time, wich they don't right now, according to the
timestamp mentioned.

Regards,
Einar

On Wed, 2008-05-28 at 09:01 +0200, Daniel Wirtz wrote:
> Ok, I updated to 1.3.9 now but there is still some strange behaviour. I
> tested the same case like mentioned before:
> 
> - I start up both servers with a fresh and clean datastorage and namespace.
> - Then I create a file named "before" which is replicated correctly between
> both servers.
> - Now I killall -9 one of the two server nodes so simulate a crash.
> - Afterwards I create a new file named "after" on the still working server
> and remove the "before" file.
> - When this took place I restart the crashed node (note: with 1.3.9 it does
> not crash anymore the first time it starts).
> 
> Now, I see both files "before" and "after" on clients that are connected
> either to the first or the second server.
> However, I cannot open the "before" file on the not-crashed server node (I
> deleted it from there before). This could be an expected behaviour, but both
> files show up on both servers. However, the "after" file is located only in
> the exported directory of the not-crashed server and the before file is
> located only in the exported directory of the crashed server. There seems no
> replication to be done to any of the two files. However, both servers
> have namespace entries for both files (but the "before" file cannot be
> opened on the not-crashed server as mentioned).
> 
> Some of the files located inside the underlying exported directories also
> have a timestamp of 1970-01-01 01:00. This seems to be the case only on the
> server, where the file was automatically replicated to but not on the
> server where it originally was created (I am using ext3 as underlying
> filesystem). Is this intended? However, the files that show up inside the
> mounted directories got the correct timestamps.
> 
> -> As for now it seems that previously deleted files that exist on a
> returning crashed node but were removed from the node that did not crash in
> the meantime, show up on both nodes and are still accessible on the crashed
> node but not on the not-crashed node. Also there seems no replication to
> take place for both kinds of files - that are files created before the crash
> but deleted afterwards on the remaining server and files that are created
> between crash and restart on the not-crashed server.
> 
> Am I doing something wrong?
> 
> regards
> Daniel
> _______________________________________________
> Gluster-devel mailing list
> Gluster-devel@xxxxxxxxxx
> http://lists.nongnu.org/mailman/listinfo/gluster-devel
-- 
Einar Gautun                     einar.gautun@xxxxxxxxxxx

Statens kartverk            | Norwegian Mapping Authority
3507 Hønefoss               |    NO-3507 Hønefoss, Norway

Ph +47 32118372   Fax +47 32118101       Mob +47 92692662




[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