Veritas File System 5.1 SP1 Administrator"s Guide (5900-1499, April 2011)

ON caching state causes the specified file always to be cached, while the OFF
caching state causes the specified file never to be cached.
See the odmadm(1M) manual page.
Note: The cache advisories operate only if Cached ODM is enabled for the file
system. If the odm_cache_enable flag is zero, Cached ODM is OFF for all of the
files in that file system, even if the individual file cache advisory for a file is ON.
To enable unconditional caching on a file
Enable unconditional caching on the file /mnt1/file1:
# odmadm setcachefile /mnt1/file1=on
With this command, ODM caches all reads from file1.
To disable caching on a file
Disable caching on the file /mnt1/file1:
# odmadm setcachefile /mnt1/file1=off
With this command, ODM does not cache reads from file1.
To check on the current cache advisory settings for a file
Check the current cache advisory settings of the files /mnt1/file1 and
/mnt2/file2:
# odmadm getcachefile /mnt1/file1 /mnt2/file2
/mnt1/file1,ON
/mnt2/file2,OFF
To reset all files to the default cache advisory
Reset all files to the default cache advisory:
# odmadm resetcachefiles
Adding Cached ODM settings via the cachemap
You can use the odmadm setcachemap command to configure the cachemap. The
cachemap maps file type and I/O type combinations to caching advisories. ODM
uses the cachemap for all files that have the default conditional cache setting.
Such files are those for which caching has not been turned on or off by the odmadm
setcachefile command.
119Using Veritas Extension for Oracle Disk Manager
Using Cached ODM