Data ONTAP® PowerShell Toolkit

Switch to Data ONTAP 7-mode documentation.

Cmdlet: Get-NcVirtualDiskAlignment


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 <AbstractCon
troller>] [<CommonParameters>]


DESCRIPTION
Get the disk partitions of the given Virtual Hard Disk and determine if they
are aligned. VHD and VHDX format disks are supported.

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 <AbstractController>
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


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

C:\PS>Get-NaVirtualDiskAlignment C:\ClusterStorage\Volume2\VirtualDisks\Win2
k3_VM1\win2k3-boot.vhdx


Get the alignment of a VHDX virtual disk.


VirtualDisk: C:\ClusterStorage\Volume2\VirtualDisks\Win2k3_VM1\win2k3-boot.v
hdx

IsBootable AbsoluteStartingLba Size IsExtendedBootRecor
d IsAligned
---------- ------------------- ---- -------------------
- ---------
True 63 20 GB Fals
e False



RELATED LINKS
Repair-NaVirtualDiskAlignment







 Data ONTAP® PowerShell Toolkit