Mastering Windows Server 2016 Hyper-V

(Romina) #1

Figure 4.33 Configuring QoS for a disk


To configure storage QoS using PowerShell, use the Set-VMHardDiskDrive cmdlet and
configure the MaximumIOPS and MinimumIOPS parameters.


In addition to enabling QoS on storage, storage details are also now reported as part of
the resource metering introduced in Windows Server 2012. The storage-related data
returned includes the average IOPS, average latency, and the data read and written in
MB. An example of the information returned is shown in the following output:


PS E:> Measure‐VM ‐VMName savdalfs01 | fl


ComputerName : SAVDALHV01
VMId : 4c6db747-8591-4287-a8fc-ac55e37dba16
VMName : savdalfs01
HardDiskMetrics : {Microsoft.HyperV.PowerShell
.VirtualHardDiskMetrics, Microsoft.HyperV.PowerShell.VirtualHardDiskMetrics}
MeteringDuration :
AverageProcessorUsage : 204
AverageMemoryUsage : 3236
MaximumMemoryUsage : 3236
MinimumMemoryUsage : 3236
TotalDiskAllocation : 260096
AggregatedAverageNormalizedIOPS : 389
AggregatedAverageLatency : 633
AggregatedDiskDataRead : 103
AggregatedDiskDataWritten : 367
NetworkMeteredTrafficReport :
{Microsoft.HyperV.PowerShell.VMNetworkAdapterPortAclMeteringReport,
Microsoft.HyperV.PowerShell.VMNetworkAdapterPortAclMeteringReport,
Microsoft.HyperV.PowerShell.VMNetworkAdapterPortAclMeteringReport,
Microsoft.HyperV.PowerShell.VMNetworkAdapterPortAclMeteringReport}
AvgCPU : 204
AvgRAM : 3236

Free download pdf