{"id":4350,"date":"2019-11-04T03:55:11","date_gmt":"2019-11-04T03:55:11","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=4350"},"modified":"2019-11-04T03:55:11","modified_gmt":"2019-11-04T03:55:11","slug":"measuring-hyper-v-disk-rate-change","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/measuring-hyper-v-disk-rate-change","title":{"rendered":"Measuring Hyper V Disk Rate Change"},"content":{"rendered":"<div class=\"page\" data-page-number=\"10\" data-loaded=\"true\"><div class=\"textLayer\"><div><div>You can collect data characteristics for the virtual<\/div><div>machines in a VPG in one of the following ways:<\/div><div>\u00a0<\/div><ul><li>By using operating system performance monitors, such as the Microsoft Performance Monitor utility for Windows operating systems or the iostat command for Linux operating systems.<\/li><li>By using Windows PowerShell in Windows Server 2012 to collect network utilization (and other information). When using metering ACLs, you can measure the total network traffic sent and received by a virtual mach ine. To collect performance characteristics for the virtual machines in a VPG, using PowerShell, do the following:<\/li><\/ul><div>\u00a0<\/div><div>Turn on resource metering for the relevant virtual machines, if it is not already enabled<\/div><\/div><div>Adjust the collection frequency, if necessary.<\/div><div>\u00a0<\/div><div>Collect the relevant statistics. Zerto recommends that you collect data for a minimum of one day. When you have enough statistics, you may want to turn off resource metering since data collection can impact performance.<\/div><div>\u00a0<\/div><div><strong>Turning on Resource Metering\u00a0<\/strong><\/div><div>By default, resource metering\u00a0is not enabled. To turn on resource metering for one virtual machine, enter the following<\/div><div>PowerShell command:<\/div><div>\u00a0<\/div><div>Get-VM &lt;VM-name &gt; | Enable-VMResourceMetering<\/div><div>\u00a0<\/div><div>To turn on monitoring for all virtual machines on a server at one time, enter the following PowerShell command:<\/div><div>\u00a0<\/div><div>Get-VM | Enable-VMResourceMetering<\/div><div>\u00a0<\/div><div>Once you enable resource metering, Hyper-V begins to collect data. You can reset metering at any time, which discards the data that has been collected up to that point.<\/div><div>If resource metering is enabled but no NetworkAdapterAcls are configured, Hyper-V configures them to measure total network traffic. To measure network traffic throug h an IP range, configure the NetworkAdapterAcls for the IP range before runningEnable-VMResourceMetering<\/div><div>.<\/div><div><strong>Adjusting the Collection Frequency<\/strong><\/div><div>By default, the collection frequency is once every hour. You can change the collection frequency, but understand that datacollection can impact performance. To change the<\/div><div>collection frequency, enter the following command:<\/div><div>\u00a0<\/div><div>Set-VMHost \u2013ComputerName &lt;host-server-name&gt; -ResourceMeteringSaveInterval &lt;HH:MM:SS&gt;<\/div><div>\u00a0<\/div><div>The collection frequency is always set at the host server level.You cannot adjust the collection frequency per virtual machine<\/div><div>.For example, if you enter 01:30:00, resource consumption will be ollected every hour and a half.<\/div><div>\u00a0<\/div><div><strong>Collecting and Viewing the Relevant Statistics<\/strong><\/div><div>To view resource usage for one virtual machine, enter the following command:<\/div><div>\u00a0<\/div><div>Get-VM &lt;VM-name&gt; | Measure-VM<\/div><div>\u00a0<\/div><div>Resource metering data can be displayed for all of the virtual machines that are running on a host. To see data for all of thevirtual machines on a host, enter the following command:<\/div><div>\u00a0<\/div><div>Get-VM | Measure-VM<\/div><div>\u00a0<\/div><div>You can configure PowerShell to display only certain statistics. To do this, you must know the object names that PowerShell<\/div><div>assigns to each statistic. You can see the object names by entering the following command:<\/div><div>\u00a0<\/div><div>Get-VM | Measure-VM | Select-Object *<\/div><div>\u00a0<\/div><div>For example, when working with Zerto Virtual Replication, you are interested in network traffic.To list the network traffic foreach virtual machine, enter the following command:<\/div><div>\u00a0<\/div><div>Get-VM | Measure-VM | Select-Object VMName, NetworkMeteredTrafficReport<\/div><div>\u00a0<\/div><div>You can use VM Network Adapter ACLs to measure network activity to and from a specific network. For example, to meter<\/div><div>network traffic for a special subnet or IP address:<\/div><div>\u00a0<\/div><div>Add-VMNetworkAdapterAcl -VMName &lt;VM-name&gt; -Action Meter -RemoteIPAddress 10.10.0.0\/16 -Direction Outbound<\/div><div>\u00a0<\/div><div><strong>Turning off Resource Metering<\/strong><\/div><div>To disable the collection of performance statistics, enter the following PowerShell command:<\/div><div>Disable-VMResourceMetering -VMName &lt;VM-name&gt;<\/div><div class=\"endOfContent\">\u00a0<\/div><\/div><\/div><div class=\"page\" data-page-number=\"11\" data-loaded=\"true\"><div class=\"canvasWrapper\">\u00a0<\/div><div class=\"textLayer\">\u00a0<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>You can collect data characteristics for the virtualmachines in a VPG in one of the following ways:\u00a0By using operating system performance monitors, such as the Microsoft Performance [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4350","post","type-post","status-publish","format-standard","hentry","category-research"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/4350","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=4350"}],"version-history":[{"count":1,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/4350\/revisions"}],"predecessor-version":[{"id":4351,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/4350\/revisions\/4351"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=4350"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=4350"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=4350"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}