You have it backwards.  'df' says 24% used, not remaining.  'check_disk' shows how much is remaining (76% and 99% in this case).  I've never liked how check_disk displays its results by default, most Unix tools show as a primary metric how much of a resource is used and not how much is remaining.  It always looks wrong.<br>
<br><br>Jeffrey.<br><div class="gmail_quote">On Fri, Jan 20, 2012 at 3:18 AM, Ensing, Harm <span dir="ltr"><<a href="mailto:harm.ensing@atos.net">harm.ensing@atos.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="NL" link="blue" vlink="purple">
<div>
<p class="MsoNormal">Hi,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span>Please</span> help</p>
<p class="MsoNormal">See <span>this</span> output:</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New"">$
<span>df</span> -h /S00022_BACKUP</span></p>
<p class="MsoNormal"><span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New"">Filesystem</span></span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""><span>            
</span>size<span>   </span>used<span>  </span>avail capacity<span> 
</span>Mounted on</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New"">S00022_BACKUP<span>         
</span>2.6T<span>    </span>94G<span>   </span>307G<span>   
</span>24%<span>    </span>/S00022_BACKUP</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New"">$ plugins/<span>check_disk</span> -E -w 20% -c 10% -W 10% -K 8% -u MB -p /S00022_BACKUP</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New"">DISK OK - free space: /S00022_BACKUP 314182 MB (76%
<span>inode</span>=99%);| /S00022_BACKUP=95885MB;328053;36906 0;0;410067</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New"">$
<span>zpool</span> list S00022_BACKUP</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New"">NAME<span>           
</span>SIZE<span>  </span>ALLOC<span>   </span>FREE<span>   
</span>CAP<span>  </span>HEALTH<span>  </span>ALTROOT</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New"">S00022_BACKUP<span> 
</span>2.66T<span>  </span>2.32T<span>   </span>349G<span>   
</span>87%<span>  </span>ONLINE<span>  </span>-</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""> </span></p>
<p class="MsoNormal"><span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New"">df</span></span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""> says FS is 24% free, so no problem.</span></p>

<p class="MsoNormal"><span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New"">Check_disk</span></span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""> says 76% full, so that matches, still no problem.</span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New"">Assuming
<span>inode</span>=99% reports <span>inode</span> table 99% full (!) I would expect a warning/critical from ‘-W 10% -K 8%’ but it does not do that.</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New"">‘<span>zpool</span> list’ shows ‘87%’ which is totally different.</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""> </span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""><span>-<span style="font:7.0pt "Times New Roman"">   
</span></span></span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New"">Am I interpreting the info wrong?</span><span lang="EN-US"></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""><span>-<span style="font:7.0pt "Times New Roman"">   
</span></span></span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New"">How can I dig up more detailed info on
<span>inode</span> usage in a <span>zpool</span>?</span><span lang="EN-US"></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New""><span>-<span style="font:7.0pt "Times New Roman"">   
</span></span></span><span lang="EN-US" style="font-size:10.0pt;font-family:"Courier New"">What causes the difference between ‘<span>df</span> –h’ and ‘<span>check_disk</span>’ on one side and ‘<span>zpool</span>
 list’ on the other side?</span><span lang="EN-US"></span></p>
<p class="MsoNormal"><br></p></div></div></blockquote></div>