Skip to main content

Set the cache-retention policy for Flash Pool local tiers (aggregates)

Contributors netapp-thomi

You can assign cache-retention policies to volumes in Flash Pool local tiers (aggregates). Data in volumes with a high cache-retention policy remains in cache longer and data in volumes with a low cache-retention policy is removed sooner. This increases performance of your critical workloads by making high priority information accessible at a faster rate for a longer period of time.

What you'll need

You should know whether your system has any conditions that might prevent the cache-retention policy from having an impact on how long your data remains in cache.

Steps

Use the CLI in advanced privilege mode to perform the following steps:

  1. Change the privilege setting to advanced:

    set -privilege advanced

  2. Verify the volume's cache-retention policy:

    By default the cache retention policy is “normal”.

  3. Set the cache-retention policy:

    ONTAP Version

    Command

    ONTAP 9.0, 9.1

    priority hybrid-cache set volume_name read-cache=read_cache_value write-cache=write_cache_value cache-retention-priority=cache_retention_policy

    Set cache_retention_policy to high for data that you want to remain in cache longer. Set cache_retention_policy to low for data that you want to remove from cache sooner.

    ONTAP 9.2 or later

    volume modify -volume volume_name -vserver vserver_name -caching-policy policy_name.

  4. Verify that the volume's cache-retention policy is changed to the option you selected.

  5. Return the privilege setting to admin:

    set -privilege admin