InfoScale™ 9.0 SmartIO for Solid-State Drives Solutions Guide - Solaris
- Introducing SFHA Solutions SmartIO
- Using the SmartIO feature: use cases
- About SmartIO read caching for applications running on VxVM volumes
- About SmartIO read caching for applications running on VxFS file systems
- About SmartIO caching on SSD devices exported by FSS
- About SmartIO write-back caching for applications running on VxFS file systems
- About multiple SmartIO cache areas for read and write-back caching on VxFS file systems
- About SmartIO caching for Oracle databases on VxFS file systems
- About SmartIO caching for databases on VxVM volumes
- Administering SmartIO
- Enabling or disabling caching for a data object
- Viewing the SmartIO cache statistics
- Troubleshooting and error handling
- Appendix A. Command reference
Setting or changing the caching mode for a VxFS cache area
For a VxFS cache area, the caching mode determines what kind of caching is performed for the specified mount point. The mode can be nocache, read, or writeback. The default mode is read.
A VxVM cache area only supports read mode.
You cannot change the type (VxVM or VxFS) of a cache area. You must destroy the cache area and create a new cache area of the required type.
You can set the caching mode of a VxFS mount point with the -o smartiomode option. The caching mode that is set with the mount command represents the highest level of caching that can be enabled for objects on the mount point. If you specify nocache mode, the SmartIO caching is disabled for the mount point. You cannot enable SmartIO caching for any data objects in that mount point. You must remount the file system to enable caching.
Similarly, if you specify read mode during the mount, you cannot enable SmartIO writeback caching for any data objects in that mount point.
To set the caching mode of a VxFS mount point
- To set the caching mode when you mount the VxFS file system, use the following command:
# mount -F vxfs -o smartiomode=[mode] /dev/vx/dsk/testdg/vol1 /mnt1
Where:
mode is one of the following:
writeback
read
nocache
To change the caching mode of a VxFS mount point
- To change the caching mode of a file or directory, use the following command. You cannot change the caching mode to a higher level of caching than the mode set on the mount_point. For example, you cannot enable read caching if you specified the mode as nocache when you mounted the file system.
# sfcache set [-r] mode=[nocache|read|writeback] {file|dir}
Use the -r option to make the change recursive.