update gerrit list
[openafs-wiki.git] / admin / ConfiguringServerVolumesonLinux.mdwn
1 Every AFS file server machine must have at least one partition or logical volume dedicated to storing AFS volumes. Each server partition is mounted at a directory named /vicepxx, where xx is one or two lowercase letters. The /vicepxx directories must reside in the file server machine's root directory, not in one of its subdirectories (for example, /usr/vicepa is not an acceptable directory location). For additional information, see Performing Platform-Specific Procedures.
2
3 1. Create a directory called /vicepxx for each AFS server partition you are configuring (there must be at least one). Repeat the command for each partition.
4
5        # mkdir /vicepxx
6
7 1. Add a line with the following format to the file systems registry file, /etc/fstab, for each directory just created. The entry maps the directory name to the disk partition to be mounted on it.
8
9        /dev/disk  /vicepxx  ext2  defaults  0  2
10
11 The following is an example for the first partition being configured.
12
13        /dev/sda8 /vicepa ext2 defaults 0 2
14
15 1. Create a file system on each partition that is to be mounted at a /vicepxx directory. The following command is probably appropriate, but consult the Linux documentation for more information.
16
17        # mkfs -v /dev/disk
18
19 1. Mount each partition by issuing either the mount -a command to mount all partitions at once or the mount command to mount each partition in turn.