Data ONTAP® PowerShell Toolkit

Switch to Data ONTAP Cluster-mode documentation.

Cmdlet: Get-NaVirtualDiskAlignment


NAME
Get-NaVirtualDiskAlignment

SYNOPSIS
Get the disk partitions of the given Virtual Hard Disk and determine if they
are aligned.

SYNTAX
Get-NaVirtualDiskAlignment [-VirtualDisk] <String> [-Controller <NaControlle
r>] [<CommonParameters>]


DESCRIPTION
Get the disk partitions of the given Virtual Hard Disk and determine if they
are aligned.

The virtual disk must be an MBR disk. Virtual disks inside a Data ONTAP vol
ume not visible to the host are supported (accessed using a /vol/<volname>/<
path> path).


PARAMETERS
-VirtualDisk <String>
Path to the virtual hard disk. This can be a fully-qualified Windows pa
th or a path to a file inside a Data ONTAP volume (/vol/<volname>/<path>
). If the path is to a file inside a Data ONTAP volume an NaController
must be specified using the Controller parameter or must be present in $
global:CurrentNaController.

Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
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

<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.PowerShell.SDK.Cmdlets.HyperV.MbrPartition


NOTES


Category: host

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

C:\PS>Get-NaVirtualDiskAlignment E:\misaligned.vhd


Get the alignment information of the partitions contained in the virtual dis
k.


VirtualDisk: E:\misaligned.vhd

IsBootable AbsoluteStartingLba Size IsEbr IsAligned
---------- ------------------- ---- ----- ---------
False 63 14680064 False False


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

C:\PS>Get-NaVirtualDiskAlignment /vol/vol4/VHDs/w7.vhd


Get the alignment of the VHD file on the controller.


VirtualDisk: /vol/vol4/VHDs/w7.vhd

IsBootable AbsoluteStartingLba Size IsEbr IsAligned
---------- ------------------- ---- ----- ---------
True 2048 204800 False True
False 206848 58511360 False True



RELATED LINKS
Repair-NaVirtualDiskAlignment







 Data ONTAP® PowerShell Toolkit