ONTAP 9.14

to Japanese version

Create and mount SnapLock volumes

You must create a SnapLock volume for the files or Snapshot copies that you want to commit to the WORM state. Beginning with ONTAP 9.10.1, any volume you create, regardless of the aggregate type, is created by default as a non-SnapLock volume. You must use the -snaplock-type option to explicitly create a SnapLock volume by specifying either Compliance or Enterprise as the SnapLock type. By default, the SnapLock type is set to non-snaplock.

What you’ll need
  • The SnapLock aggregate must be online.

  • The SnapLock license must be installed on the node.

  • The ComplianceClock on the node must be initialized.

About this task

With the proper SnapLock permissions, you can destroy or rename an Enterprise volume at any time. You cannot destroy a Compliance volume until the retention period has elapsed. You can never rename a Compliance volume.

You can clone SnapLock volumes, but you cannot clone files on a SnapLock volume. The clone volume will be of the same SnapLock type as the parent volume.

LUNs are not supported in SnapLock volumes. LUNs are supported in SnapLock volumes only in scenarios where Snapshot copies created on a non-SnapLock volume are transferred to a SnapLock volume for protection as part of SnapLock vault relationship. LUNs are not supported in read/write SnapLock volumes. Tamperproof Snapshot copies however are supported on both SnapMirror source volumes and destination volumes that contain LUNs.

Perform this task using ONTAP System Manager or the ONTAP CLI.

ONTAP System Manager

Beginning with ONTAP 9.12.1, you can use ONTAP System Manager to create a SnapLock volume.

  1. Navigate to Storage > Volumes and click Add.

  2. In the Add Volume window, click More Options.

  3. Enter the new volume information, including the name and size of the volume.

  4. Select Enable SnapLock and choose the SnapLock type, either Compliance or Enterprise.

  5. In the Auto-Commit Files section, select Modified and enter the amount of time a file should remain unchanged before it is automatically committed. The minimum value is 5 minutes and the maximum value is 10 years.

  6. In the Data Retention section, select the minimum and maximum retention period.

  7. Select the default retention period.

  8. Click Save.

  9. Select the new volume in the Volumes page to verify the SnapLock settings.

  1. Create a SnapLock volume:

    volume create -vserver SVM_name -volume volume_name -aggregate aggregate_name -snaplock-type compliance|enterprise

    For a complete list of options, see the man page for the command. The following options are not available for SnapLock volumes: -nvfail, -atime-update, -is-autobalance-eligible, -space-mgmt-try-first, and vmalign.

    The following command creates a SnapLock Compliance volume named vol1 on aggr1 on vs1:

    cluster1::> volume create -vserver vs1 -volume vol1 -aggregate aggr1 -snaplock-type compliance

Mount a SnapLock volume

You can mount a SnapLock volume to a junction path in the SVM namespace for NAS client access.

What you’ll need

The SnapLock volume must be online.

About this task
  • You can mount a SnapLock volume only under the root of the SVM.

  • You cannot mount a regular volume under a SnapLock volume.

  1. Mount a SnapLock volume:

    volume mount -vserver SVM_name -volume volume_name -junction-path path

    For a complete list of options, see the man page for the command.

    The following command mounts a SnapLock volume named vol1 to the junction path /sales in the vs1 namespace:

    cluster1::> volume mount -vserver vs1 -volume vol1 -junction-path /sales
Top of Page