Problem: There is Virtual machine with 3 virtual hard disks. Goal is to get the performance data for the VHD's associated with the virtual machine.
I am currently using below counters to track the VHD performance.
$Counters = @(
'\Hyper-V Virtual Storage Device(*)\Write Bytes/sec',
'\Hyper-V Virtual Storage Device(*)\Read Bytes/sec',
'\Hyper-V Virtual Storage Device(*)\Read Operations/sec',
'\Hyper-V Virtual Storage Device(*)\Write Operations/sec',
'\Hyper-V Virtual Storage Device(*)\Latency',
'\Hyper-V Virtual Storage Device(*)\Throughput',
'\Hyper-V Virtual Storage Device(*)\Queue Length'
)
interesting part is even if there is good amount disk activity going on inside Guest VM counters are not reported for 2 out of 3 VHD's.
Details about Guest VM and Hyper-V host:
OS : Windows Server 2008 R2
VHD 1 -> IDE controller based
VHD 2 and VHD 3 -> SCSI controller.
performance counter is not getting reported for SCSI based VHD's. Integration services are installed for the virtual machine.
Hyper-V host version : Microsoft Windows Server 2019 Datacenter