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.
root,
data1, and
data2, you must ensure that spare disks are available.
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.
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