1.iostat reports CPU, disk I/O, and NFS statistics.
# iostat
Linux 2.6.32-71.el6.i686 (acer) 08/26/2011 _i686_ (1 CPU)
avg-cpu: %user %nice %system %iowait %steal %idle
18.29 0.02 2.86 1.50 0.00 77.33
Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn
sda 3.39 46.64 114.26 2038820 4994648
dm-0 8.78 42.51 58.56 1858074 2559816
dm-1 0.01 0.06 0.00 2696 0
dm-2 7.20 3.82 55.70 167018 2434800
dm : devices in LVM
#sudo lvdisplay|awk '/LV Name/{n=$3} /Block device/{d=$3; sub(".*:","dm-",d); print d,n;}'
dm-0 /dev/vg_xiao/LV_root
dm-1 /dev/vg_xiao/LV_swp
dm-2 /dev/vg_xiao/LV_home
可以#iostat -N
Linux 2.6.32-71.el6.i686 (acer) 08/26/2011 _i686_ (1 CPU)
avg-cpu: %user %nice %system %iowait %steal %idle
18.55 0.02 2.94 1.49 0.00 77.00
Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn
sda 3.42 45.76 119.64 2045832 5348832
vg_xiao-LV_root 9.27 41.71 62.72 1864730 2804008
vg_xiao-LV_swp 0.01 0.06 0.05 2736 2120
vg_xiao-LV_home 7.34 3.74 56.87 167234 2542672
阅读(630) | 评论(0) | 转发(0) |