qijinxiong 发表于 2013-1-17 02:52:51

查看 linux 下磁盘或者状态

# iostat 1Linux 2.6.18-194.el5xen (myweb)         2011年03月26日avg-cpu:%user   %nice %system %iowait%steal   %idle         4.44    0.01    6.53    5.28    0.01   83.73Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtnsda             121.70      1376.56      3265.67254286108603250972sda1            0.00         0.01         0.00       1947          4sda2            2.53      59.70      49.80   11027282    9200024sda3            6.03       126.25       121.16   23321848   22380736sda4            0.00         0.00         0.00          8          0sda5            1.95      15.95      45.34    2946055    8376352sda6            111.18      1174.63      3049.36216984259563293840sda7            0.00         0.02         0.00       4261         16avg-cpu:%user   %nice %system %iowait%steal   %idle          10.12    0.00    2.50    3.38    0.00   84.00Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtnsda            30.00         0.00   11208.00          0      11208sda1            0.00         0.00         0.00          0          0sda2            0.00         0.00         0.00          0          0sda3            0.00         0.00         0.00          0          0sda4            0.00         0.00         0.00          0          0sda5            0.00         0.00         0.00          0          0sda6             30.00         0.00   11208.00          0      11208sda7            0.00         0.00         0.00          0          0avg-cpu:%user   %nice %system %iowait%steal   %idle          12.55    0.00    5.22    3.98    0.00   78.26Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtnsda            33.00         0.00   13136.00          0      13136sda1            0.00         0.00         0.00          0          0sda2            0.00         0.00         0.00          0          0sda3            0.00         0.00         0.00          0          0sda4            0.00         0.00         0.00          0          0sda5            0.00         0.00         0.00          0          0sda6             33.00         0.00   13136.00          0      13136sda7            0.00         0.00         0.00          0          0 
 
   查看磁盘分区的活动状态
 
# df -m文件系统               1M-块      已用   可用 已用% 挂载点/dev/sda2                63934   16708   4392628% //dev/sda7                33905       177   31979   1% /usr/loca/dev/sda6                96864   79398   1246787% /ora/dev/sda5               193732   35943    14779020% /myweb/dev/sda1                  487      24       438   6% /boottmpfs                     3795         0      3795   0% /dev/shmnone                      3795         1      3795   1% /var/lib/xenstored 
页: [1]
查看完整版本: 查看 linux 下磁盘或者状态