Действия
Lvm-cache-stats¶
В debian 8 jessie
LVM version: 2.02.111(2) (2014-09-01) Library version: 1.02.90 (2014-09-01) Driver version: 4.27.0
lvs не умеет показывать
cache_total_blocks - Total cache blocks. cache_used_blocks - Used cache blocks. cache_dirty_blocks - Dirty cache blocks. cache_read_hits - Cache read hits. cache_read_misses - Cache read misses. cache_write_hits - Cache write hits. cache_write_misses - Cache write misses.
Получить эти данные можем через dmsetup
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
Обновлено Константин Пильник почти 7 года назад · 3 изменени(я, ий)