Skip to main content

Create a FlexCache volume in ONTAP

Contributors netapp-lenida netapp-aherbin netapp-thomi netapp-aaron-holt netapp-dbagwell netapp-ahibbard

You can create a FlexCache volume in the same cluster for improving performance when accessing a hot object. If you have data centers in different locations, you can create FlexCache volumes on remote clusters for accelerating data access.

About this task
  • Beginning with ONTAP 9.5, FlexCache supports FlexVol volumes as origin volumes and FlexGroup volumes as FlexCache volumes.

  • Beginning with ONTAP 9.7 both FlexVol volume and FlexGroup volumes are supported as origin volumes.

  • Beginning with ONTAP 9.14.0, you can create an unencrypted FlexCache volume from an encrypted source.

Before you begin
  • You must be running ONTAP 9.5 or later.

  • If you are running ONTAP 9.6 or earlier, you must add a FlexCache license.

    A FlexCache license is not required for ONTAP 9.7 or later. Beginning with ONTAP 9.7, FlexCache functionality is included with ONTAP and no longer requires a license or activation. 

Note If an HA pair is using encrypting SAS or NVMe drives (SED, NSE, FIPS), you must follow the instructions in the topic Returning a FIPS drive or SED to unprotected mode for all drives within the HA pair prior to initializing the system (boot options 4 or 9). Failure to do this may result in future data loss if the drives are repurposed.
  1. If the FlexCache volume is on a different cluster than the origin volume, create a cluster peer relationship:

    1. In the local cluster, click Protection > Overview.

    2. Expand Intercluster Settings, click Add Network Interfaces and add intercluster network interfaces for the cluster.

      Repeat this step on the remote cluster.

    3. In the remote cluster, click Protection > Overview. Click Menu options icon in the Cluster Peers section and click Generate Passphrase.

    4. Copy the generated passphrase and paste it in the local cluster.

    5. In the local cluster, under Cluster Peers, click Peer Clusters and peer the local and remote clusters.

  2. Create an SVM peer relationship:

    Under Storage VM Peers, click Menu options icon and then Peer Storage VMs to peer the storage VMs.

  3. Select Storage > Volumes.

  4. Select Add.

  5. Select More Options and then select Add as cache for a remote volume.

    Note If you are running ONTAP 9.8 or later and you want to disable QoS or choose a custom QoS policy, click More Options, and then under Storage and Optimization, select Performance Service Level.

Result

The FlexCache volume is successfully created. Clients can mount the volume by using the junction path of the FlexCache volume.

Related information

Cluster and SVM peering