volume file clone autodelete


Enable/Disable autodelete

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


The volume file clone autodelete command enables or disables the automatic deletion of a file or LUN clone. Newly created file and LUN clones are disabled for automatic deletion by default. This command is not supported on Infinite volumes.


-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 or LUN 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 or LUN clone. Otherwise, specify the absolute path.

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

This parameter enables or disables the autodelete feature for the file or LUN clones in a specified volume if the clones are already added for automatic deletion. If you set the parameter to true, the specified file or LUN clones gets 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 or LUN, or a file or LUN clone. If -enable is false then specifying this parameter disables autodeletion on a file or LUN - or a file or LUN clone - even if `-commitment`destroy is specified.


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