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 up SmartIO read caching for VxFS file systems
In read mode, the SmartIO feature caches the VxFS file system read I/Os. To set up SmartIO for read caching for a VxFS file system, simply create the cache area.
Setting up SmartIO read caching for VxFS file systems
- Create the VxFS cache area on the SSD device, using one of the following commands.
Specify one or more devices using the disk access name (daname) of the device. The device should be initialized for VxVM use and have the
cdsdisk
format.# sfcache create [-t VxFS] [size] daname[...] [--auto|--noauto] \ [--nostripe|ncols=n] [cachearea_name]
Where:
daname specifies the disk access name of the device on which to create the cache area.
cachearea_name specifies a customized name for the cache area. If unspecified, the SmartIO feature automatically generates a name for the cache area.
size specifies the size for the cache area. By default, the cache area uses all of the available space on the device.
--nostripe|ncols=n specifies the layout options for the cache area. By default, the cache area is created over a striped volume if two or more disks are specified. Use the ncols=n option to specify the number of columns for the striped volume. Use the --nostripe option to create the cache area on a concatenated volume over the specified disks.
--noauto|--auto specifies the type of cache area. The default is --auto.
For example:
# sfcache create ssd0_0
Alternatively, you can specify the name of a disk group and a volume to use for the cache area. In this case, you cannot specify a size: the cache area uses the entire volume.
# sfcache create [-t VxFS] [--noauto|--auto] dg/vol
Where:
dg/vol specifies the disk group name and volume name that you want to use for the cache area. SmartIO uses this name for the cache area.
--noauto|--auto specifies the type of cache area. The default is --auto.
For example:
# sfcache create --auto ssd_dg/ssd_vol
- If the file system is not already mounted, mount the VxFS file system.
If the cache area is auto, read caching is enabled when you mount the VxFS file system.
For example, for a local mount:
# mount -F vxfs /dev/vx/dsk/testdg/vol1 /mnt1
For example, for a CFS mount:
# mount -F vxfs -o cluster /dev/vx/dsk/testdg/vol1 /mnt1
If the cache area is noauto, you must enable caching for each VxFS file system that you want to cache. To enable caching, mount the file system with the -o smartiomode option.
For example, for a local mount:
# mount -F vxfs -o smartiomode=read /dev/vx/dsk/testdg/vol1 /mnt1
For example, for a CFS mount:
# mount -F vxfs -o cluster,smartiomode=read /dev/vx/dsk/testdg/vol1 /mnt1
You can also enable caching after the file system is mounted.
# sfcache enable mount_point
Where:
mount_point is the mount point for the file system.
For example:
# sfcache enable /mnt1
- If required, you can further customize the caching behavior.