getting started
[openafs-wiki.git] / GettingStarted.mdwn
1 This page provides information and tips to get started setting up OpenAFS
2 clients and servers.  Read the [OpenAFS documentation](http://docs.openafs.org/)
3 for detailed instructions for installing and configuring OpenAFS.
4
5 [[!toc levels=3]]
6
7 ## Planning ##
8
9 This section outlines some considerations when planning a new OpenAFS
10 installation.
11
12 ### Server planning ###
13
14 An OpenAFS installation requires one or more servers for file storage. These
15 may be physical or virtual machines, running a unix-like operating system, such
16 as Solaris, Linux, *BSD.  Not all the servers for a site need to be running the
17 same architecture and operating system, and it is not uncommon to have a
18 mixture of file servers running different operating systems or versions.  Each
19 file storage servers should have one or more unix filesystem partitions for
20 data and AFS-metadata storage. The files stored in these partitions can only be
21 accessed using a machine running the AFS client software.
22
23 The file server machines must support IPv4 and may have multiple interfaces.
24 By default, OpenAFS will try to use all the non-loopback interfaces available
25 on a file server machine. A configuration can be used to set which addresses
26 are actually reachable by clients. Changing the IP address of a file server
27 requires a restart of the file service process.
28
29 In addition to file servers, OpenAFS provides a specialized lookup service used
30 internally by AFS clients and file servers, called the AFS database servers.
31 The database server processes may be run on the same as hosts as the file
32 servers, however the recommended configuration is to deploy the database
33 service on a set of three dedicated machines.  These hosts may be physical or
34 virtual machines, running a unix-like operating system.  Database servers keep
35 in sync with each other by exchange of network messages, so network reliability
36 between database servers is important.  Each database host must support IPv4
37 and must have one IPv4 address.  Once deployed, it is best to avoid changing
38 the IP address of an AFS database server.
39
40 The AFS database service is a relatively light-weight process, however
41 availability of the hosts running the database service is important to the
42 reliability of the AFS service.
43
44 ### Kerberos requirements ###
45
46 OpenAFS uses Kerberos v5 to authenticate users and processes accessing files in
47 the AFS filesystem, and to authenticate administrators when running
48 AFS administrative commands. This security model avoids trusting the client
49 machines for user authentication, even if a user is becomes 'root' on a client.
50
51 A Kerberos v5 realm needs to be available before setting up OpenAFS.  An
52 existing Kerberos realm can be used or a new realm will need to be setup.
53 Kerberos 5 implementations such as Active Directory, MIT Kerberos V, or Heimdal
54 are commonly used.  A service key will need to be created by the Kerberos
55 administrator for the OpenAFS service.
56
57 OpenAFS includes a deprecated, Kerberos 4 implementation called `kaserver` for
58 compatibility with older versions of AFS.  You may see it mentioned in various
59 older documentatin, how-to guides, and mail list archives, however `kaserver`
60 should not be used in new installations of OpenAFS.
61
62 ### DNS ###
63
64 todo
65
66 ### Time Synchronization ###
67
68 Kerberos requires servers and clients to have good clock synchronization,
69 using `ntp` or some other synchronization mechanism. Be sure ntp is installed
70 and working on every machine to be used as an OpenAFS client or server.
71
72
73 ### Naming considerations ###
74
75 OpenAFS servers are administratively grouped into a collection called a 'cell'.
76 By convention, a cell name matches an internet domain name registered by the
77 organization running the AFS cell. An organization may have multiple cells.
78
79 The naming convention for kerberos realms is to use an internet domain name,
80 but in uppercase. The convention for AFS cell names is to match the kerberos
81 realm name, but the cell name is lower case.  Extra configuration is required
82 if the AFS cell name needs to be different than the kerberos realm name.
83 Changing these names can be challenging, so careful consideration is needed
84 when selecting the kerberos realm and AFS cell names.
85
86
87