University Systems --> WAM --> Troubleshooting Errors on your WAM Account --> Removing Leftover AFS locks in Wam -->

Removing Leftover AFS locks in Wam

Another type of lock file which could interfere with mail being read are leftover AFS locks. AFS stands for the Andrew File System, which is the file/directory security used on the WAM and Glue systems. Sometimes AFS locks are not removed correctly, and they may still be laying around after a mail session has concluded.

To check if there are any lock files

  1. Type cd /mail/$user and hit Enter.
  2. Type ls -al and Hit Enter. You might see a listing of the AFS Lock files.

    Some AFS lock file examples:

            .__afs1594
            .__afs4781
            .__afsA0D4
       
    

    Note: Those are two underscore characters ("_") between the period and the "afs" parts of the filename.

    These lock files contain only 4-5 bytes, which is the PID of the process which created them. This will only matter if the process is from the same day (on WAM and standard Glue), as the RACs and y.glue and z.glue reboot nightly. If the files are NOT from the current date, they can be removed safely:

  3. To remove then type
            rm  .__afs1594
       
    

    To get rid of a group of such files, you can use the "*" wildcard, like:

            rm  .__afs*
       
    
How do I:
How are we doing? Comments on this page?
Office of Information Technology
Office of Information Technology Help Desk Web Site University of Maryland Web Site Office of Information Technology Web Site