[OpenAFS-devel] hosttable

Jimmy Engelbrecht jimmy-li@e.kth.se
03 Oct 2001 12:49:47 +0200


One host should normally be in the hosttable 1 or 2 times, right ?

My host is in the hosttable on the server MANY times. But only one
entry is not deleted.

It seems like the hostentry dont get toss'ed even if the HOSTDELTED
flag i set.

On the Transarc-server it has only ONE entry in the hosttable (which
is not deleted.)

Btw: what is that point with printing out 32 Bits of the pointer to
the holds-array ?

look:

elektrien:/usr/afs/logs# cat  /usr/afs/local/hosts.dump | grep -i -A 1 fa30ed82 | grep -v '^--'
ip:fa30ed82 holds:1078952952 port:26386 hidx:103 cbid:2024 lock:0 last:1002096263 active:1002096263 down:0 del:0 cons:0 cldel:32
         hpfailed:0 hcpsCall:1002089926 hcps [ -17166 -11641 -11636] []
ip:fa30ed82 holds:1078951512 port:26386 hidx:98 cbid:0 lock:0 last:1002082125 active:1002082125 down:0 del:16 cons:0 cldel:32
         hpfailed:0 hcpsCall:1002082125 hcps [ -17166 -11641 -11636] []
ip:fa30ed82 holds:1078950936 port:26386 hidx:96 cbid:0 lock:0 last:1002054519 active:1002054519 down:0 del:16 cons:0 cldel:32
         hpfailed:0 hcpsCall:1002054519 hcps [ -17166 -11641 -11636] []
ip:fa30ed82 holds:1078950648 port:26386 hidx:95 cbid:0 lock:0 last:1002046718 active:1002046718 down:0 del:16 cons:0 cldel:32
         hpfailed:0 hcpsCall:1002046718 hcps [ -17166 -11641 -11636] []
ip:fa30ed82 holds:1078950072 port:26386 hidx:93 cbid:0 lock:0 last:1002038917 active:1002038917 down:0 del:16 cons:0 cldel:32
         hpfailed:0 hcpsCall:1002038917 hcps [ -17166 -11641 -11636] []
ip:fa30ed82 holds:1078949208 port:26386 hidx:90 cbid:0 lock:0 last:1002031321 active:1002031321 down:0 del:16 cons:0 cldel:32
         hpfailed:0 hcpsCall:1002031114 hcps [ -17166 -11641 -11636] []
ip:fa30ed82 holds:1078945464 port:26386 hidx:77 cbid:0 lock:0 last:1002023314 active:1002023314 down:0 del:16 cons:0 cldel:32
         hpfailed:0 hcpsCall:1002019762 hcps [ -17166 -11641 -11636] []
ip:fa30ed82 holds:1078945176 port:26386 hidx:76 cbid:0 lock:0 last:1002000510 active:1002000510 down:0 del:16 cons:0 cldel:32
         hpfailed:0 hcpsCall:1002000510 hcps [ -17166 -11641 -11636] []
ip:fa30ed82 holds:1078944312 port:26386 hidx:73 cbid:0 lock:0 last:1001992708 active:1001992708 down:0 del:16 cons:0 cldel:32
         hpfailed:0 hcpsCall:1001989754 hcps [ -17166 -11641 -11636] []
ip:fa30ed82 holds:1078944024 port:26386 hidx:72 cbid:0 lock:0 last:1001969904 active:1001969904 down:0 del:16 cons:0 cldel:32
         hpfailed:0 hcpsCall:1001969904 hcps [ -17166 -11641 -11636] []
ip:fa30ed82 holds:1078943448 port:26386 hidx:70 cbid:0 lock:0 last:1001962103 active:1001962103 down:0 del:16 cons:0 cldel:32
         hpfailed:0 hcpsCall:1001962103 hcps [ -17166 -11641 -11636] []
ip:fa30ed82 holds:1078942872 port:26386 hidx:68 cbid:0 lock:0 last:1001954302 active:1001954302 down:0 del:16 cons:0 cldel:32
         hpfailed:0 hcpsCall:1001954302 hcps [ -17166 -11641 -11636] []
ip:fa30ed82 holds:1078938840 port:26386 hidx:54 cbid:0 lock:0 last:1001946498 active:1001946498 down:0 del:16 cons:0 cldel:32
         hpfailed:0 hcpsCall:1001946498 hcps [ -17166 -11641 -11636] []
ip:fa30ed82 holds:1078938552 port:26386 hidx:53 cbid:0 lock:0 last:1001902093 active:1001902093 down:0 del:16 cons:0 cldel:32
         hpfailed:0 hcpsCall:1001902093 hcps [ -17166 -11641 -11636] []
ip:fa30ed82 holds:1078937688 port:26386 hidx:50 cbid:0 lock:0 last:1001894290 active:1001894290 down:0 del:16 cons:0 cldel:32
         hpfailed:0 hcpsCall:1001892490 hcps [ -17166 -11641 -11636] []
ip:fa30ed82 holds:1078936824 port:26386 hidx:47 cbid:0 lock:0 last:1001884689 active:1001884689 down:0 del:16 cons:0 cldel:32
         hpfailed:0 hcpsCall:1001884689 hcps [ -17166 -11641 -11636] []
ip:fa30ed82 holds:1078936248 port:26386 hidx:45 cbid:0 lock:0 last:1001876888 active:1001876888 down:0 del:16 cons:0 cldel:32
         hpfailed:0 hcpsCall:1001876888 hcps [ -17166 -11641 -11636] []
ip:fa30ed82 holds:1078935672 port:26386 hidx:43 cbid:0 lock:0 last:1001869086 active:1001869086 down:0 del:16 cons:0 cldel:32
         hpfailed:0 hcpsCall:1001869086 hcps [ -17166 -11641 -11636] []
ip:fa30ed82 holds:1078929912 port:26386 hidx:23 cbid:0 lock:0 last:1001861283 active:1001861283 down:0 del:16 cons:0 cldel:32
         hpfailed:0 hcpsCall:1001861283 hcps [ -17166 -11641 -11636] []
ip:fa30ed82 holds:1078926456 port:26386 hidx:11 cbid:0 lock:0 last:1001794233 active:1001794233 down:0 del:16 cons:0 cldel:32
         hpfailed:0 hcpsCall:1001793958 hcps [ -17166 -11641 -11636] []
ip:fa30ed82 holds:1078926168 port:26386 hidx:10 cbid:0 lock:0 last:1001748626 active:1001748626 down:0 del:16 cons:0 cldel:32
         hpfailed:0 hcpsCall:1001748626 hcps [ -17166 -11641 -11636] []
ip:fa30ed82 holds:1078923576 port:26386 hidx:1 cbid:0 lock:0 last:1001740825 active:1001740825 down:0 del:16 cons:0 cldel:32
         hpfailed:0 hcpsCall:1001740825 hcps [ -17166 -11641 -11636] []

On the Transarc-server:

aladdin:/usr/afs/local# grep -A 1 fa30ed82 hosts.dump 
ip:fa30ed82 holds:1078104664 port:26386 hidx:32 cbid:8926 lock:0 last:1002100397 active:1002100397 down:0 del:0 cons:0 cldel:32
         hpfailed:0 hcpsCall:1002096261 hcps [ -17166 -11641 -11636] []