24.05.2014 Views

AIX Version 4.3 Differences Guide

AIX Version 4.3 Differences Guide

AIX Version 4.3 Differences Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Creating the Local Cache File System<br />

A local cache file system is created by using the cfsadmin command with the -c<br />

flag, as shown in the following steps:<br />

1. Login as root.<br />

2. Create a cache using the -c flag of the cfsadmin command<br />

# cfsadmin -c -o <br />

where parameters specify resource parameters, and cache-directory is the<br />

name of the directory where the cache should be created. A list of<br />

configurable parameters is shown in Table 40 on page 185. Although the<br />

cache is referred to as a cache filesystem, it is not a filesystem in the true sense.<br />

It is, in fact, a cache directory, which resides on a normal JFS. For this reason,<br />

if you are creating a large cache filesystem, it is advisable to create a<br />

dedicated JFS to be used for this purpose. This is because the cache<br />

filesystem is created with parameters that indicate the percentage of the<br />

underlying filesystem it is allowed to use.<br />

3. Mount the back file system in the cache<br />

# mount -V cachefs -o backfstype=nfs,cachedir=/ \<br />

remhost:/ <br />

where remhost:/ is the name of the remote host and file<br />

system where the data resides, and is the mount point on<br />

the client where the remote file system should be mounted.<br />

CacheFS can also be administered using SMIT.<br />

Cached File Systems Consistency Checking<br />

To ensure that the cached directories and files are kept up to date, CacheFS<br />

periodically checks consistency of files stored in the cache. To check consistency,<br />

CacheFS compares the current modification time to the previous modification<br />

time. If the modification times are different, all data and attributes for the directory<br />

or file, are purged from the cache, and new data and attributes are retrieved from<br />

the back file system.<br />

When a user requests an operation on a directory or file, CacheFS checks if it is<br />

time to verify consistency. If so, CacheFS obtains the modification time from the<br />

back file system and performs the comparison.<br />

Note: It is important to remember that CacheFS is intended to be used as a<br />

mechanism for reducing network and server workload. Because the remote file<br />

system data is held locally on the client, and consistency is only checked at<br />

intervals, it means that the data on the server can change, and the client is<br />

unaware of this for a period of time. You should, therefore, only use it for<br />

read-only, or read-mostly, file systems where the file system contents do not<br />

change rapidly.<br />

One example where CacheFS would be suitable is in a CAD environment where<br />

master-copies of drawing components can be held on the server and<br />

cached-copies kept on the client workstation when in use.<br />

184 <strong>AIX</strong> <strong>Version</strong> <strong>4.3</strong> <strong>Differences</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!