update gerrit list
[openafs-wiki.git] / reguser / OpenAFSDBServers.mdwn
1 In this section we will cover adding more database
2 servers so afsdb1 is not a single point of failure.
3
4
5 First, add the new hosts to afsdb1:
6     ssh afsdb1
7     
8     bos listhosts afsdb1
9     bos addhost afsdb1 afsdb2.classroom.sinenomine.net -localauth
10     bos addhost afsdb1 afsdb3.classroom.sinenomine.net -localauth
11     bos listhosts afsdb1
12     cat /usr/afs/etc/CellServDB
13
14 Then, restart the server and then check the logs:
15     service openafs-server restart
16
17     cat /usr/afs/logs/PtLog
18     cat /usr/afs/logs/VLLog
19     cat /usr/afs/logs/BosLog
20
21 Now configure the new hosts, afsdb2 and afsdb3 using the steps :
22     ssh afsdb2
23     
24     scp afsdb1:/usr/afs/etc/* /usr/afs/etc/
25     ls /usr/afs/etc/
26     cat /usr/afs/etc/CellServDB
27
28     service openafs-server start
29
30     bos create afsdb2 ptserver simple /usr/afs/bin/ptserver -localauth
31     bos create afsdb2 vlserver simple /usr/afs/bin/vlserver -localauth
32     bos status afsdb2 -long
33     
34     cat /usr/afs/logs/BosLog
35     cat /usr/afs/logs/VLLog
36     cat /usr/afs/logs/PtLog
37
38 As the name says, udebug returns information important to finding and debugging an error. Now run the udebug command for each of the hosts:
39     udebug -server afsdb1 -port 7003
40     udebug afsdb2 7003
41     udebug afsdb3 7003
42
43 A command used to find a client or server over a network is rxdebug:
44     rxdebug <hostname> <port>
45
46 Sine Nomine Associates Nov 2017