Lvm-cache-stats » История » Версия 2
Константин Пильник, 2017-12-22 22:41
1 | 1 | Константин Пильник | h1. Lvm-cache-stats |
---|---|---|---|
2 | |||
3 | <pre> |
||
4 | 2 | Константин Пильник | NAME="my_logical_volume_name"; read -a ARR <<<$(dmsetup status $NAME); C=0;for N in start end segment_type md_block_size md_utilization cache_block_size cache_utilization read_hits read_misses write_hits write_misses demotions promotions dirty features; do echo "${N}: ${ARR[$C]}";((C++)); done |
5 | 1 | Константин Пильник | </pre> |