sar + почему sar не отображает реальные диски в разделе DEV

Вы могли бы сделать:

file=path/to/symlink
{ rm -f -- "$file" && cat > "$file"; } < "$file"

(, который копирует только содержимое, а не метаданные файла, такие как разрешения и права собственности ).

0
24.09.2019, 16:56
1 ответ

От человека:

-d

Report activity for each block device<....>Device names may also be pretty-printed if option -p is used

-p

Pretty-print device names. Use this option in conjunction with option -d. By default names are printed as dev m-n where m and n are the major and minor num- bers for the device. Use of this option displays the names of the devices as they (should) appear in /dev. Name mappings are controlled by /etc/syscon- fig/sysstat.ioconf.

 sar -p -d 1 1


07:16:35 PM       DEV       tps  rd_sec/s  wr_sec/s  avgrq-sz  avgqu-sz     await     svctm     %util
07:16:36 PM       sda     13.00      0.00    120.00      9.23      0.04      3.08      1.38      1.80
07:16:36 PM vg_livecd-lv_root     15.00      0.00    120.00      8.00      0.05      3.07      1.27      1.90
07:16:36 PM vg_livecd-lv_swap      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00
07:16:36 PM vg_livecd-lv_home      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00
1
28.01.2020, 02:39

Теги

Похожие вопросы