|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Switch-NcDiskOwner
NAME
Switch-NcDiskOwner
SYNOPSIS
Changes ownership on disks already belonging to an owner.
SYNTAX
Switch-NcDiskOwner [-OldOwner <String>] [-OldOwnerId <UInt32>] [-NewOwner <S
tring>] [-NewOwnerId <UInt32>] [-Force] [-Controller <NcController[]>] [<Com
monParameters>]
DESCRIPTION
Changes ownership on disks already belonging to an owner.
PARAMETERS
-OldOwner <String>
Name of old owner. This form takes all disks currently belonging to the
specific old owner, and reassigns them to a new owner.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-OldOwnerId <UInt32>
NVRAM ID of old owner. This form takes all disks currently belonging to
the specific old owner ID, and reassign them to a new owner. Either Ol
dOwner or OldOwnerId must be specified, but not both.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-NewOwner <String>
Name of new owner. This form will assign all the disks belonging to the
old owner to the specific owner.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-NewOwnerId <UInt32>
NVRAM ID of new owner. This form will assign all the disks belonging to
the old owner to the specific owner ID. Either NewOwner or NewOwnerId (
or both) must be specified.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Force
Specify if reassigning disks which are owned by another node. However,
if that filer is up and has put a reservation on the disk, even the forc
e option won't work. In this case reassign must be run on the filer whi
ch owns the disks.
Required? false
Position? named
Default value
Accept pipeline input? false
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
<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: disk
API: disk-sanown-reassign
Family: cluster
-------------- Example 1 --------------
C:\PS>Switch-NcDiskOwner -OldOwner fas3070cluster01-01 -NewOwner fas3070clus
ter01-02 -Force
Forcibly reassign all disks from one node to another.
RELATED LINKS
Get-NcDiskOwner
Clear-NcDiskOwner
Set-NcDiskOwner
| Copyright © 2013 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|