ONTAP 9.14.1 commands

volume file clone autodelete

Enable/Disable autodelete

Availability: This command is available to cluster and Vserver administrators at the admin privilege level.

Description

The volume file clone autodelete command enables or disables the automatic deletion of file, LUN or NVMe namespace clones. Newly created file, LUN and NVMe namespace clones are disabled for automatic deletion by default.

Parameters

-vserver <vserver name> - Vserver Name

This specifies the Vserver on which the volume resides. If only one data Vserver exists, you do not need to specify this parameter.

[-volume <volume name>] - Volume Name

This specifies the name of the volume in which the file, LUN or NVMe namespace is present.

-clone-path <text> - Clone Path

This specifies the path where clone resides. If you use the volume parameter, then specify the relative path to the file, LUN or NVMe namespace clone. Otherwise, specify the absolute path.

-enable {true|false} - Enable or Disable Autodelete

This parameter enables or disables the autodelete feature for the file, LUN or NVMe namespace clones in a specified volume if the clones are already added for automatic deletion. If you set the parameter to true, the specified file, LUN or NVMe namespace clones get automatically deleted in the 'try' or 'disrupt' mode. If the value is false, the clones get automatically deleted only in the 'destroy' mode.

[-force <true>] - Force Enable or Disable Autodelete

If -enable is true then this parameter forces automatic deletion of a specified file, LUN or NVMe namespace, or a file, LUN or NVMe namespace clone. If -enable is false then specifying this parameter disables autodeletion on a file, LUN or NVMe namespace - or a file, LUN or NVMe namespace clone - even if `-commitment`destroy is specified.

Examples

The following command enables for automatic deletion a LUN Clone named lun_clone contained in a volume named volume1 . This volume is present on a Vserver named vs1 .

cluster1::> volume file clone autodelete /vol/volume1/lun_clone -enable true -vserver vs1

The following command specifies the relative clone path when the volume parameter is specified in the command.

cluster1::> volume file clone autodelete lun_clone -enable true
      -vserver vs1 -volume volume1
Top of Page