jkroonza / lvmcache-statistics

lvmcache-statistics.sh displays the LVM cache statistics in a user friendly manner

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

= LVM Cache Statistics

lvmcache-statistics.sh displays the LVM cache statistics in a user friendly manner

Copyright (C) 2014 Armin Hammer Copyright (C) 2023-2024 Jaco Kroon

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

History: 20141220 hammerar, initial version 20230803 jkroon:

  • amended to auto-detect and report on all cache volumes.
  • work even if there are snapshots of cached volumes (albeit with extra -real after LV name) 20240308 jkroon:
  • Remove the -real if there. This has other risks but the risk of someone naming a LV something-real is probably low.
  • Hide division by zero errors when calculating read/write hit ratio's and display na% when this happens.

About

lvmcache-statistics.sh displays the LVM cache statistics in a user friendly manner

License:GNU General Public License v3.0


Languages

Language:Shell 100.0%