|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Get-NcLunAlignment
NAME
Get-NcLunAlignment
SYNOPSIS
Get a list of LUN alignment objects.
SYNTAX
Get-NcLunAlignment [-Vserver <String[]>] [[-Path] <String[]>] [-Attributes <
LunAlignInfo>] [-VserverContext <String>] [-Controller <NcController[]>] [<C
ommonParameters>]
Get-NcLunAlignment -Template [-VserverContext <String>] [-Controller <NcCont
roller[]>] [<CommonParameters>]
Get-NcLunAlignment -Query <LunAlignInfo> [-Attributes <LunAlignInfo>] [-Vser
verContext <String>] [-Controller <NcController[]>] [<CommonParameters>]
DESCRIPTION
Get a list of LUN alignment objects.
PARAMETERS
-Vserver <String[]>
Restrict results to the specified vserver(s). Data ONTAP wildcards are
permitted.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Path <String[]>
The path of one or more LUNs to get. Data ONTAP wildcards are permitted
.
Required? false
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Attributes <LunAlignInfo>
For improved scalability in large clusters, provide a LunAlignInfo objec
t with various fields set to indicate which fields to return on all obje
cts. Undesired fields should remain set to null. Use "Get-NcLunAlignme
nt -Template" to get the initially empty LunAlignInfo object. If not sp
ecified, all data is returned for each object.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-VserverContext <String>
Vserver to which to direct this command. If the currently connected con
troller (as embodied by an NcController object) represents a cluster, th
ere are multiple means to address commands to one of its vservers. Eith
er set the Vserver field on the NcController object to direct all subseq
uent commands to that vserver, or supply the VserverContext parameter to
an individual cmdlet. Only cmdlets which may be invoked on vservers of
fer the VserverContext parameter.
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
-Template
Specify to get an empty LunAlignInfo object for use with advanced querie
s involving the Query attribute.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Query <LunAlignInfo>
For advanced queries, provide a LunAlignInfo object with various fields
set to indicate which records to retrieve. Other fields should remain s
et to null. Use "Get-NcLunAlignment -Template" to get the initially emp
ty LunAlignInfo object.
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
DataONTAP.C.Types.Lun.LunAlignInfo
NOTES
Category: lun
API: lun-alignment-get-iter
Family: cluster, vserver
-------------- Example 1 --------------
C:\PS>Get-NcLunAlignment
Get the LUN alignment of all the LUNs in the current cluster.
Alignment : aligned
MultiprotocolType : windows_2008
NcController : 192.168.182.119
PartitionCount : 1
PartitionScheme : mbr
PartitionTable : {0x07: 2048}
Path : /vol/luns/lun0
ReadAlignmentHistogram : {0: 88, 1: 0, 2: 0, 3: 0...}
ReadPartialBlocks : 10
Vserver : joule
WriteAlignmentHistogram : {0: 95, 1: 0, 2: 0, 3: 0...}
WritePartialBlocks : 4
PartitionCountSpecified : True
ReadPartialBlocksSpecified : True
WritePartialBlocksSpecified : True
Alignment : misaligned
MultiprotocolType : windows
NcController : 192.168.182.119
PartitionCount : 1
PartitionScheme : mbr
PartitionTable : {0x07: 2048}
Path : /vol/luns/lun1
ReadAlignmentHistogram : {0: 0, 1: 87, 2: 0, 3: 0...}
ReadPartialBlocks : 12
Vserver : joule
WriteAlignmentHistogram : {0: 0, 1: 95, 2: 0, 3: 0...}
WritePartialBlocks : 4
PartitionCountSpecified : True
ReadPartialBlocksSpecified : True
WritePartialBlocksSpecified : True
-------------- Example 2 --------------
C:\PS>$q = Get-NcLunAlignment -Template
$q.Alignment = "misaligned"
Get-NcLunAlignment -Query $q
Get all of the misaligned LUNs in the current cluster.
Alignment : misaligned
MultiprotocolType : windows
NcController : 192.168.182.119
PartitionCount : 1
PartitionScheme : mbr
PartitionTable : {0x07: 2048}
Path : /vol/luns/lun1
ReadAlignmentHistogram : {0: 0, 1: 87, 2: 0, 3: 0...}
ReadPartialBlocks : 12
Vserver : joule
WriteAlignmentHistogram : {0: 0, 1: 95, 2: 0, 3: 0...}
WritePartialBlocks : 4
PartitionCountSpecified : True
ReadPartialBlocksSpecified : True
WritePartialBlocksSpecified : True
RELATED LINKS
| Copyright © 2013 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|