Misaligned I/O to LUNs owned by virtual machines can cause severe performance bottlenecks. The attached script leverages a new cmdlet in Toolkit 1.2, Get-NaHyperV, to check for misalignment in any Data ONTAP storage attached to Hyper-V virtual machines. (The script works by examining real-time I/O statistics reported by Data ONTAP, so false readings are theoretically possible for virtual machines that are not running or are generating little or no I/O.)
PS C:\> Show-NaHyperVAlignment.ps1
Virtual Machine: OpalisVM
Disk: O:\OpalisVM.vhd
Type: VHD
Host path: O:\
Host disk: \\.\PHYSICALDRIVE6
Host volume: \\?\Volume{4044589b-4fd9-4c90-8495-f430945e7439}\
Controller: dunn
Address: 10.61.167.60
Igroup: viaRPC.iqn.1991-05.com.microsoft:x3550rre7.rtprre.testdomain
ONTAP volume: opalis
ONTAP LUN: /vol/opalis/opalisVM
LUN type: hyper_v
Aligned: Yes
Disk: Disk 2 50.01 GB Bus 0 Lun 1 Target 2
Type: Passthrough
Host path:
Host disk: \\.\PHYSICALDRIVE2
Host volume:
Controller: benson
Address: 10.61.167.61
Igroup: viaRPC.iqn.1991-05.com.microsoft:x3550rre7.rtprre.testdomain
ONTAP volume: vol1
ONTAP LUN: /vol/vol1/testlun2
LUN type: hyper_v
Aligned: Yes
--------------------------------------------------------------------------------
Virtual Machine: W2k3OpalisVM
Disk: P:\W2k3OpalisVM.vhd
Type: VHD
Host path: P:\
Host disk: \\.\PHYSICALDRIVE9
Host volume: \\?\Volume{b451b1cb-8dac-4161-8bfa-a4410e2691a8}\
Controller: dunn
Address: 10.61.167.60
Igroup: viaRPC.iqn.1991-05.com.microsoft:x3550rre7.rtprre.testdomain
ONTAP volume: opalis
ONTAP LUN: /vol/opalis/w2k3OpalisVM
LUN type: image
Aligned: *** No ***