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
Verifying the VxFS cache areas
After you configure the cache areas, verify that the cache area is present and that caching is occurring.
To verify the VxFS cache areas
- To display information about the cache areas on the system.
# sfcache list
For example, a single-node VxFS cache area displays output as follows:
NAME TYPE SIZE ASSOC-TYPE STATE FSTYPE DEVICE sfcachearea_1 VxFS 5.00g AUTO ONLINE reserve ssd0_0 sfcachearea_2 VxFS 7.00g AUTO ONLINE default ssd0_1
For a cluster file system with writeback enabled, if you issue the sfcache list command just after you mount with writeback enabled (and before any read caching has happened), the output shows the space used in cache as 1.0 GB. Cache reflection is configured, with a local log and a remote log that each have a log size of 512 MB.
- To display information about a specific cache area:
# sfcache list sfcachearea_2
Cachearea: sfcachearea_2 Assoc Type: AUTO Type: VxFS Size: 9.96g State: ONLINE Layout: CONCAT FStype: default Number of Columns: 0 /dev/vx/dsk/cachedg/ssdvol: FSUUID SIZE MODE MOUNTPOINT CACHENAME 5efe4a52eb76000041760000a0dec33fe70300005efe4a52 39.0MB read /mnt2 sfcachearea_2
The output displays information about the cache configuration and attributes.
- To display information about a specific file system:
# sfcache list /mnt1
/mnt1: READ CACHE WRITEBACK MODE PINNED NAME 39.0 MB 0 KB writeback yes /mnt1/dir 39.0 MB 0 KB writeback yes /mnt1
- To see statistics on the cache usage, use the following command:
# sfcache stat sfcachearea_1
TYPE: VxFS NAME: sfcachearea_1 Cache Name: sfcachearea_1 Cache Size: 5 GB Cache Utilization: 1.426 GB (28.51 %) File Systems Using Cache: 2 Writeback Cache Use Limit: Unlimited Writeback Flush Timelag: 10 s Read Cache Writeback Hit Ratio Data Read Data Written Hit Ratio Data Written rdcachename wbcachename Total: 7.98 % 157.7 MB 1.545 GB 0.00 % 0 KB /pdb1: 7.98 % 157.7 MB 1.545 GB 0.00 % 0 KB sfcachearea_1 - /pdb2: 0.00 % 0 KB 0 KB 0.00 % 0 KB sfcachearea_1 sfcachearea_2
The output displays statistics for the cached data.
- To see statistics on cache usage for a particular file system, use the following command:
# sfcache stat /mnt1
Cache Size: 9.97 GB Cache Utilization: 551.0 MB ( 5.40 %) Read Cache Writeback Hit Ratio Data Read Data Written Hit Ratio Data Written rdcachename wbcachename /mnt1: 0.00 % 0 KB 78.0 MB 100.00 % 39.0 MB sfcachearea_1 sfcachearea_2
- Check the
syslog
to verify whether writeback mode caching is enabled.You should see a line such as the following in the
syslog
:vxfs: msgcnt 4 writeback caching is enabled for /dev/vx/dsk/testdg/vol1
If writeback mode caching is disabled for a particular file system, you would see a line such as the following in the
syslog
:vxfs: msgcnt 9 writeback caching is disabled for /dev/vx/dsk/testdg/vol1