Data ONTAP® PowerShell Toolkit

Switch to Data ONTAP 7-mode documentation.

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[]>] [-Wha
tIf] [-Confirm] [<CommonParameters>]


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 Data ONTAP cluster-mode controller to receive this cmdlet, as embodied
by an NcController object. This parameter is returned by the Connect-N
cController cmdlet. If not specified, the value in the global variable
CurrentNcController is used. In the latter case, if CurrentNcController
contains a collection of NcController objects, this cmdlet is invoked o
n each 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

<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







 Data ONTAP® PowerShell Toolkit