{"id":1138,"date":"2010-11-29T09:06:17","date_gmt":"2010-11-29T08:06:17","guid":{"rendered":"http:\/\/vmdamentals.com\/?p=1138"},"modified":"2011-12-29T11:35:27","modified_gmt":"2011-12-29T10:35:27","slug":"rid-yourself-of-storerrs","status":"publish","type":"post","link":"https:\/\/www.vmdamentals.com\/?p=1138","title":{"rendered":"Rid yourself of superfluous vCenter datastore alarms"},"content":{"rendered":"<p><BR><\/p>\n<blockquote><p>New and improved in vSphere: Datastore alarms. Very nice to have, but some of these alarms are so generic, that datastores are simply always in an alarmed state. Errors like &#8220;non-VI workload detected&#8221; on your ISO LUN, &#8220;Datastore usage on disk&#8221; and so on. Here&#8217;s how to loose these errors on certain stores while enforcing them on others.\n<\/p><\/blockquote>\n<p><!--more--><br \/>\n<em><strong>UPDATE:<\/strong> An anonymous commenter pointed me to <a href=\"http:\/\/kb.vmware.com\/kb\/1031225\" target=\"_blanc\">this<\/a> VMware KB article. This article basically states that vCenter might become unresponsive as soon as you add alarms to datastore folders. So I guess it is wise not to add any alarms at this time to the datastores (My test environment hasn&#8217;t developed a problem yet though).<\/em><br \/>\n<BR><BR><br \/>\n<strong>Why some alarms don&#8217;t matter<\/strong><\/p>\n<p>An alarm is per definition only useful if it shows only when there is a real problem. If everyone&#8217;s car alarm would activate each and every day, soon no one will bother to even look up from their work if they hear an alarm go off.<\/p>\n<p>vSphere now has its share of these alarms. The two most obvious are:<\/p>\n<p>1) <em>Non-VI workload detected on the datastore<\/em>. This alarm is raised whenever vCenter detects an I\/O load or capacity usage which is not under control of vCenter (for example when you place ISO images on a LUN)<br \/>\n2) <em>Datastore usage on disk<\/em>. This alarm is raised whenever the available disk capacity exceeds a certain percentage. This alarm can be a problem when you have a LUN with only a single virtual disk with the full LUN size deployed.<\/p>\n<p>In the above examples, you are aware of the &#8220;problem&#8221; so you do not want to see alarms on these &#8220;problems&#8221;: You know you have ISO files on certain LUNs, and you know you filled up a LUN to 99.9% without risk (given the fact you do not put snapshot files on that particular LUN).<br \/>\n<BR><BR><br \/>\n<strong>How to put alarms only where you want them<\/strong><\/p>\n<p>The idea I had, was to use folders in the Datastore view. Disable the datastore alarms on the vCenter level, then create new Alarms on a folder level. An example is shown below:<br \/>\n<center><img decoding=\"async\" src=\"http:\/\/vmdamentals.com\/wp-content\/uploads\/2011\/12\/folders.png\" alt=\"Datastore folders for alarms in more detail\" \/><\/center>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<em>By creating Datastore folders you can put alarms onto Datastores in more detail.<\/em><br \/>\n<BR><BR><br \/>\nIn the example above, I created multiple folders. Each folder can have different alarms created. In the example, I show the alarm definitions of the folder &#8220;Data LUNs&#8221;. You can see two alarms where disabled (these are the alarms defined on the vCenter level). Next I recreated the &#8220;Non-VI workload detected&#8221; alarm on the folder itself. This effectively monitors all datastores in that folder for non-VI workloads, but it does not check disk space (that is because all my data LUNs are actually filled up to 99.9%).<\/p>\n<p>Other folders, like the &#8220;non-VI workloads&#8221; folder has the &#8220;datastore usage&#8221; alarm recreated but not the &#8220;non-VI workload detected&#8221;. So all datastores in that folder are monitored for unwanted filling up of the LUN, but non-VI workloads will not be a reason for an alarm.<\/p>\n<p>The &#8220;LUNs holding snapshots&#8221; are the LUNs where the VM configurations lie, and where the VMware snapshots land. On those LUNs I can recreate the &#8220;datastore usage&#8221; alarm with a lower &#8220;high water mark&#8221; if I like.<br \/>\n<BR><BR><br \/>\n<strong>Folders-in-folders<\/strong><\/p>\n<p>Using a single layered folder structure has one caveat: The more folders you build, the more rules you&#8217;ll have to recreate, often even multiple times. You could think it out and use folders in folders:<br \/>\n<center><img decoding=\"async\" src=\"http:\/\/vmdamentals.com\/wp-content\/uploads\/2011\/12\/folders2.png\" alt=\"Datastore folders-in-folders for alarms in more detail\" \/><\/center>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<em>By creating Datastore folders-in-folders you can configure alarms in more detail AND keep it manageble.<\/em><br \/>\n<BR><BR><br \/>\nThe example above creates a layered folder structure, where you do not have to create too many of the same alarms in different places. It is a bit harder to read, but you can still see the ISO-LUN is monitored on data usage only, while the data LUNs are monitored on non-VI workload only etc.<\/p>\n<p>Once you configure the above, you should not see any Datastore alarms come up any more &#8211; unless there really IS a problem!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>New and improved in vSphere: Datastore alarms. Very nice to have, but some of these alarms are so generic, that datastores are simply always in an alarmed state. Errors like &#8220;non-VI workload detected&#8221; on your ISO LUN, &#8220;Datastore usage on disk&#8221; and so on. Here&#8217;s how to loose these errors on certain stores while enforcing [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[77,5],"tags":[165,169,168,167,166,170,171,632,99],"class_list":["post-1138","post","type-post","status-publish","format-standard","hentry","category-storage","category-vmware","tag-datastore","tag-datastore-folders","tag-datastore-usage-on-disk","tag-non-vi-workload-detected","tag-vcenter","tag-vcenter-alarm","tag-vcenter-alarms","tag-vmware","tag-vsphere"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.vmdamentals.com\/index.php?rest_route=\/wp\/v2\/posts\/1138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vmdamentals.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vmdamentals.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vmdamentals.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vmdamentals.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1138"}],"version-history":[{"count":25,"href":"https:\/\/www.vmdamentals.com\/index.php?rest_route=\/wp\/v2\/posts\/1138\/revisions"}],"predecessor-version":[{"id":3525,"href":"https:\/\/www.vmdamentals.com\/index.php?rest_route=\/wp\/v2\/posts\/1138\/revisions\/3525"}],"wp:attachment":[{"href":"https:\/\/www.vmdamentals.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vmdamentals.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vmdamentals.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}