<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Way for Harvest to graph inode usage? in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Way-for-Harvest-to-graph-inode-usage/m-p/128701#M23107</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/12525"&gt;@CSCOTTENO&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Capacity info is collected from OCUM and as far as I know inodes used (files) per volume is not tracked, which means Harvest can't pull it either. &amp;nbsp;If you use Quotas then Harvest does pull 'files_used'. &amp;nbsp;If your data is in qtrees then summing them up in Graphite/Grafana, grouped by volume, would give you the volume total file count. &amp;nbsp;A query like this would do it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;groupByNode(netapp.capacity.$Group.$Cluster.svm.$SVM.vol.$Volume.qtree.*.files_used, 7, 'sum')&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If your data is not in qtrees, you or you want to collect it natively, you can use a custom template to add in a counter that shows inodes used "wv_fsinfo_public_inos_used" which contains the current inode count for a volume. &amp;nbsp;To do this follow these steps:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Create a new config template that includes this counter:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;cat &amp;lt;&amp;lt; EOF &amp;gt; /opt/netapp-harvest/template/cdot-volume-files.conf
%poller =   (
        'volume' =&amp;gt;
                        {
                                counter_list     =&amp;gt; [ qw(vserver_name vserver_uuid node_name node_uuid parent_aggr
                                                                        read_data write_data
                                                                        read_ops write_ops other_ops total_ops
                                                                        read_latency write_latency other_latency avg_latency
                                                                        wv_fsinfo_public_inos_used
                                                                        )],
                                graphite_leaf    =&amp;gt; 'svm.{vserver_name}.{node_name}.{parent_aggr}.{instance_name}',
                                plugin           =&amp;gt; 'cdot-volume',
                                plugin_options   =&amp;gt; {'svm' =&amp;gt; 1, 'node' =&amp;gt; 1, 'aggr' =&amp;gt; 1},
                                enabled          =&amp;gt; '1'
                        }
);
EOF&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Update your poller entry in /opt/netapp-harvest.conf to merge this config template on top of the default one by using the template variable like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[sdt-cdot1]
hostname       = 10.64.28.242
site           = dev
template = default,cdot-volume-files.conf&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) Restart your pollers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;/opt/netapp-harvest/netapp-manager -restart&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4) After 2 polling cycles (120 seconds) create a graph in Grafana for a metrics path like (replace my site/cluster/svm/volume names with your own, use wildcards, or use template variables in Grafana):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;netapp.perf.dev.sdt-cdot1-dev.svm.sdt-vs-nas1.vol.wfa1131.wv_fsinfo_public_inos_used&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In case your next question is to show % inodes used or total (potential) inode count for a volume I checked for counters for these but could not find any. &amp;nbsp;To capture these you would be best to use the volume API (Harvest only knows how to use the counter manager API from the conf template) or a shell script of df -i and parse and&amp;nbsp;send these in to Graphite directly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Chris Madden&lt;/P&gt;&lt;P&gt;Solution Architect - 3rd Platform - Systems Engineering NetApp EMEA (and author of Harvest)&lt;/P&gt;&lt;P&gt;Blog:&amp;nbsp;&lt;A href="http://www.beginswithdata.com/" target="_blank"&gt;It all begins with data&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If this post resolved your issue, please help others by selecting&amp;nbsp;&lt;STRONG&gt;ACCEPT AS SOLUTION&lt;/STRONG&gt;&amp;nbsp;or adding a&amp;nbsp;&lt;STRONG&gt;KUDO &lt;/STRONG&gt;or both!&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Mar 2017 09:27:17 GMT</pubDate>
    <dc:creator>madden</dc:creator>
    <dc:date>2017-03-06T09:27:17Z</dc:date>
    <item>
      <title>Way for Harvest to graph inode usage?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Way-for-Harvest-to-graph-inode-usage/m-p/128656#M23099</link>
      <description>&lt;P&gt;Is there a way to graph inode usage in volumes?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2017 15:02:50 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Way-for-Harvest-to-graph-inode-usage/m-p/128656#M23099</guid>
      <dc:creator>CSCOTTENO</dc:creator>
      <dc:date>2017-03-03T15:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Way for Harvest to graph inode usage?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Way-for-Harvest-to-graph-inode-usage/m-p/128701#M23107</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/12525"&gt;@CSCOTTENO&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Capacity info is collected from OCUM and as far as I know inodes used (files) per volume is not tracked, which means Harvest can't pull it either. &amp;nbsp;If you use Quotas then Harvest does pull 'files_used'. &amp;nbsp;If your data is in qtrees then summing them up in Graphite/Grafana, grouped by volume, would give you the volume total file count. &amp;nbsp;A query like this would do it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;groupByNode(netapp.capacity.$Group.$Cluster.svm.$SVM.vol.$Volume.qtree.*.files_used, 7, 'sum')&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If your data is not in qtrees, you or you want to collect it natively, you can use a custom template to add in a counter that shows inodes used "wv_fsinfo_public_inos_used" which contains the current inode count for a volume. &amp;nbsp;To do this follow these steps:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Create a new config template that includes this counter:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;cat &amp;lt;&amp;lt; EOF &amp;gt; /opt/netapp-harvest/template/cdot-volume-files.conf
%poller =   (
        'volume' =&amp;gt;
                        {
                                counter_list     =&amp;gt; [ qw(vserver_name vserver_uuid node_name node_uuid parent_aggr
                                                                        read_data write_data
                                                                        read_ops write_ops other_ops total_ops
                                                                        read_latency write_latency other_latency avg_latency
                                                                        wv_fsinfo_public_inos_used
                                                                        )],
                                graphite_leaf    =&amp;gt; 'svm.{vserver_name}.{node_name}.{parent_aggr}.{instance_name}',
                                plugin           =&amp;gt; 'cdot-volume',
                                plugin_options   =&amp;gt; {'svm' =&amp;gt; 1, 'node' =&amp;gt; 1, 'aggr' =&amp;gt; 1},
                                enabled          =&amp;gt; '1'
                        }
);
EOF&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Update your poller entry in /opt/netapp-harvest.conf to merge this config template on top of the default one by using the template variable like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[sdt-cdot1]
hostname       = 10.64.28.242
site           = dev
template = default,cdot-volume-files.conf&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) Restart your pollers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;/opt/netapp-harvest/netapp-manager -restart&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4) After 2 polling cycles (120 seconds) create a graph in Grafana for a metrics path like (replace my site/cluster/svm/volume names with your own, use wildcards, or use template variables in Grafana):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;netapp.perf.dev.sdt-cdot1-dev.svm.sdt-vs-nas1.vol.wfa1131.wv_fsinfo_public_inos_used&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In case your next question is to show % inodes used or total (potential) inode count for a volume I checked for counters for these but could not find any. &amp;nbsp;To capture these you would be best to use the volume API (Harvest only knows how to use the counter manager API from the conf template) or a shell script of df -i and parse and&amp;nbsp;send these in to Graphite directly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Chris Madden&lt;/P&gt;&lt;P&gt;Solution Architect - 3rd Platform - Systems Engineering NetApp EMEA (and author of Harvest)&lt;/P&gt;&lt;P&gt;Blog:&amp;nbsp;&lt;A href="http://www.beginswithdata.com/" target="_blank"&gt;It all begins with data&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If this post resolved your issue, please help others by selecting&amp;nbsp;&lt;STRONG&gt;ACCEPT AS SOLUTION&lt;/STRONG&gt;&amp;nbsp;or adding a&amp;nbsp;&lt;STRONG&gt;KUDO &lt;/STRONG&gt;or both!&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 09:27:17 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Way-for-Harvest-to-graph-inode-usage/m-p/128701#M23107</guid>
      <dc:creator>madden</dc:creator>
      <dc:date>2017-03-06T09:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: Way for Harvest to graph inode usage?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Way-for-Harvest-to-graph-inode-usage/m-p/131277#M23786</link>
      <description>&lt;P&gt;Thanks!&amp;nbsp; I never was notified you responded.&amp;nbsp; Just stumbled across your reply now.&amp;nbsp; I will give it a shot.&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 19:09:08 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Way-for-Harvest-to-graph-inode-usage/m-p/131277#M23786</guid>
      <dc:creator>CSCOTTENO</dc:creator>
      <dc:date>2017-05-23T19:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Way for Harvest to graph inode usage?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Way-for-Harvest-to-graph-inode-usage/m-p/131338#M23802</link>
      <description>&lt;P&gt;Have tested this and it is working great in combination with Graphite.&amp;nbsp; Now have an embeddible graph for management perusal.&amp;nbsp; Thanks again!&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 13:18:56 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Way-for-Harvest-to-graph-inode-usage/m-p/131338#M23802</guid>
      <dc:creator>CSCOTTENO</dc:creator>
      <dc:date>2017-05-25T13:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Way for Harvest to graph inode usage?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Way-for-Harvest-to-graph-inode-usage/m-p/159767#M27979</link>
      <description>&lt;P&gt;So is there a way to get % inodes used and left so we can alert on them in counters?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 20:29:17 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Way-for-Harvest-to-graph-inode-usage/m-p/159767#M27979</guid>
      <dc:creator>Malwai-Sardar</dc:creator>
      <dc:date>2020-09-28T20:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Way for Harvest to graph inode usage?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Way-for-Harvest-to-graph-inode-usage/m-p/166284#M28207</link>
      <description>&lt;P&gt;Great post&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 23 Apr 2021 17:03:49 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Way-for-Harvest-to-graph-inode-usage/m-p/166284#M28207</guid>
      <dc:creator>jbastogne</dc:creator>
      <dc:date>2021-04-23T17:03:49Z</dc:date>
    </item>
  </channel>
</rss>

