Administration Guide
![[Index]](../index.gif)
Figures
Tables
About This Guide
An Overview of AFS Administration
Issues in Cell Configuration and Administration
Differences between AFS and UNIX: A SummaryDifferences in File and Directory ProtectionDifferences in AuthenticationDifferences in the Semantics of Standard UNIX CommandsThe AFS version of the fsck CommandCreating Hard LinksAFS Implements Save on CloseSetuid ProgramsChoosing a Cell NameHow to Set the Cell NameWhy Choosing the Appropriate Cell Name is ImportantParticipating in the AFS Global NamespaceWhat the Global Namespace Looks LikeMaking Your Cell Visible to OthersMaking Other Cells Visible in Your CellGranting and Denying Foreign Users Access to Your CellConfiguring Your AFS FilespaceThe Top /afs LevelThe Second (Cellname) LevelThe Third LevelCreating Volumes to Simplify AdministrationAssigning Volume NamesGrouping Related Volumes on a PartitionWhen to Replicate VolumesThe Default Quota and ACL on a New VolumeConfiguring Server MachinesReplicating the AFS Administrative DatabasesAFS Files on the Local DiskConfiguring Partitions to Store AFS DataMonitoring, Rebooting and Automatic Process RestartsConfiguring Client MachinesConfiguring the Local DiskEnabling Access to Foreign CellsUsing the @sys Variable in PathnamesSetting Server PreferencesConfiguring AFS User AccountsChoosing Usernames and Naming Other Account ComponentsGrouping Home DirectoriesMaking a Backup Version of User Volumes AvailableCreating Standard Files in New AFS AccountsUsing AFS Protection GroupsThe Three System GroupsThe Two Types of User-Defined GroupsLogin and Authentication in AFSIdentifying AFS Tokens by PAGUsing an AFS-modified login UtilityUsing Two-Step Login and AuthenticationObtaining, Displaying, and Discarding TokensSetting Default Token Lifetimes for UsersChanging PasswordsImposing Restrictions on Passwords and Authentication AttemptsSupport for Kerberos AuthenticationSecurity and Authorization in AFSSome Important Security FeaturesThree Types of PrivilegeAuthorization Checking versus AuthenticationImproving Security in Your CellA More Detailed Look at Mutual AuthenticationBacking Up AFS DataBackup VolumesThe AFS Backup SystemUsing UNIX Remote Services in the AFS EnvironmentAccessing AFS through NFSAdministering Server Machines
Summary of InstructionsLocal Disk Files on a Server MachineBinaries in the /usr/afs/bin DirectoryCommon Configuration Files in the /usr/afs/etc DirectoryLocal Configuration Files in the /usr/afs/local DirectoryReplicated Database Files in the /usr/afs/db DirectoryLog Files in the /usr/afs/logs DirectoryVolume Headers on Server PartitionsThe Four Roles for File Server MachinesSimple File Server MachinesDatabase Server MachinesBinary Distribution MachinesThe System Control MachineTo locate database server machinesTo locate the system control machineTo locate the binary distribution machine for a system typeInterpreting the Output from the bos status CommandAdministering Database Server MachinesReplicating the AFS Administrative DatabasesBacking Up and Restoring the Administrative DatabasesTo back up the administrative databasesTo restore an administrative databaseInstalling Server Process SoftwareInstalling New BinariesTo install new server binariesReverting to the Previous Version of BinariesTo revert to the previous version of binariesDisplaying Binary Version DatesTo display binary version datesRemoving Obsolete Binary FilesTo remove obsolete binariesDisplaying A Binary File's Build LevelTo display an AFS binary's build levelMaintaining the Server CellServDB FileDistributing the Server CellServDB FileTo display a cell's database server machinesTo add a database server machine to the CellServDB fileTo remove a database server machine from the CellServDB fileManaging Authentication and Authorization RequirementsAuthentication versus AuthorizationControlling Authorization Checking on a Server MachineTo disable authorization checking on a server machineTo enable authorization checking on a server machineBypassing Mutual Authentication for an Individual CommandTo bypass mutual authentication for bos, kas, pts, and vos commandsTo bypass mutual authentication for fs commandsAdding or Removing Disks and PartitionsTo add and mount a new disk to house AFS volumesTo unmount and remove a disk housing AFS volumesManaging Server IP Addresses and VLDB Server EntriesTo create or edit the server NetInfo fileTo create or edit the server NetRestrict fileTo display all server entries from the VLDBTo remove obsolete server entries from the VLDBTo change a server machine's IP addressesRebooting a Server MachineTo reboot a file server machine from its consoleTo reboot a file server machine remotelyMonitoring and Controlling Server Processes
Summary of InstructionsBrief Descriptions of the AFS Server ProcessesThe bosserver Process: the Basic OverSeer ServerThe buserver Process: the Backup ServerThe fs Collection of Processes: the File Server, Volume Server and SalvagerThe kaserver Process: the Authentication ServerThe ptserver Process: the Protection ServerThe runntp ProcessThe upserver and upclient Processes: the Update ServerThe vlserver Process: the Volume Location ServerControlling and Checking Process StatusThe Information in the BosConfig FileHow the BOS Server Uses the Information in the BosConfig FileAbout Starting and Stopping the Database Server ProcessesAbout Starting and Stopping the Update ServerDisplaying Process Status and Information from the BosConfig FileTo display the status of server processes and their BosConfig entriesCreating and Removing ProcessesTo create and start a new processTo stop a process and remove it from the BosConfig fileStopping and Starting Processes PermanentlyTo stop a process by changing its status to NotRunTo start processes by changing their status flags to RunStopping and Starting Processes TemporarilyTo stop processes temporarilyTo start all stopped processes that have status flag Run in the BosConfig fileTo start specific processesStopping and Immediately Restarting ProcessesTo stop and restart all processes including the BOS ServerTo stop and immediately restart all processes except the BOS ServerTo stop and immediately restart specific processesSetting the BOS Server's Restart TimesTo display the BOS Server restart timesTo set the general or binary restart timeDisplaying Server Process Log FilesTo examine a server process log fileManaging Volumes
Summary of InstructionsAbout VolumesThe Three Types of VolumesHow Volumes Improve AFS EfficiencyVolume Information in the VLDBThe Information in Volume HeadersKeeping the VLDB and Volume Headers SynchronizedAbout Mounting VolumesAbout Volume NamesCreating Read/write VolumesTo create (and mount) a read/write volumeAbout Clones and CloningReplicating Volumes (Creating Read-only Volumes)Using Read-only Volumes EffectivelyReplication ScenariosTo replicate a read/write volume (create a read-only volume)Creating Backup VolumesBacking Up Multiple Volumes at OnceAutomating Creation of Backup VolumesMaking the Contents of Backup Volumes Available to UsersTo create and mount a backup volumeTo create multiple backup volumes at onceMounting VolumesThe Rules of Mount Point TraversalThe Three Types of Mount PointsCreating a mount point in a foreign cellTo display a mount pointTo create a regular or read/write mount pointTo create a cellular mount pointTo remove a mount pointDisplaying Information About VolumesDisplaying VLDB EntriesTo display VLDB entriesDisplaying Volume HeadersTo display volume headersDisplaying One Volume's VLDB Entry and Volume HeaderTo display one volume's VLDB entry and volume headerDisplaying the Name or Location of the Volume that Contains a FileMoving VolumesTo move a read/write volumeSynchronizing the VLDB and Volume HeadersTo synchronize the VLDB with volume headersSalvaging VolumesTo salvage volumesSetting and Displaying Volume Quota and Current SizeTo set quota for a single volumeTo set maximum quota on one or more volumesTo display percent quota usedTo display quota, current size, and other informationTo display quota, current size, and more partition informationRemoving Volumes and their Mount PointsOther Removal CommandsTo remove a volume and unmount itDumping and Restoring VolumesAbout Dumping VolumesTo dump a volumeAbout Restoring VolumesTo restore a dump into a new volume and mount itTo restore a dump file, overwriting an existing volumeRenaming VolumesTo rename a volumeUnlocking and Locking VLDB EntriesTo lock a VLDB entryTo unlock a single VLDB entryTo unlock multiple VLDB entriesConfiguring the AFS Backup System
Summary of InstructionsIntroduction to Backup System FeaturesVolume Sets and Volume EntriesDumps and Dump SetsDump Hierarchies, Dump Levels and Expiration DatesDump Names and Tape NamesTape Labels, Dump Labels, and EOF MarkersTape Coordinator Machines, Port Offsets, and Backup Data FilesThe Backup Database and Backup Server ProcessInterfaces to the Backup SystemOverview of Backup System ConfigurationConfiguring the tapeconfig FileTo run the fms command on a noncompressing tape deviceGranting Administrative Privilege to Backup OperatorsConfiguring Tape Coordinator Machines and Tape DevicesTo configure a Tape Coordinator machineTo configure an additional Tape Coordinator on an existing Tape Coordinator machineTo unconfigure a Tape CoordinatorTo display the list of configured Tape CoordinatorsDefining and Displaying Volume Sets and Volume EntriesTo create a volume setTo add a volume entry to a volume setTo display volume sets and volume entriesTo delete a volume setTo delete a volume entry from a volume setDefining and Displaying the Dump HierarchyCreating a Tape Recycling ScheduleArchiving TapesDefining Expiration DatesTo add a dump level to the dump hierarchyTo change a dump level's expiration dateTo delete a dump level from the dump hierarchyTo display the dump hierarchyWriting and Reading Tape LabelsRecording a Name on the LabelRecording a Capacity on the LabelTo label a tapeTo read the label on a tapeAutomating and Increasing the Efficiency of the Backup ProcessCreating a Device Configuration FileInvoking a Device's Tape Mounting and Unmounting RoutinesEliminating the Search or Prompt for the Initial TapeEnabling Default Responses to Error ConditionsEliminating the AFS Tape Name CheckSetting the Memory Buffer Size to Promote Tape StreamingDumping Data to a Backup Data FileTo configure a backup data fileBacking Up and Restoring AFS Data
Summary of InstructionsUsing the Backup System's InterfacesPerforming Backup Operations as the Local Superuser Root or in a Foreign CellUsing Interactive and Regular Command ModeTo enter interactive modeTo exit interactive modeTo display pending or running jobs in interactive modeTo cancel operations in interactive modeStarting and Stopping the Tape Coordinator ProcessTo start a Tape Coordinator processTo stop a Tape Coordinator processTo check the status of a Tape Coordinator processBacking Up DataMaking Backup Operations More EfficientHow Your Configuration Choices Influence the Dump ProcessAppending Dumps to an Existing Dump SetScheduling DumpsTo create a dumpDisplaying Backup Dump RecordsTo display dump recordsTo display a volume's dump historyTo scan the contents of a tapeRestoring and Recovering DataMaking Restore Operations More EfficientUsing the backup volrestore CommandTo restore volumes with the backup volrestore commandUsing the backup diskrestore CommandTo restore a partition with the backup diskrestore commandUsing the backup volsetrestore CommandTo restore a group of volumes with the backup volsetrestore commandMaintaining the Backup DatabaseBacking Up and Restoring the Backup DatabaseChecking for and Repairing Corruption in the Backup DatabaseTo verify the integrity of the Backup DatabaseTo repair corruption in the Backup DatabaseRemoving Obsolete Records from the Backup DatabaseTo delete dump records from the Backup DatabaseMonitoring and Auditing AFS Performance
Summary of InstructionsUsing the scout ProgramSystem RequirementsUsing the -basename argument to Specify a Domain NameThe Layout of the scout DisplayHighlighting Significant StatisticsResizing the scout DisplayTo start the scout programTo stop the scout programExample Commands and DisplaysUsing the fstrace Command SuiteAbout the fstrace Command SuiteRequirements for Using the fstrace Command SuiteUsing fstrace Commands EffectivelyActivating the Trace LogTo configure the trace logTo set the event setDisplaying the State of a Trace Log or Event SetTo display the state of an event setTo display the log sizeDumping and Clearing the Trace LogTo dump the contents of a trace logTo clear the contents of a trace logExamples of fstrace CommandsUsing the afsmonitor ProgramRequirements for running the afsmonitor programThe afsmonitor Output ScreensThe System Overview ScreenThe File Servers ScreenThe Cache Managers ScreenConfiguring the afsmonitor ProgramWriting afsmonitor Statistics to a FileTo start the afsmonitor ProgramTo stop the afsmonitor programThe xstat Data Collection FacilityThe libxstat LibrariesExample xstat CommandsAuditing AFS Events on AIX File ServersConfiguring AFS Auditing on AIX File ServersTo enable AFS auditingTo disable AFS auditingManaging Server Encryption Keys
Summary of InstructionsAbout Server Encryption KeysKeys and Mutual Authentication: A ReviewMaintaining AFS Server Encryption KeysDisplaying Server Encryption KeysTo display the KeyFile fileTo display the afs key from the Authentication DatabaseAdding Server Encryption KeysTo add a new server encryption keyRemoving Server Encryption KeysTo remove a key from the KeyFile fileHandling Server Encryption Key EmergenciesPrevent Mutual AuthenticationDisable Authorization Checking by HandWork Quickly on Each MachineWork at the ConsoleChange Individual KeyFile FilesTwo Component ProceduresTo create a new server encryption key in emergenciesAdministering Client Machines and the Cache Manager
Summary of InstructionsOverview of Cache Manager CustomizationConfiguration and Cache-Related Files on the Local DiskConfiguration Files in the /usr/vice/etc DirectoryCache-Related FilesDetermining the Cache Type, Size, and LocationChoosing the Cache SizeDisplaying and Setting the Cache Size and LocationTo display the cache size set at rebootTo display the current cache sizeTo edit the cacheinfo fileTo change the disk cache size without rebootingTo reset the disk cache size to the default without rebootingHow the Cache Manager Chooses Data to DiscardSetting Other Cache Parameters with the afsd programSetting Cache Configuration ParametersConfiguring a Disk CacheControlling Memory Cache ConfigurationMaintaining Knowledge of Database Server MachinesHow Clients Use the List of Database Server MachinesThe Format of the CellServDB fileMaintaining the Client CellServDB FileTo display the /usr/vice/etc/CellServDB fileTo display the list of database server machines in kernel memoryTo change the list of a cell's database server machines in kernel memoryDetermining if a Client Can Run Setuid ProgramsTo determine a cell's setuid statusTo change a cell's setuid statusSetting the File Server Probe IntervalTo set a client's file server probe intervalSetting a Client Machine's Cell MembershipTo display a client machine's cell membershipTo set a client machine's cell membershipForcing the Update of Cached DataTo flush certain files or directoriesTo flush all data from a volumeTo force the Cache Manager to notice other volume changesTo flush one or more mount pointsMaintaining Server Preference RanksHow the Cache Manager Sets Default RanksHow the Cache Manager Uses Preference RanksDisplaying and Setting Preference RanksTo display server preference ranksTo set server preference ranksManaging Multihomed Client MachinesTo create or edit the client NetInfo fileTo create or edit the client NetRestrict fileTo display the list of addresses from kernel memoryTo set the list of addresses in kernel memoryControlling the Display of Warning and Informational MessagesTo control the display of warning and status messagesDisplaying and Setting the System Type NameTo display the system type nameTo change the system type nameEnabling Asynchronous WritesTo set the default store asynchronyTo set the store asynchrony for one or more filesTo display the default store asynchronyTo display the store asynchrony for one or more filesConfiguring Client Machines with the package Program
Summary of InstructionsUsing the package ProgramUsing Package on File Server MachinesPackage OverviewPreparing Prototype FilesCompiling Prototype FilesPreparing ClientsThe package Directory StructureThe src directoryThe lib directoryThe etc directoryExample Prototype and Library FilesAn Example Prototype FileExample Library FilePackage Configuration File Instruction SyntaxLocal Files versus Symbolic LinksDefining a DirectoryDefining a FileDefining a Symbolic LinkDefining a Block Special DeviceDefining a Character Special DeviceDefining a SocketConstructing Prototype and Library FilesTo construct a prototype file and its component library filesThe Package Makefile FileOverviewThe CONFIG SectionThe BASE_LIBS SectionThe MACHINE_LIBS SectionThe LIBS SectionThe .SUFFIXES SectionThe Makefile Instructions SectionModifying the MakefileAdding a New Prototype FileAdding a New System TypeAdding New Library FilesCompiling Prototype FilesTo compile prototype filesModifying Client MachinesTo prepare a client machine to run the package programRunning the package programTo invoke the package program by rebootingTo invoke the package program directly (without rebooting)Creating and Deleting User Accounts with the uss Command Suite
Summary of InstructionsOverview of the uss Command SuiteThe Components of an AFS User AccountPrivilege Requirements for the uss CommandsAvoiding and Recovering from Errors and Interrupted OperationsCreating Local Password File Entries with ussAssigning AFS and UNIX UIDs that MatchSpecifying Passwords in the Local Password FileCreating a Common Source Password FileConverting Existing UNIX Accounts with ussMaking UNIX and AFS UIDs MatchSetting the Password Field AppropriatelyMoving Local Files into AFSConstructing a uss Template FileCreating the Three Types of User AccountsUsing Constants and Variables in the Template FileWhere to Place Template FilesSome General Rules for Constructing a TemplateAbout Creating Local Disk Directories and FilesExample uss TemplatesEvenly Distributing User Home Directories with the G InstructionCreating a Volume with the V InstructionCreating a Directory with the D InstructionCreating a File from a Prototype with the F InstructionCreating One-Line Files with the E InstructionCreating Links with the L and S InstructionsIncreasing Account Security with the A InstructionExecuting Commands with the X InstructionCreating Individual Accounts with the uss add CommandTo create an AFS account with the uss add commandDeleting Individual Accounts with the uss delete CommandTo delete an AFS accountCreating and Deleting Multiple Accounts with the uss bulk CommandConstructing a Bulk Input FileExample Bulk Input File InstructionsTo create and delete multiple AFS user accountsAdministering User Accounts
Summary of InstructionsThe Components of an AFS User AccountCreating Local Password File EntriesAssigning AFS and UNIX UIDs that MatchSpecifying Passwords in the Local Password FileConverting Existing UNIX AccountsMaking UNIX and AFS UIDs MatchSetting the Password Field AppropriatelyMoving Local Files into AFSCreating AFS User AccountsTo create one user account with individual commandsImproving Password and Authentication SecurityTo limit the number of consecutive failed authentication attemptsTo unlock a locked user accountTo set password lifetimeTo prohibit reuse of passwordsChanging AFS PasswordsTo change an AFS passwordDisplaying and Setting the Quota on User VolumesChanging UsernamesTo change a usernameRemoving a User AccountTo remove a user accountAdministering the Protection Database
Summary of InstructionsAbout the Protection DatabaseThe System GroupsDisplaying Information from the Protection DatabaseTo display a Protection Database entryTo display group membershipTo list the groups that a user or group ownsTo display all Protection Database entriesCreating User and Machine EntriesTo create machine entries in the Protection DatabaseCreating GroupsUsing Groups EffectivelyTo create groupsTo create a self-owned groupUsing Prefix-Less GroupsAdding and Removing Group MembersTo add users and machines to groupsTo remove users and machines from groupsDeleting Protection Database EntriesTo delete Protection Database entriesChanging a Group's OwnerTo change a group's ownerChanging a Protection Database Entry's NameTo change the name of a machine or group entrySetting Group-Creation QuotaTo set group-creation quotaSetting the Privacy Flags on Database EntriesTo set a Protection Database entry's privacy flagsDisplaying and Setting the AFS UID and GID CountersTo display the AFS ID countersTo set the AFS ID countersManaging Access Control Lists
Summary of InstructionsProtecting Data in AFSDifferences Between UFS and AFS Data ProtectionThe AFS ACL PermissionsUsing Normal and Negative PermissionsUsing Groups on ACLsDisplaying ACLsTo display an ACLSetting ACL EntriesTo add, remove, or edit normal ACL permissionsTo add, remove, or edit negative ACL permissionsCompletely Replacing an ACLTo replace an ACL completelyCopying ACLs Between DirectoriesTo copy an ACL between directoriesRemoving Obsolete AFS IDs from ACLsTo clean obsolete AFS IDs from an ACLHow AFS Interprets the UNIX Mode BitsManaging Administrative Privilege
Summary of InstructionsAn Overview of Administrative PrivilegeThe Reason for Separate PrivilegesAdministering the system:administrators GroupTo display the members of the system:administrators groupTo add users to the system:administrators groupTo remove users from the system:administrators groupGranting Privilege for kas Commands: the ADMIN FlagTo check if the ADMIN flag is setTo set or remove the ADMIN flagAdministering the UserList FileTo display the users in the UserList fileTo add users to the UserList fileTo remove users from the UserList fileAppendix A. Managing the NFS/AFS Translator
Summary of InstructionsOverviewEnabling Unauthenticated or Authenticated AFS AccessSetting the AFSSERVER and AFSCONF Environment VariablesDelayed Writes for Files Saved on NFS Client MachinesConfiguring NFS/AFS Translator MachinesLoading NFS and AFS Kernel ExtensionsConfiguring the Translator Machine to Accept AFS CommandsControlling Optional Translator FeaturesTo configure an NFS/AFS translator machineTo disable or enable Translator functionality, or set optional featuresConfiguring NFS Client MachinesTo configure an NFS client machine to access AFSConfiguring User AccountsTo configure a user account for issuing AFS commandsAuthenticating on Unsupported NFS Client MachinesTo authenticate using the knfs commandTo display tokens using the knfs commandTo discard tokens using the knfs commandAppendix B. Using AFS Commands
AFS Command SyntaxCommand NamesOptionsArgumentsFlagsAn Example CommandRules for Entering AFS CommandsRules for Using Abbreviations and AliasesDisplaying Online Help for AFS CommandsAppendix C. The afsmonitor Program Statistics
The Cache Manager StatisticsPerformance Statistics Section (PerfStats_section)Server Up/Down Statistics Section (Server_UpDown_section)RPC Operation Measurements Section (RPCop_section)Authentication and Replicated File Access Section (Auth_Access_section)The File Server StatisticsPerformance Statistics Section (PerfStats_section)RPC Operations Section (RPCop_section)Appendix D. AIX Audit Events
IntroductionAudit-Specific EventsVolume Server EventsBackup Server EventsProtection Server EventsAuthentication EventsFile Server and Cache Manager Interface EventsBOS Server EventsVolume Location Server EventsIndex
![[Index]](../index.gif)
© IBM Corporation 2000. All Rights Reserved