Data ONTAP® PowerShell Toolkit

Switch to Data ONTAP 7-mode documentation.

Cmdlet: Set-NcDiskOwner


NAME
Set-NcDiskOwner

SYNOPSIS
Changes ownership on a disk.

SYNTAX
Set-NcDiskOwner [-Name] <String> [[-Owner] <String>] [-Pool <UInt32>] [-Chec
ksum <String>] [-Force] [-Controller <NcController[]>] [-WhatIf] [-Confirm]
[<CommonParameters>]

Set-NcDiskOwner [-Name] <String> -OwnerId <UInt32> [-Pool <UInt32>] [-Checks
um <String>] [-Force] [-Controller <NcController[]>] [-WhatIf] [-Confirm] [<
CommonParameters>]

Set-NcDiskOwner -Auto [-Controller <NcController[]>] [-WhatIf] [-Confirm] [<
CommonParameters>]


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


PARAMETERS
-Name <String>
Name of disk to assign.

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

-Owner <String>
Assign disk to specific owner (node). Either Owner or OwnerId must be s
pecified.

Required? false
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
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 RAID ar
ray LUNs. Possible values: 'block' or 'zoned'.

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

-Force
Specify 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

-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

-OwnerId <UInt32>
Assign disk to specific owner ID (NVRAM ID). Either Owner or OwnerId mu
st be specified.

Required? true
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 parameter
s are allowed when specifying this option.

Required? true
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-assign
Family: cluster

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

C:\PS>Get-NcDisk 0a.27 | Set-NcDiskOwner -Owner fas3070cluster01-01


Assign disk '0a.27' to node 'fas3070cluster01-01'.





-------------- Example 2 --------------

C:\PS>Set-NcDiskOwner 0a.27 -OwnerId 118054408


Set owner of disk '0a.27' to the node with NVRAM ID '118054408'.





-------------- Example 3 --------------

C:\PS>Get-NcNode fas3070cluster01-01 | Get-NcDiskOwner -OwnershipType unowne
d | Set-NcDiskOwner -Owner fas3070cluster01-01


Assume ownership of all unowned disks attached to node 'fas3070cluster01-01'
.






RELATED LINKS
Get-NcDiskOwner
Clear-NcDiskOwner







 Data ONTAP® PowerShell Toolkit