|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Get-NcDiskOwner
NAME
Get-NcDiskOwner
SYNOPSIS
Get disk ownership information.
SYNTAX
Get-NcDiskOwner -Node <String> [-OwnershipType <String>] [-Controller <NcCon
troller[]>] [<CommonParameters>]
Get-NcDiskOwner [-Name] <String> -Node <String> [-OwnershipType <String>] [-
Controller <NcController[]>] [<CommonParameters>]
DESCRIPTION
Get disk ownership information.
PARAMETERS
-Node <String>
The name of a node to query for disk ownership. This parameter may also
be specified if the Name parameter is not of the format "<Node Name>:<D
isk Name>".
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-OwnershipType <String>
Possible values:
'all' will list all disks.
'unowned' will list all disks without owners.
'owned' will list all disks with owners.
'visible' will list all disks belonging to the local and partner filer.
Default is 'all'. If specific disk is specified, OwnershipType will be
ignored.
Required? false
Position? named
Default value all
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
-Name <String>
The name of the disk to query. The disk name should use the format "<No
de Name>:<Disk Name>", such as "VxeRubble-01:1a.02.23".
Required? true
Position? 1
Default value
Accept pipeline input? true (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
DataONTAP.C.Types.Disk.DiskSanownDetailInfo
NOTES
Category: disk
API: disk-sanown-list-info
Family: cluster
-------------- Example 1 --------------
C:\PS>Get-NcDiskOwner -Node VxeRubble-01
Get disk ownership info for node 'VxeRubble-01.
Name SerialNumber Owner OwnerId
---- ------------ ----- -------
1a.02.0 6SJ0ZQWH0000N1347AG2 VxeRubble-01 151764873
1a.02.1 6SJ0ZY8C0000N133FUYG VxeRubble-01 151764873
1a.02.10 6SJ12P8N0000N1363FDZ VxeRubble-01 151764873
1a.02.11 6SJ0ZYHH0000N13403V9 VxeRubble-01 151764873
1a.02.12 6SJ17CZW0000N136BMBH VxeRubble-01 151764873
1a.02.13 6SJ10YXB0000N1358UW1 VxeRubble-01 151764873
1a.02.14 6SJ0YWSB0000N134AF8H VxeRubble-01 151764873
...
-------------- Example 2 --------------
C:\PS>Get-NcDisk | Get-NcDiskOwner
Get-NcNode | Get-NcDiskOwner
Both of these examples will return disk ownership info for all disks in the
cluster, although the second form is much faster.
Name SerialNumber Owner OwnerId
---- ------------ ----- -------
1a.02.0 6SJ0ZQWH0000N1347AG2 VxeRubble-01 151764873
1a.02.1 6SJ0ZY8C0000N133FUYG VxeRubble-01 151764873
1a.02.10 6SJ12P8N0000N1363FDZ VxeRubble-01 151764873
1a.02.11 6SJ0ZYHH0000N13403V9 VxeRubble-01 151764873
1a.02.12 6SJ17CZW0000N136BMBH VxeRubble-01 151764873
1a.02.13 6SJ10YXB0000N1358UW1 VxeRubble-01 151764873
1a.02.14 6SJ0YWSB0000N134AF8H VxeRubble-01 151764873
1a.02.15 6SJ13KQ70000N135DE1Y VxeRubble-01 151764873
1a.02.16 6SJ17EDH0000N1357FPM VxeRubble-01 151764873
...
-------------- Example 3 --------------
C:\PS>Get-NcDiskOwner VxeRubble-01:1a.02.0
Get-NcDiskOwner 1a.02.0 -Node VxeRubble-01
Get-NcDisk VxeRubble-01:1a.02.0 | Get-NcDiskOwner
Each of these examples returns the ownership info for disk '1a.02.0' on node
'VxeRubble-01'.
Name : 1a.02.0
SerialNo : 6SJ0ZQWH0000N1347AG2
Owner : VxeRubble-01
OwnerId : 151764873
Home : VxeRubble-01
HomeId : 151764873
Pool : 0
ReservedBy : 151764873
IsFailed : False
Checksum :
Type : SAS
RELATED LINKS
Get-NcDisk
Get-NcNode
Get-NcDiskOwnerFiler
| Copyright © 2012 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|