{"id":4355,"date":"2019-11-09T03:58:17","date_gmt":"2019-11-09T03:58:17","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=4355"},"modified":"2019-11-09T03:58:17","modified_gmt":"2019-11-09T03:58:17","slug":"how-to-detect-disk-data-change-on-vmware-vm-write-rate","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/how-to-detect-disk-data-change-on-vmware-vm-write-rate","title":{"rendered":"How to detect Disk Data change on Vmware VM ( write rate )"},"content":{"rendered":"<div class=\"page\" data-page-number=\"6\" data-loaded=\"true\"><div class=\"textLayer\"><div>\u00a0<\/div><div><strong>Enabling vCenter Server Data Collection<\/strong><\/div><div>\u00a0<\/div><div>To enable vCenter Server data collection:<\/div><div>1.Connect to the vCenter Server.<\/div><div>2 In the Administration menu item, selectvCenter Server Settings\u00a0 The vCenter Server Settings dialog is displayed.<\/div><div>3. Select Statistics.<\/div><\/div><div class=\"annotationLayer\"><p id=\"YpTmgNI\"><img loading=\"lazy\" decoding=\"async\" width=\"482\" height=\"396\" class=\"alignnone size-full wp-image-4356  img-responsive\" src=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2019\/11\/img_5dc50e37def68.png\" alt=\"\" srcset=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2019\/11\/img_5dc50e37def68.png 482w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2019\/11\/img_5dc50e37def68-300x246.png 300w\" sizes=\"auto, (max-width: 482px) 100vw, 482px\" \/><\/p><\/div><\/div><div class=\"page\" data-page-number=\"7\" data-loaded=\"true\"><div class=\"canvasWrapper\">\u00a0<\/div><div class=\"textLayer\"><div>4. Make sure that the Statistics Level value for all interval durations up to and including the one day duration is at least 2. If any of the durations have a value less than 2, do the following, starting with the smallest interval:<\/div><div>a) Select the interval and clickEdit<\/div><div>b) Change Statistics Level to\u00a0Level 2<\/div><div>c) Click OK<\/div><\/div><\/div><div><p id=\"xsgvHhJ\"><img loading=\"lazy\" decoding=\"async\" width=\"368\" height=\"238\" class=\"alignnone size-full wp-image-4360  img-responsive\" src=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2019\/11\/img_5dc638fb4e0e6.png\" alt=\"\" srcset=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2019\/11\/img_5dc638fb4e0e6.png 368w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2019\/11\/img_5dc638fb4e0e6-300x194.png 300w\" sizes=\"auto, (max-width: 368px) 100vw, 368px\" \/><\/p><\/div><div class=\"page\" data-page-number=\"7\" data-loaded=\"true\"><div class=\"textLayer\"><div>\u00a0<\/div><div>5. Repeat step 4 for all the values up to and including the 1 day interval duration.<\/div><div>6. Click OK and wait for at least a day before using the aggregate usage data. Collecting Data Characteristics for VMs<\/div><div>You can collect data characteristics for the virtual machines in a VPG in one of the following ways:<\/div><div>\u00a0<\/div><div>Via vSphere Client console performance statistics.<\/div><div>\u00a0<\/div><div>By running a script to collect the data characteristics.<\/div><div>\u00a0<\/div><div>Note: The script samples supplied with the download, require vSphere PowerCLI and permissions to access the vCenter Server using the script.<\/div><\/div><\/div><div class=\"page\" data-page-number=\"8\" data-loaded=\"true\"><div class=\"canvasWrapper\">\u00a0<\/div><div class=\"textLayer\"><div>8 By using operating system performance monitors, such as the Microsoft Performance Monitor utility for Windows operating systems or the <strong>iostat<\/strong> command for Linux operating systems. Collect data for a minimum of one day. Collecting this information\u00a0impacts on performance and therefore the collection period should be long enough to gather a true representation of usage but not too long. The first procedure described below, to collect data characteristics for the VMs via the vSphere Client console performance statistics, uses<\/div><div>a timeframe of one day and the second procedure, to collect data characteristics for the VMs by running a scri pt to collect the data characteristics uses a timeframe of seven days.<\/div><div>\u00a0<\/div><div>Note: When running vCenter Server versions before version 5.x, if any of the virtual machines use NFS storage, metrics for the<\/div><div>NFS storage are not generated by the vCenter Server. To collect data characteristics for the VMs via the vSphere Client console performance statistics:<\/div><div>1. In the vSphere Client console select the VM and open the Performance tab.<\/div><div>2. Click\u00a0Advanced<\/div><div>3 . Click the Charts Options link. The Customize Performance Chart dialog is displayed.<\/div><div><p id=\"ohUgGFv\"><img loading=\"lazy\" decoding=\"async\" width=\"683\" height=\"571\" class=\"alignnone size-full wp-image-4361  img-responsive\" src=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2019\/11\/img_5dc63918c1406.png\" alt=\"\" srcset=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2019\/11\/img_5dc63918c1406.png 683w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2019\/11\/img_5dc63918c1406-300x251.png 300w\" sizes=\"auto, (max-width: 683px) 100vw, 683px\" \/><\/p><\/div><div>4. In Chart Options , drill-down in Disk and select Past day<\/div><div>5. In Counters , click None to clear all the selections and then select <strong>Disk Write Rate<\/strong> or <strong>Write Rate<\/strong><\/div><div>6. Click OK<\/div><\/div><\/div><div class=\"page\" data-page-number=\"9\" data-loaded=\"true\"><div class=\"canvasWrapper\">\u00a0<\/div><div class=\"textLayer\"><div>9 A chart similar to the following is generated:<\/div><div><p id=\"WPeIOPh\"><img loading=\"lazy\" decoding=\"async\" width=\"555\" height=\"289\" class=\"alignnone size-full wp-image-4362  img-responsive\" src=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2019\/11\/img_5dc6392dbff8b.png\" alt=\"\" srcset=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2019\/11\/img_5dc6392dbff8b.png 555w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2019\/11\/img_5dc6392dbff8b-300x156.png 300w\" sizes=\"auto, (max-width: 555px) 100vw, 555px\" \/><\/p><\/div><div>Use the chart for the average write rate of the VM.<\/div><div>To collect data characteristics for the VMs via a script:<\/div><div>Note:<\/div><div>The following script and the samples supplied with the download, require vSphere PowerCLI and permissions to access<\/div><div>the vCenter Server using the script.<\/div><div>\u00a0<\/div><div>Run a script similar to the following:<\/div><\/div><\/div><div>\u00a0<\/div><div><div class=\"page\" data-page-number=\"9\" data-loaded=\"true\"><div class=\"textLayer\"><div>$report = @()<\/div><div>Get-VM | %{<\/div><div>$stats = Get-Stat -Entity $ -Stat disk.write.average -Start (Get-Date).adddays(-7) &#8211;<\/div><div>ErrorAction SilentlyContinue<\/div><div>if($stats){<\/div><div>$statsGrouped = $stats | Group-Object -Property MetricId<\/div><div>$row = &#8220;&#8221; | Select Name, WriteAvgKBps, WriteAvgMBps<\/div><div>$row.Name = $_.Name<\/div><div>$row.WriteAvgKBps = ($statsGrouped |<\/div><div>where {$_.Name -eq &#8220;disk.write.average&#8221;} |<\/div><div>%{$_.Group | Measure-Object -Property Value -Average}).Average<\/div><div>$row.WriteAvgMBps = $row.WriteAvgKBps\/1024<\/div><div>$row.WriteAvgKBps = &#8220;{0:N2}&#8221; -f $row.WriteAvgKbps<\/div><div>$row.WriteAvgMBps = &#8220;{0:N2}&#8221; -f $row.WriteAvgMBps<\/div><div>$report += $row<\/div><div>}<\/div><div>}<\/div><div>$report | Export-Csv &#8220;C:\\ZertoOutput.csv&#8221;<\/div><div class=\"endOfContent\">\u00a0<\/div><\/div><\/div><div class=\"page\" data-page-number=\"10\" data-loaded=\"true\"><div class=\"canvasWrapper\">\u00a0<\/div><div class=\"textLayer\">\u00a0<\/div><\/div><\/div><div>\u00a0<\/div><div class=\"page\" data-page-number=\"9\" data-loaded=\"true\"><div class=\"textLayer\"><div>Note:\u00a0If you want a value other than seven days, change the value of the adddays() function. For example to collect data<\/div><div>for three days, use adddays(-3)<\/div><div>\u00a0<\/div><div>Use the resulting file, C:\\ZertoOutput.csv , for the average write rate of the VM.<\/div><div>Note: Versions of this script are included in the download with this document<\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>\u00a0Enabling vCenter Server Data Collection\u00a0To enable vCenter Server data collection:1.Connect to the vCenter Server.2 In the Administration menu item, selectvCenter Server Settings\u00a0 The vCenter Server Settings dialog [&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":[3082,3084,594,3083,2449],"class_list":["post-4355","post","type-post","status-publish","format-standard","hentry","category-research","tag-disk-data-change","tag-stats","tag-vmware","tag-write-rate","tag-zerto"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/4355","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=4355"}],"version-history":[{"count":2,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/4355\/revisions"}],"predecessor-version":[{"id":4363,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/4355\/revisions\/4363"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=4355"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=4355"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=4355"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}