|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Invoke-NcSnapmirrorLsPromote
NAME
Invoke-NcSnapmirrorLsPromote
SYNOPSIS
Performs a failover to the destination volume of a load-sharing SnapMirror r
elationship.
SYNTAX
Invoke-NcSnapmirrorLsPromote [-DestinationCluster <String>] -DestinationVser
ver <String> -DestinationVolume <String> [-SourceCluster <String>] [-SourceV
server <String>] [-SourceVolume <String>] [-Controller <NcController[]>] [-W
hatIf] [-Confirm] [<CommonParameters>]
Invoke-NcSnapmirrorLsPromote [-Destination] <String> [[-Source] <String>] [-
Controller <NcController[]>] [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Performs a failover to the destination volume of a load-sharing SnapMirror r
elationship. This cmdlet changes the destination volume from a load-sharing
volume to a read-write volume and makes the destination volume assume the i
dentity of the source volume. The cmdlet then destroys the original source
volume. The destination volume must be a load-sharing volume. However, you
can still perform Invoke-NcSnapmirrorLsPromote on a destination load-sharin
g volume that has been left in read-write state by a previously failed promo
te operation.
Note: The source volume and destination volume must be on the same vserver f
or the promote to work. Client accesses are redirected from the original so
urce volume to the promoted destination volume. The view clients see on the
promoted destination volume is the latest transferred snapshot copy, which
might lag behind the view clients had of the original source volume before t
he promote. The SnapMirror relationship is usually deleted as part of the p
romotion process. This is not true for a set of load-sharing mirrors that c
ontain more than one destination volume. In this case, the promoted destina
tion volume becomes the new source volume to the set of load-sharing mirrors
. It is possible that the original source volume is the source of multiple
SnapMirror relationships. For such a configuration, the promoted destinatio
n volume becomes the new source volume of the other SnapMirror relationships
. The cmdlet fails if a SnapMirror transfer is in progress for any SnapMirr
or relationship involving the original source volume.
You must specify the destination endpoint when using Invoke-NcSnapmirrorLsPr
omote.
PARAMETERS
-DestinationCluster <String>
Specifies the destination cluster of the SnapMirror relationship. The d
estination vserver and destination volume must also be specified if usin
g this parameter.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-DestinationVserver <String>
Specifies the destination vserver of the SnapMirror relationship. The d
estination cluster and destination volume must also be specified if usin
g this parameter.
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-DestinationVolume <String>
Specifies the destination volume of the SnapMirror relationship. The de
stination cluster and destination vserver must also be specified if usin
g this parameter.
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-SourceCluster <String>
Specifies the source cluster of the SnapMirror relationship. The source
vserver and source volume must also be specified if using this paramete
r.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-SourceVserver <String>
Specifies the source vserver of the SnapMirror relationship. The source
cluster and source volume must also be specified if using this paramete
r.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-SourceVolume <String>
Specifies the source volume of the SnapMirror relationship. The source
cluster and source vserver must also be specified if using this paramete
r.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Controller <NcController[]>
A clustered Data ONTAP controller to receive this cmdlet, as embodied by
an NcController object. This parameter is returned by the Connect-NcCo
ntroller cmdlet. If not specified, the value in the global variable Cur
rentNcController is used. In the latter case, if CurrentNcController co
ntains a collection of NcController objects, this cmdlet is invoked on e
ach controller in succession.
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-WhatIf
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Destination <String>
Specifies the destination endpoint of the SnapMirror relationship in the
format: [cluster:]//vserver/volume. This format may change in the futu
re. When specifying a destination endpoint, you must use either the des
tination location, or the destination cluster, destination vserver, and
destination volume.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Source <String>
Specifies the source endpoint of the SnapMirror relationship in the form
at: [cluster:]//vserver/volume. This format may change in the future.
When specifying a source endpoint, you must use either the source locati
on, or the source cluster, source vserver, and source volume.
Required? false
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".
INPUTS
OUTPUTS
NOTES
Category: snapmirror
API: snapmirror-promote
Family: cluster
-------------- Example 1 --------------
C:\PS>Invoke-NcSnapmirrorLsPromote //costea01/vol1_LS1
Promote the load-sharing SnapMirror with destination '//costea01/vol1_LS1'.
RELATED LINKS
Get-NcSnapmirror
| Copyright © 2012 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|