Table of ContentsLibraryView in Frames

Creating SnapLock aggregates and their flexible volumes

If you are using the FlexVol feature of Data ONTAP, you can create SnapLock aggregates and flexible volumes to retain compliance or archival data.

Before You Begin

Ensure that you have licensed SnapLock Compliance, SnapLock Enterprise, or both. In addition, you must initialize the ComplianceClock before you can create the SnapLock aggregates and their flexible volumes.

Considerations

SnapLock is an attribute of the aggregate; therefore, the volume contained in that aggregate inherits the aggregate’s SnapLock attributes. Every FlexVol volume created in a SnapLock aggregate is, by definition, a SnapLock volume. A SnapLock Compliance aggregate contains only SnapLock Compliance flexible volumes, and a SnapLock Enterprise aggregate contains only SnapLock Enterprise flexible volumes.

Steps

  1. To initialize the ComplianceClock, enter the following command:date -c initialize
  2. To create a SnapLock aggregate, enter the following command: aggr create aggrname -L snaplock_type ndisks[@disksize]

    aggrname is the new SnapLock aggregate name.

    snaplock_type can be Compliance or Enterprise. If only one SnapLock version is licensed, you need not specify the attribute; however, you must specify the attribute if both the SnapLock versions are licensed.

    ndisks is the number of disks.

    disksize is the size of the disk, for example, 72 GB.

  3. Verify that the newly created SnapLock aggregate exists, by entering the following command: aggr status

    Example

    aggr status aggr1
          Aggr State      Status           Options
          aggr1 online  raid_dp, aggr      snaplock_enterprise
          Volumes: vol1

  4. To create a SnapLock FlexVol volume, enter the following command: vol create wormvol aggrname size[k|m|g|t]