sfcache

The sfcache utility has commands to administer SmartIO.

Table: sfcache commands

Command

Description

Creating cache

sfcache create <cachearea_name> [-a] [cacheline_size = <size>] <diskname(s) | p#c#t#l#>

  • cachearea_name: Enter a valid name for cache area.

  • -a: Make the cache area auto cache area.

  • diskname(s): Space separated list of SSDs to be used to create the cache area.

  • p#c#t#l#: Another way to indicate a disk name. The p#c#t#l#parameter corresponds to the port, channel, target, and LUN of a disk.

Deleting cache

sfcache delete <cachearea_name>

  • cachearea_name: Name of the cache area to be deleted.

Enabling cache

sfcache -g <DynamicDiskGroupName> enable <VolumeName(s)|DriveLetter|VmName|DrivePath> [-c<cachearea_name>]

  • -g <DynamicDiskGroupName>: Name of disk group containing source volume. Required when specifying volume name.

  • VolumeName(s): Name of the volume for which caching is to be enabled.

  • DriveLetter: : Drive letter of the volume.

  • VmName: Internal name of the volume; requires the use of the -g option, such as -g DG1 Volume1.

  • DrivePath: A volume that is mounted on an NTFS folder; it is indicated by a path to that folder.

  • -c <cachearea_name>: Name of the cache area to be linked with the volume.

    If this option is not specified, the volume is linked with the auto cache area.

Disables caching for a specific data volume

Situation 1

Brings a cache area online

Brings a cache area online

Situation 2

Takes a cache area offline

Takes a cache area offline

Situation 3

Extends the cache area size

Extends the cache area size

Reduces the cache area size

Reduces the cache area size

Sets the cache area attributes to "auto" or "noauto"

Sets the cache area attributes to "auto" or "noauto"

Situation 1

Displays the volumes that are associated with a cache area

Displays the volumes that are associated with a cache area

Situation 2

Displays the cache statistics (includes cache hit rate, misses, and, average read and write latencies)

Displays the cache statistics (includes cache hit rate, misses, and, average read and write latencies)