Veritas File System 5.0 Administrator's Guide (September 2006)

To enable caching
1
Set the qio_cache_enable parameter of vxtunefs to enable caching on a file
system.
2
Enable the Cached Quick I/O feature for specific files using the qioadmin
command.
Enabling Cached Quick I/O for file systems
Caching is initially disabled on a file system. You enable Cached Quick I/O for a
file system by setting the qio_cache_enable option of the vxtunefs command
after the file system is mounted.
Note: The vxtunefs command enables caching for all the Quick I/O files on the
file system.
The following example enables Cached Quick I/O for the file system /database01.
To enable Cached Quick I/O for a file system
1
Enable Cached Quick I/O:
# vxtunefs -s -o qio_cache_enable=1 /database01
/database01 is a VxFS file system containing the Quick I/O files.
2
If desired, make this setting persistent across mounts by adding a file system
entry in the file /etc/vx/tunefstab:
/dev/vx/dsk/datadg/database01 qio_cache_enable=1
/dev/vx/dsk/datadg/database02 qio_cache_enable=1
See the tunefstab(4) manual page.
Manipulating Cached Quick I/O settings for individual files
A Quick I/O file's Cached Quick I/O settings are manipulated with the vxtunefs
utility and the qioadmin command.
See the vxtunefs(1M) and qioadmin(1) manual pages.
Note: The cache advisories operate only if Cached Quick I/O is enabled for the file
system. If the qio_cache_enable flag is zero, Cached Quick I/O is OFF for all the
files in that file system even if the individual file cache advisory for a file is ON.
193Quick I/O for Databases
Cached Quick I/O for databases