Creating a SnapLock aggregate

You must create a SnapLock aggregate before creating a SnapLock volume. The Compliance or Enterprise SnapLock mode for the aggregate is inherited by the volumes in the aggregate.

Before you begin

About this task

You can destroy or rename an Enterprise aggregate at any time. You cannot destroy a Compliance aggregate until the retention period has elapsed. Starting in ONTAP 9.8, you can rename a Compliance aggregate.

Procedure

Create a SnapLock aggregate: storage aggregate create -aggregate aggregate_name -node node_name -diskcount number_of_disks -snaplock-type compliance|enterprise
The man page for the command contains a complete list of options.

The following command creates a SnapLock Compliance aggregate named aggr1 with three disks on node1:

cluster1::> storage aggregate create -aggregate aggr1 -node node1 -diskcount 3 -snaplock-type compliance