Data ONTAP® PowerShell Toolkit

Switch to Data ONTAP Cluster-mode documentation.

Cmdlet: Set-NaDiskOwner


NAME
Set-NaDiskOwner

SYNOPSIS
Changes ownership on a disk.

SYNTAX
Set-NaDiskOwner [-Name] <String> [[-Owner] <String>] [-OwnerID <UInt32>] [-P
ool <UInt32>] [-Checksum <String>] [-Force] [-Auto] [-Controller <NaControll
er>] [-WhatIf] [-Confirm] [<CommonParameters>]


DESCRIPTION
Changes ownership on a disk. The normal usage is when there is no current ow
ner or to assign a disk to a pool.


PARAMETERS
-Name <String>
Name of disk to assign. Wildcarding for disk string is supported.

Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false

-Owner <String>
Assign disk to specific owner.

Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false

-OwnerID <UInt32>
Assign disk to specific owner ID (NVRAM ID or serial number). Range : [0
..2^32-1].

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Pool <UInt32>
Assign disk to specific pool, e.g. '0' or '1'.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Checksum <String>
Assign checksum type to disk. Option may only be specified on a gFiler.
Possible values: 'block' or 'zoned'.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Force
Force flag need to be set to 'true' if assigning disks which are already
owned a Filer. However, if that Filer is up and has put a reservation
on the disk, even the force option won't work.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Auto
Auto-assign unowned disks which are on loops where only one filer owns t
he disks and the pool information is the same. No other input parameters
are allowed when specifying this option.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Controller <NaController>
The Data ONTAP controller object, embodied by an NaController object. T
his parameter is returned by the Connect-NaController cmdlet. If not sp
ecified, the value in the global variable CurrentNaController is used.

Required? false
Position? named
Default value
Accept pipeline input? false
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
NetApp.Ontapi.Filer.Disk.DiskSanownDetailInfo


NOTES


Category: disk
API: disk-sanown-assign

-------------- Example 1 --------------

C:\PS>Set-NaDiskOwner 0a.29 benson


Assign disk '0a.29' to controller 'benson'.


Checksum :
Home : benson
HomeId : 118045471
IsFailed : False
Name : 0a.29
Owner : benson
OwnerId : 118045471
Pool : 0
ReservedBy : 118045471
SerialNo : 3KS66QVV00009732P3XW
HomeIdSpecified : True
OwnerIdSpecified : True
PoolSpecified : True



RELATED LINKS
Get-NaDiskOwner
Clear-NaDiskOwner
Switch-NaDiskOwner







 Data ONTAP® PowerShell Toolkit