[OpenAFS] Force not to be the sync site problem

Chunlan Zhang lyzhang@umich.edu
Thu, 22 Jan 2004 17:00:54 -0500 (EST)


Hello,

I am running openafs-1.2.9 with the latest patch. I have two db servers.
I would like to force the one with the lowest IP address not to be the sync
site.
I did udebug to check the status. The port 7002 and 7003 are fine, but
have problems with the port 7021.

My /usr/afs/etc/CellServDB on all the servers looks like this:
>it.college.umich.edu    #Cell name
[141.211.100.1]    #machine1.it.clllege.umich.edu
141.211.100.2      #machine2.it.college.umich.edu


Can some one take a look at this problem?

Thanks!

Lynn

Here is the log.

/opt/bin/udebug machine1 7002
Host's addresses are: 141.211.100.1
Host's 141.211.100.1 time is Thu Jan 22 16:22:14 2004
Local time is Thu Jan 22 16:22:16 2004 (time differential 2 secs)
Last yes vote for 141.211.100.2 was 1 secs ago (sync site);
Last vote started 0 secs ago (at Thu Jan 22 16:22:16 2004)
Local db version is 1071675250.2
I am a clone and never can become sync site
Lowest host 141.211.100.2 was set 1 secs ago
Sync host 141.211.100.2 was set 1 secs ago
Sync site's db version is 1071675250.2
0 locked pages, 0 of them for write


/opt/bin/udebug machine1 7003
Host's addresses are: 141.211.100.1
Host's 141.211.100.1 time is Thu Jan 22 16:22:33 2004
Local time is Thu Jan 22 16:22:35 2004 (time differential 2 secs)
Last yes vote for 141.211.100.2 was 8 secs ago (sync site);
Last vote started 7 secs ago (at Thu Jan 22 16:22:28 2004)
Local db version is 1074711020.2
I am a clone and never can become sync site
Lowest host 141.211.100.2 was set 8 secs ago
Sync host 141.211.100.2 was set 8 secs ago
Sync site's db version is 1074711020.2
0 locked pages, 0 of them for write


/opt/bin/udebug machine1 7021
Host's addresses are: 141.211.100.1
Host's 141.211.100.1 time is Thu Jan 22 16:22:41 2004
Local time is Thu Jan 22 16:22:42 2004 (time differential 1 secs)
Last yes vote for 141.211.100.1 was 8 secs ago (not sync site);
Last vote started 8 secs ago (at Thu Jan 22 16:22:34 2004)
Local db version is 1056657832.1
I am not sync site
Lowest host 141.211.100.1 was set 8 secs ago
Sync host 0.0.0.0 was set 1074806561 secs ago
Sync site's db version is 1056657832.1
0 locked pages, 0 of them for write


 /opt/bin/udebug machine2 7002
Host's addresses are: 141.211.100.2
Host's 141.211.100.2 time is Thu Jan 22 16:22:54 2004
Local time is Thu Jan 22 16:22:57 2004 (time differential 3 secs)
Last yes vote for 141.211.100.2 was 0 secs ago (sync site);
Last vote started 0 secs ago (at Thu Jan 22 16:22:57 2004)
Local db version is 1071675250.2
I am sync site until 51 secs from now (at Thu Jan 22 16:23:48 2004) (1
server)
Recovery state 1f
Sync site's db version is 1071675250.2
0 locked pages, 0 of them for write

Server (141.211.100.1): (db 1071675250.2)    is only a clone!
    last vote rcvd 9 secs ago (at Thu Jan 22 16:22:48 2004),
    last beacon sent 8 secs ago (at Thu Jan 22 16:22:49 2004), last vote
was yes
    dbcurrent=1, up=1 beaconSince=1


/opt/bin/udebug machine2 7003
Host's addresses are: 141.211.100.2
Host's 141.211.100.2 time is Thu Jan 22 16:23:02 2004
Local time is Thu Jan 22 16:23:05 2004 (time differential 3 secs)
Last yes vote for 141.211.100.2 was 0 secs ago (sync site);
Last vote started 0 secs ago (at Thu Jan 22 16:23:05 2004)
Local db version is 1074711020.2
I am sync site until 55 secs from now (at Thu Jan 22 16:24:00 2004) (1
server)
Recovery state 1f
Sync site's db version is 1074711020.2
0 locked pages, 0 of them for write
Last time a new db version was labelled was:
         95562 secs ago (at Wed Jan 21 13:50:23 2004)

Server (141.211.100.1): (db 1074711020.2)    is only a clone!
    last vote rcvd 5 secs ago (at Thu Jan 22 16:23:00 2004),
    last beacon sent 4 secs ago (at Thu Jan 22 16:23:01 2004), last vote
was yes
    dbcurrent=1, up=1 beaconSince=1



/opt/bin/udebug machine2 7021
Host's addresses are: 141.211.100.2
Host's 141.211.100.2 time is Thu Jan 22 16:23:07 2004
Local time is Thu Jan 22 16:23:11 2004 (time differential 4 secs)
Last yes vote for 141.211.100.1 was 4 secs ago (not sync site);
Last vote started 2 secs ago (at Thu Jan 22 16:23:09 2004)
Local db version is 1056657832.1
I am not sync site
Lowest host 141.211.100.1 was set 4 secs ago
Sync host 0.0.0.0 was set 1074806587 secs ago
Sync site's db version is 1056657832.1
0 locked pages, 0 of them for write



On the port 7021, I got this some times.

/opt/bin/udebug machine1 7021
Host's addresses are: 141.211.100.1
Host's 141.211.100.1 time is Thu Jan 22 16:51:57 2004
Local time is Thu Jan 22 16:51:59 2004 (time differential 2 secs)
Last yes vote for 141.211.100.1 was 0 secs ago (not sync site);
Last vote started 0 secs ago (at Thu Jan 22 16:51:59 2004)
Local db version is 1056657832.1
I am sync site until -1066434 secs from now (at Sat Jan 10 08:38:05 2004)
(2 servers)
Recovery state 0
Sync site's db version is 1056657832.1
0 locked pages, 0 of them for write

Server (141.211.100.2): (db 0.0)
    last vote rcvd 2 secs ago (at Thu Jan 22 16:51:57 2004),
    last beacon sent 0 secs ago (at Thu Jan 22 16:51:59 2004), last vote
was yes
    dbcurrent=0, up=1 beaconSince=1