Updating a volume - FSx for ONTAP

Updating a volume

You can update the configuration of an FSx for ONTAP volume using the Amazon FSx console, the AWS CLI, and the Amazon FSx API, in addition to the NetApp ONTAP command line interface (CLI) and REST API. You can modify the following properties of an existing FSx for ONTAP volume:

  • Volume path

  • Volume size

  • Storage efficiency

  • Capacity pool tiering policy

  • Snapshot policy

  • Copy tags to backups (Only in the AWS CLI and Amazon FSx API.)

For more information, see Managing FSx for ONTAP volumes.

  1. Open the Amazon FSx console at https://console.aws.amazon.com/fsx/.

  2. Navigate to File systems and choose the ONTAP file system that you want to update a volume for.

  3. Choose the Volumes tab.

  4. Choose the volume that you want to update.

  5. For Actions, choose Update volume.

    The Update volume dialog box displays with the volume's current settings.

                                    The Create new volume dialog
  6. For Junction path, enter an existing location within the file system to mount the volume. The name must have a leading forward slash, such as /vol5.

  7. For Volume size, enter any whole number in the range of 20–104867600 to specify the new size in mebibytes (MiB). You can increase or decrease the size of the volume.

  8. For Storage efficiency, choose Enabled to enable the ONTAP storage efficiency features (deduplication, compression, and compaction), or choose Disabled to disable them.

  9. For Capacity pool tiering policy, choose a new storage pool tiering policy for the volume, which can be Auto (the default), Snapshot-only, All, or None. For more information about capacity pool tiering policies, see Tiering policies.

  10. For Snapshot policy, choose a snapshot policy for the volume. For more information about snapshot policies, see Snapshot policies.

    If you choose Custom policy, you must specify the policy's name in the custom-policy field. The custom policy must already exist on the SVM or in the file system. You can create a custom snapshot policy with the ONTAP CLI or REST API. For more information, see Create a Snapshot Policy in the NetApp ONTAP Product Documentation.

  11. Choose Update to update the volume.

  • To update the configuration of an FSx for ONTAP volume, use the update-volume CLI command (or the equivalent UpdateVolume API operation), as shown in the following example.

    aws fsx update-volume \ --volume-id fsvol-1234567890abcde \ --name new_vol \ --ontap-configuration CopyTagsToBackups=true,JunctionPath=/new_vol, \ SizeInMegabytes=2048,SnapshotPolicy=default-1weekly, \ StorageEfficiencyEnabled=true