![]() |
![]() |
| ||||||||||||||||||||||||||||||||||||||
Example--Checking the Integrity of CacheFS File SystemsThe following example shows how to check the file systems cached in the /local/mycache cache.
Packing a Cached File System (Task Map)The following task map describes the procedures that are associated with packing a CacheFS file system. All of these procedures are optional.
Packing a CacheFS File SystemFor general use, the CacheFS software operates automatically after it is set up, without requiring any action from the user. Files are cached on a most recently used basis. With the packing feature, you can take a more active role in managing your cache by ensuring that certain files or directories are always updated in the cache. You can specify files and directories to be loaded in the cache with the cachefspack command. This command ensures that current copies of these files are available in the cache. The packing list contains the names of specific files and directories. The packing list can also contain other packing lists. This feature saves you having to specify individual files and directories when you have many items to pack in your cache. You can print out a brief help summary of all the cachefspack options by using the -h option as follows:
How to Pack Files in the CachePack files in the cache by using the cachefspack command.
Examples--Packing Files in the CacheThe following example shows the projects file being packed in the cache.
The following example shows three files being packed in the cache.
The following example shows a directory being packed in the cache.
How to Display Packed Files InformationDisplay packed files information by using the cachefspack -i command.
Example--Displaying Packed Files InformationThe following example shows that the doc_file file is successfully packed.
In the following example, the /data/abc directory contains the bin subdirectory. The bin subdirectory has three files: big, medium, and small. Although the big and small files are specified to be packed, they are not. The medium file is successfully packed.
If you use the -iv options together, you get additional information as to whether the file or directory specified has been flushed from the cache. For example:
The last line of the preceding example shows that the directory contents have not been flushed from the cache. Using Packing ListsOne feature of the cachefspack command is the ability to create packing lists. A packing list contains files or directories to be packed in the cache. If a directory is in the packing list, all of its subdirectories and files will also be packed. This feature saves the time of having to specify each individual file that you want packed in the cache. How to Create a Packing ListTo create a packing list, open a file by using vi or the editor of your choice. The packing list file format uses the same format as the filesync command. For more information, see filesync(1). Two packing list features are the following:
For more information on using these features, see cachefspack(1M). | ||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||