| Release Notes | ||
|---|---|---|
| <<< Previous | Next >>> | |
This section explains how to create and mount a volume to house AFS documents. The recommended mount point for the volume is /afs/cellname/afsdoc. If you ran AFS 3.5, the volume possibly already exists. You can choose to overwrite its contents with the AFS 3.6 version of documents, or can create a new volume for the AFS 3.6 documents and mount it at /afs/cellname/afsdoc instead of the volume of AFS 3.5 documents. Alter the following instructions as necessary.
If you wish, you can create a link to the mount point on each client machine's local disk, called /usr/afsdoc. Alternatively, you can create a link to the mount point in each user's home directory. You can also choose to permit users to access only certain documents (most probably, the OpenAFS User Guide) by creating different mount points or setting different ACLs on different document directories.
To create a new volume for storing AFS documents:
Issue the vos create command to create a volume for storing the AFS documentation. Include the -maxquota argument to set an unlimited quota on the volume.
If you wish, you can set the volume's quota to a finite value after you complete the copying operations. At that point, use the vos examine command to determine how much space the volume is occupying. Then issue the fs setquota command to set a quota value that is slightly larger.
% vos create <machine name> <partition name> afsdoc -maxquota 0 |
Issue the fs mkmount command to mount the new volume. If your root.cell volume is replicated, you must precede the cellname with a period to specify the read/write mount point, as shown. Then issue the vos release command to release a new replica of the root.cell volume, and the fs checkvolumes command to force the local Cache Manager to access them.
% fs mkmount -dir /afs/.cellname/afsdoc -vol afsdoc % vos release root.cell % fs checkvolumes |
Issue the fs setacl command to grant the rl permissions to the system:anyuser group on the new directory's ACL.
% cd /afs/.cellname/afsdoc
% fs setacl . system:anyuser rl |
Access the documents via one of the sources listed in Accessing the AFS Binary Distribution and Documentation. Copy the documents in one more formats from a source_format directory into subdirectories of the /afs/cellname/afsdoc directory. Repeat the commands for each format. Suggested substitutions for the format_name variable are "HTML" and "PDF".
# mkdir format_name # cd format_name # cp -rp /cdrom/Documentation/language_code/source_format . |
(Optional) If you believe it is helpful to your users to access AFS documents via a local disk directory, create /usr/afsdoc on the local disk as a symbolic link to the directory housing the desired format (probably HTML or PDF).
# ln -s /afs/cellname/afsdoc/format_name /usr/afsdoc |
| <<< Previous | Home | Next >>> |
| Loading AFS into the Solaris Kernel | Up | Reference Pages |