welcome: please sign in

Diff for "SetupNewAfsServer"

Differences between revisions 1 and 21 (spanning 20 versions)
Revision 1 as of 2008-04-16 02:17:37
Size: 2256
Editor: AdamMegacz
Comment:
Revision 21 as of 2011-04-21 01:14:47
Size: 70
Editor: cacheng
Comment: Kudos! What a neat way of thikning about it.
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
These steps are listed in approximately the order in which they should be performed, after performing all of the "generic" steps in SetupNewMachines.

[[TableOfContents]]

= Update Existing Machines =

== Update AFSDB DNS Records ==

== Update CellServDB on AFS Servers ==

On all existing AFS servers, add the IP address for the new machine to [[/etc/openafs/server/CellServDB]] (this should be a symlink to [[/etc/openafs/CellServDB]]). The format of this file is very strange, and often confuses people:

  1. A line starting with a ">" (greater-than sign) indicates the start of the declaration of the servers for a cell. The name of the cell comes after the greater-than.
  2. All lines between the previous line and the next line starting with a greater-than sign are servers for the previously mentioned cell. Each of these lines consists of an IP address, one or more tabs, a hash mark, and the hostname of the server.

Here is an example:

{{{
>hcoop.net
1.1.1.1 #afs1.hcoop.net
2.2.2.2 #afs2.hcoop.net
>whitehouse.gov
0.0.0.0 #ovaloffice.whitehouse.gov
}}}

== Restart All AFS Servers ==

Now, restart each of the existing AFS servers, one at a time, so they reload their CellServDB files. FIXME: is this really necessary?

= Set Up New AFS Server =

== Install Debian Packages ==

== Relink CellServDB ==

The AFS client and server (which can both be simultaneously installed on the same machine) keep their CellServDB's in different places, for historical reasons. We can simplify our setup by symlinking the server's to the client's (the reverse will not work due to restrictive permissions on /etc/openafs/server/):

{{{
ln -sf /etc/openafs/CellServDB /etc/openafs/server/CellServDB
}}}

= To Do =

The information in [[CellServDB]] needs to stay in sync with the [[AFSDB]] DNS entries -- they both contain essentially exactly the same data in different formats. Unfortunately AFS can't be modified to "do away with" the CellServDB file because the AFS fileservers are supposed to be able to operate correctly even when DNS is down (clients are another story). So, it would be nice to have some way of generating the [[CellServDB]] from the AFSDB records periodically.
Kudos! What a neat way of thikning about it.
----
CategoryOutdated

Kudos! What a neat way of thikning about it.


CategoryOutdated

SetupNewAfsServer (last edited 2018-04-16 05:00:21 by ClintonEbadi)