q1208c 回复于:2004-04-28 15:46:51 |
iostat is only list the disk performance, not the partitions. So, if you 'ls -l /dev/sd*', you can find that like follow: btw-rw---- 1 root disk 11, 0 Jan 30 2003 /dev/scd0 So, this device should be dev11 in iostat output. |
joey_hung 回复于:2004-04-28 16:14:30 |
I have five disks sda sdb sdc sdd sde but iostat show dev8-0 dev8-1 dev8-2 dev8-3 dev8-4 那我怎麼知道dev8-0是對應到哪一個device |
sakulagi 回复于:2004-04-28 16:19:52 |
iostat is only list the disk performance, not the partitions. So, if you 'ls -l /dev/sd*', you can find that like follow: btw-rw---- 1 root disk [b:9bf908ba8c][color=red:9bf908ba8c]11, 0[/color:9bf908ba8c][/b:9bf908ba8c] Jan 30 2003 /dev/[b:9bf908ba8c][color=red:9bf908ba8c]scd0[/color:9bf908ba8c][/b:9bf908ba8c] So, this device should be [b:9bf908ba8c][color=red:9bf908ba8c]dev11-0[/color:9bf908ba8c][/b:9bf908ba8c] in iostat output. --------------------- 借用一下q1208c的话,^_^ |
q1208c 回复于:2004-04-28 16:20:28 |
btw-rw---- 1 root disk 11, 0 Jan 30 2003 /dev/scd0 这个就是 dev11-0了, 我想你那个会有不同的吧。 |
joey_hung 回复于:2004-04-28 16:24:56 |
感謝指導 |
q1208c 回复于:2004-04-28 16:28:04 |
[quote:a7f44f6736="sakulagi"]ostat output. --------------------- 借用一下q1208c的话,^_^[/quote:a7f44f6736] 有版权的哟!你没付费,告你去! :em08: :em02: |
sakulagi 回复于:2004-04-28 16:32:43 |
[quote:560d4c57c0="q1208c"] 有版权的哟!你没付费,告你去! :em08: :em02:[/quote:560d4c57c0]又水别人帖子…… :em06: |
q1208c 回复于:2004-04-28 16:36:01 |
[quote:4b505f48ad="sakulagi"]炙?鹑颂?印?? :em06:[/quote:4b505f48ad] :em12: |
joey_hung 回复于:2004-04-28 16:36:29 |
但是我的sda如下,這樣不就表示iostat 可以看到partitions的i/o brw-rw---- 1 root disk 8, 0 May 21 2002 sda brw-rw---- 1 root disk 8, 1 May 21 2002 sda1 brw-rw---- 1 root disk 8, 2 May 21 2002 sda2 brw-rw---- 1 root disk 8, 3 May 21 2002 sda3 brw-rw---- 1 root disk 8, 4 May 21 2002 sda4 |
q1208c 回复于:2004-04-28 16:42:46 |
[quote:50abc5bd89="joey_hung"]但是我的sda如下,這樣不就表示iostat 可以看到partitions的i/o brw-rw---- 1 root disk 8, 0 May 21 2002 sda brw-rw---- 1 root disk 8, 1 May 21 2002 sda1 brw-rw---- 1 r..........[/quote:50abc5bd89] 楼主能把其它几个也一起帖上来看看么?我这就两个,看不出什么。 |
joey_hung 回复于:2004-04-28 16:46:32 |
brw-rw---- 1 root disk 8, 0 May 21 2002 sda brw-rw---- 1 root disk 8, 1 May 21 2002 sda1 brw-rw---- 1 root disk 8, 2 May 21 2002 sda2 brw-rw---- 1 root disk 8, 3 May 21 2002 sda3 brw-rw---- 1 root disk 8, 4 May 21 2002 sda4 |
q1208c 回复于:2004-04-28 16:49:14 |
试试这个 iostat -x |
joey_hung 回复于:2004-04-28 16:53:28 |
iostat -x like following.... avg-cpu: %user %nice %sys %idle 1.50 0.00 1.00 1021.50 Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util pool? 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 pool? 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 pool? 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 sda 0.00 0.67 0.00 2.00 0.00 21.33 10.67 0.02 8.30 5.21 1.07 sda1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 sda2 0.00 0.33 0.00 1.00 0.00 10.67 10.67 0.01 6.18 5.21 0.53 sda3 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 sda4 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 sda5 0.00 0.33 0.00 1.00 0.00 10.67 10.67 0.01 10.42 10.42 1.07 sda6 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 sdb 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 sdb1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 sdb2 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 sdc 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 sdc1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 sdd 0.00 2.33 1.67 4.67 13.33 56.00 10.95 0.00 0.62 0.62 0.40 sdd1 0.00 2.33 1.67 4.67 13.33 56.00 10.95 0.00 0.62 0.62 0.40 sde 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 sde1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 |
q1208c 回复于:2004-04-28 17:03:03 |
[quote:f644bf1b90="joey_hung"]iostat -x like following.... avg-cpu: %user %nice %sys %idle 1.50 0.00 1.00 1021.50 Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm..........[/quote:f644bf1b90] 那就这样试试 iostat -x /dev/sda iostat -x /dev/sdb iostat -x /dev/sdc ...... |
joey_hung 回复于:2004-04-28 17:07:11 |
thanks |
q1208c 回复于:2004-04-28 17:10:26 |
不客气,还可以这样: iostat -d -x /dev/sda /dev/sdb /dev/sdc /dev/sdd /dev/sde |