Skip to main content

Creating a FlexGroup volume

You can create a FlexGroup volume by manually selecting the aggregates on which the FlexGroup volume must be created, and then specifying the number of constituents on each aggregate.

About this task

You must be aware of the space required in the aggregates for creating a FlexGroup volume.

Guidelines for aggregate space when provisioning a FlexGroup volume

  1. Create the FlexGroup volume: volume create -vserver svm_name -volume flexgroup_name -aggr-list aggr1,aggr2,.. -aggr-list-multiplier constituents_per_aggr -size fg_size [–encrypt true] [-qos-policy-group qos_policy_group_name]
    • The -aggr-list parameter specifies the list of aggregates to be used for FlexGroup volume constituents.

      Each entry in the list creates a constituent on the specified aggregate. You can specify an aggregate multiple times to have multiple constituents created on the aggregate.

      For consistent performance across the FlexGroup volume, all of the aggregates must use the same disk type and RAID group configurations.

    • The -aggr-list-multiplier parameter specifies the number of times to iterate over the aggregates that are listed with the -aggr-list parameter when creating a FlexGroup volume.

      The default value of the -aggr-list-multiplier parameter is 4.

    • The size parameter specifies the size of the FlexGroup volume in KB, MB, GB, TB, or PB.

    • Starting with ONTAP 9.5, you can create FlexGroup volumes for FabricPool, which use only all SSD aggregates.

      To create a FlexGroup volume for FabricPool, all the aggregates specified with the -aggr-list parameter must be FabricPool. The volume guarantee must be always set to none for FabricPool. You can also specify the tiering policy and tiering minimum cooling period for the FlexGroup volume.

      Disk and Aggregate Management Guide

    • Starting with ONTAP 9.5, you can specify throughput floors (QoS Min) and adaptive QoS for FlexGroup volumes.

      Performance management

    • Starting with ONTAP 9.5, you can specify a throughput ceiling (QoS Max) for FlexGroup volumes, which limits the performance resources that the FlexGroup volume can consume.

    • Starting with ONTAP 9.5, you can set the -encrypt parameter to true if you want to enable encryption on the FlexGroup volume.

      For creating an encrypted volume, you must have installed the volume encryption license and the key manager.

      Note
      You must enable encryption on FlexGroup volumes at the time of creation. You cannot enable encryption on existing FlexGroup volumes.

      Encryption of data at rest

    Example

    cluster-1::> volume create -vserver vs0 -volume fg2 -aggr-
    list aggr1,aggr2,aggr3,aggr1 -aggr-list-multiplier 2 -size 500TB

    Warning: A FlexGroup "fg2" will be created with the following number of constituents of size 62.50TB: 8.
    Do you want to continue? {y|n}: y

    [Job 43] Job succeeded: Successful

    In the previous example, if you want to create the FlexGroup volume for FabricPool, all aggregates (aggr1, aggr2, and aggr3) must be aggregates in FabricPool.

  2. Optional: Mount the FlexGroup volume with a junction path: volume mount -vserver vserver_name -volume vol_name -junction-path junction_path

    Example

    cluster1::> volume mount -vserver vs0 -volume fg2 -junction-path /fg

After you finish

You should mount the FlexGroup volume from the client.

If you are running ONTAP 9.6 or earlier and if the storage virtual machine (SVM) has both NFSv3 and NFSv4 configured, mounting the FlexGroup volume from the client might fail. In such cases, you must explicitly specify the NFS version when you are mounting the FlexGroup volume from the client.

# mount -t nfs -o vers=3 192.53.19.64:/fg /mnt/fg2
# ls /mnt/fg2
file1 file2