|
|
Data ONTAP® PowerShell Toolkit
|
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[]>] [<CommonParameters>]
Set-NcDiskOwner [-Name] <String> -OwnerId <UInt32> [-Pool <UInt32>] [-Checks
um <String>] [-Force] [-Controller <NcController[]>] [<CommonParameters>]
Set-NcDiskOwner [[-Owner] <String>] [-Pool <UInt32>] [-Checksum <String>] [-
Force] -DiskCount <Int32> [-DiskType <String>] [-Controller <NcController[]>
] [<CommonParameters>]
Set-NcDiskOwner [[-Owner] <String>] -All [-Controller <NcController[]>] [<Co
mmonParameters>]
Set-NcDiskOwner [[-Owner] <String>] -Auto [-Controller <NcController[]>] [<C
ommonParameters>]
Set-NcDiskOwner -OwnerId <UInt32> [-Pool <UInt32>] [-Checksum <String>] [-Fo
rce] -DiskCount <Int32> [-DiskType <String>] [-Controller <NcController[]>]
[<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 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
-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
-DiskCount <Int32>
Assign specified count of disks.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-DiskType <String>
Assign specified type of disk or set of disks.
Type of disk: ATA, BSAS, EATA, FCAL, FSAS, LUN, MSATA, SAS, SATA, SCSI,
SSD, BSSD, XATA, XSAS, or unknown.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-All
Assign all unowned visible disks to the specified node.
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
| Copyright © 2013 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|