Chapter 10. Administering Client Machines and the Cache Manager

Table of Contents

Summary of Instructions
Overview of Cache Manager Customization
Configuration and Cache-Related Files on the Local Disk
Configuration Files in the /usr/vice/etc Directory
Cache-Related Files
Determining the Cache Type, Size, and Location
Choosing the Cache Size
Displaying and Setting the Cache Size and Location
To display the cache size set at reboot
To display the current cache size
To edit the cacheinfo file
To change the disk cache size without rebooting
To reset the disk cache size to the default without rebooting
How the Cache Manager Chooses Data to Discard
Setting Other Cache Parameters with the afsd program
Setting Cache Configuration Parameters
Configuring a Disk Cache
Controlling Memory Cache Configuration
Tuning Cache Configuration
Maintaining Knowledge of Database Server Machines
How Clients Use the List of Database Server Machines
The Format of the CellServDB file
Maintaining the Client CellServDB File
To display the /usr/vice/etc/CellServDB file
To display the list of database server machines in kernel memory
To change the list of a cell's database server machines in kernel memory
Determining if a Client Can Run Setuid Programs
To determine a cell's setuid status
To change a cell's setuid status
Setting the File Server Probe Interval
To set a client's file server probe interval
Setting a Client Machine's Cell Membership
To display a client machine's cell membership
To set a client machine's cell membership
Forcing the Update of Cached Data
To flush certain files or directories
To flush all data from a volume
To force the Cache Manager to notice other volume changes
To flush one or more mount points
Maintaining Server Preference Ranks
How the Cache Manager Sets Default Ranks
How the Cache Manager Uses Preference Ranks
Displaying and Setting Preference Ranks
To display server preference ranks
To set server preference ranks
Managing Multihomed Client Machines
To create or edit the client NetInfo file
To create or edit the client NetRestrict file
To display the list of addresses from kernel memory
To set the list of addresses in kernel memory
Controlling the Display of Warning and Informational Messages
To control the display of warning and status messages
Displaying and Setting the System Type Name
To display the system type name
To change the system type name
Enabling Asynchronous Writes
To set the default store asynchrony
To set the store asynchrony for one or more files
To display the default store asynchrony
To display the store asynchrony for one or more files

This chapter describes how to administer an AFS client machine, which is any machine from which users can access the AFS filespace and communicate with AFS server processes. (A client machine can simultaneously function as an AFS server machine if appropriately configured.) An AFS client machine has the following characteristics:

To learn how to install the client functionality on a machine, see the OpenAFS Quick Beginnings.

Summary of Instructions

This chapter explains how to perform the following tasks by using the indicated commands:

Display cache size set at rebootcat /usr/vice/etc/cacheinfo
Display current cache size and usagefs getcacheparms
Change disk cache size without rebootingfs setcachesize
Initialize Cache Managerafsd
Display contents of CellServDB filecat /usr/vice/etc/CellServDB
Display list of database server machines from kernel memoryfs listcells
Change list of database server machines in kernel memoryfs newcell
Check cell's status regarding setuidfs getcellstatus
Set cell's status regarding setuidfs setcell
Set server probe intervalfs checkservers -interval
Display machine's cell membershipcat /usr/vice/etc/ThisCell
Change machine's cell membershipEdit /usr/vice/etc/ThisCell
Flush cached file/directoryfs flush
Flush everything cached from a volumefs flushvolume
Update volume-to-mount-point mappingsfs checkvolumes
Display Cache Manager's server preference ranksfs getserverprefs
Set Cache Manager's server preference ranksfs setserverprefs
Display client machine addresses to registerfs getclientaddrs
Set client machine addresses to registerfs setclientaddrs
Control the display of warning and status messagesfs messages
Display and change machine's system typefs sysname
Enable asynchronous writesfs storebehind