Skip to main content
A newer release of this product is available.

snapmirror snapshot-owner create

Contributors
Suggest changes

Add an owner to preserve a Snapshot copy for a SnapMirror mirror-to-vault cascade configuration

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

Description

The snapmirror snapshot-owner create command adds an owner on the specified Snapshot copy. A Snapshot copy can have at most one owner. An owner can only be added to a Snapshot copy on a read-write volume. The Snapshot copy must have a valid SnapMirror label.

Note Refer to the ONTAP Data Protection Guide for valid use cases to add an owner on a Snapshot copy.

Parameters

-vserver <vserver name> - Vserver Name

This parameter specifies the Vserver on which the volume is located.

-volume <volume name> - Volume Name

This parameter specifies the name of the volume.

-snapshot <snapshot name> - Snapshot Copy Name

This parameter specifies the name of the Snapshot copy.

[-owner <owner name>] - Snapshot Copy Owner Name

This parameter specifies the name of the owner for the Snapshot copy. The owner name can be made up of the characters A to Z, a to z, 0 to 9, and "_". The name can be up to 32 characters in length. When not specified, an owner will be added with a system-generated default name.

Examples

The following example adds owner app1 on Snapshot copy snap1 on volume vol1 in Vserver vs0.example.com .

cluster1::> snapmirror snapshot-owner create -vserver vs0.example.com
         -volume vol1 -snapshot snap1 -owner app1

The following example adds a default owner on Snapshot copy snap2 on volume vol1 in Vserver vs0.example.com .

cluster1::> snapmirror snapshot-owner create -vserver vs0.example.com
         -volume vol1 -snapshot snap2