This chapter explains how to investigate and solve some problems you can sometimes encounter when working with AFS files. To use the instructions, find the heading that describes your problem or matches the error message you received.
% tokens
% klog
% fs checkservers &
All servers are running.
These servers unavailable due to network or server problem: list of machines.
Issue the fs whereis command to check if the file you are attempting to access or save is stored on one of the inaccessible file server machines. For complete instructions, see Locating Files and Directories.
% fs whereis <dir/file path>
If your file is stored on an inaccessible machine, then you cannot access the file or save it back to the File Server until the machine is again accessible. If your file is on a machine that is not listed as inaccessible, proceed to Step 3.
% fs listacl <dir/file path>
You need the indicated permissions:
If you do not have the necessary permissions but own the directory, you always have the a (administer) permission even if you do not appear on the ACL. Issue the fs setacl command to grant yourself the necessary permissions. For complete instructions, see Changing an ACL.
% fs setacl -dir <directory>+ -acl <access list entries>+
If you do not have the necessary permissions and do not own the directory, ask the owner or a system administrator to grant them to you. If they add you to a group that has the required permissions, you must issue the klog command to reauthenticate before you can exercise them.
If you still cannot access the file even though you have the necessary permissions, contact your system administrator for help in investigating further possible causes of your problem. If you still cannot copy or save the file even though you have the necessary permissions, proceed to Step 4.
% fs listquota <dir/file path>
The command produces output as in the following example:
% fs listquota /afs/abc.com/usr/terry Volume Name Quota Used % Used Partition user.terry 10000 3400 34% 86%
If the value in the % Used field is not close to 100% (is, say, 90% or less), then it is unlikely that you are exceeding the volume's quota, unless the file is very large or the volume's quota is small. Contact your system administrator for help in investigating further possible causes of your problem.
% fs examine <dir/file path>
If there is enough free space on the partition but you still cannot save the file, ask your system administrator for help in investigating further possible causes of your problem.
% fs setacl -dir <directory> -acl <your_username> all
For directory, provide the complete pathname to the directory (for example, /afs/abc.com/usr/your_username). This is necessary because AFS cannot interpret pathname abbreviations if you do not have the l (lookup) permission.
% fs listacl <dir/file path>
Access list for <dir/file path> is Normal rights list of entries
fs: You don't have the required access rights on 'dir/file path'
Ask the directory's owner or your system administrator to grant you the permissions you need. If they add you to a group that has the required permissions, you must issue the klog command to reauthenticate before you can exercise them.
Issue the fs checkservers command to check the status of file server machines. For complete instructions, see Checking the Status of Server Machines.
% fs checkservers &
All servers are running.
These servers unavailable due to network or server problem: list_of_machines.
Issue the fs checkservers command as described in Error Message: afs: Lost contact with fileserver.
You do not have the ACL permissions you need to perform the operation you are attempting. If you own the directory and have accidentally removed yourself from the ACL, see Problem: Accidentally Removed Your Entry from an ACL. Otherwise, ask the directory's owner or your system administrator to grant you the appropriate permissions.
Follow the instructions in Problem: Cannot Access, Copy, or Save File.