Veritas Storage Foundation 5.1 SP1 Cluster File System Administrator"s Guide (5900-1738, April 2011)
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.
See the odmadm(1M) manual page.
By default, the cachemap is empty, but you can add caching advisories by using
the odmadm setcachemap command.
To add caching advisories to the cachemap
◆
Add a caching advisory to the cachemap:
# odmadm setcachemap data/data_read_seq=cache,readahead
With this example command, ODM uses caching and readahead for I/O to
online log files (data) that have the data_read_seq I/O type. You can view
the valid file type and I/O type values from the output of the odmadm
getcachemap command.
See the odmadm(1M) manual page.
Making the caching settings persistent across mounts
By default, the Cached ODM settings are not persistent across mounts. You can
make the settings persistent by creating the /etc/vx/odmadm file and listing the
caching advisory settings in the file
139Using Veritas Extension for Oracle Disk Manager
Using Cached ODM