Checking fractional reserves

The check_netapp_pro suite of scripts provides a suite of tools for retrieving data values on NetApp filers and checking them against reference values. Among other features, the check_netapp_anycli.pl script can check for fractional reserves values. Fractional reserves, expressed as percentages and also known as LUN overwrite reserves, are a NetApp feature which enables control of the overwrite reserve. This feature can be used to maximize storage utilization for a given volume. The check_netapp_pro scripts produce various output reports which display this value amongst many others. This, in turn, enables a user to check whether the fractional reserves are configured as expected, and whether the space remaining for overwrites is sufficient for any given case. Firstly, let’s see what a typical run might output for us using the check_netapp_anycli.pl script.$ check\_netapp\_anycli.pl -m 7m -H HOST --in=vol --in=options --in=vol0 CLI-OUTPUT: root, diskroot, nosnap=off, nosnapdir=off, minra=off, no\_atime\_update=off, nvfail=off, ignore\_inconsistent=off, snapmirrored=off, create\_ucode=off, convert\_ucode=off, maxdirsize=16291, schedsnapname=ordinal, fs\_size\_fixed=off, guarantee=volume, svo\_enable=off, svo\_checksum=off, svo\_allow\_rman=off, svo\_reject\_errors=off, no\_i2p=off, fractional\_reserve=100, extent=off, try\_first=volume\_grow, read\_realloc=off, snapshot\_clone\_dependency=off, dlog\_hole\_reserve=off, nbu\_archival\_snap=off No pattern for expected output specified.Rather than wade through each of those options looking for a particular configuration key and value, we can let the script do all the work and tell it to warn us, or not, under certain conditions. We’ll use the ‑‑result_like and ‑‑result_unlike arguments to inspect/check the output, based on certain search criteria.$ check\_netapp\_anycli.pl -m 7m -H HOST ‑‑in=vol ‑‑in=options ‑‑in=vol0 ‑‑out\_like="fractional\_reserve=100" ‑‑result\_unlike=WARNING OK - output matches pattern 'fractional\_reserve=100'The above returns OK only if the fractional_reserve equals 100. In any other case it would return WARNING.``` $ check_netapp_anycli.pl -m 7m -H HOST ‑‑in=vol ‑‑in=options ‑‑in=vol0 ‑‑out_like=“fractional_reserve=100” ‑‑result_like=WARNING WARNING - output matches pattern ‘fractional_reserve=100’


Privacy Policy
Fading out 7-Mode

Comments