System Administration Guide: Devices and File Systems

ProcedureHow to Check the Integrity of a CacheFS File System

Use the fsck command to check the integrity of CacheFS file systems. The CacheFS version of the fsck command automatically corrects problems without requiring user interaction. You should not need to run the fsck command manually for CacheFS file systems because the fsck command is run automatically at boot time or when the file system is mounted. If you want to manually check the integrity, you can use the following procedure.

For more information, see fsck_cachefs(1M).

  1. Become superuser on the client system.

  2. Check the file systems in the specified cache.

    # fsck -F cachefs [-m -o noclean] /cache-directory

    Causes the fsck command to check a CacheFS file system without making any repairs.

    -o noclean

    Forces a check on the CacheFS file systems only. Does not make any repairs.


    Indicates the name of the directory where the cache resides.

Example 19–7 Checking the Integrity of CacheFS File Systems

The following example shows how to check the file systems cached in the /local/mycache cache.

# fsck -F cachefs /local/mycache