取消
顯示結果 
搜尋替代 
您的意思是: 

sar -d 看到的disk 怎變少了

sar -d 看到的disk 怎變少了

# uname -a

HP-UX rx5670 B.11.23 U ia64 4026697163 unlimited-user license



我用iostat 可以看到4顆硬碟

sar -d 卻剩下一顆

# iostat 3



device bps sps msps



c0t0d0 0 0.0 1.0

c6t0d0 0 0.0 1.0

c6t0d1 0 0.0 1.0

c6t0d2 0 0.0 1.0



c0t0d0 41 5.0 1.0

c6t0d0 0 0.0 1.0

c6t0d1 0 0.0 1.0

c6t0d2 0 0.0 1.0



# sar -d 3 3



HP-UX rx5670 B.11.23 U ia64 08/12/05



01:27:36 device %busy avque r+w/s blks/s avwait avserv

01:27:39 c0t0d0 1.33 0.50 3 48 0.00 13.27

01:27:42 c0t0d0 1.00 0.50 1 21 0.00 9.44

01:27:45 c0t0d0 0.67 0.50 1 11 0.00 7.18



Average c0t0d0 1.00 0.50 2 27 0.00 11.44

# ioscan -funCdisk

Class I H/W Path Driver S/W State H/W Type Description

==========================================================================

disk 0 0/0/2/0.0.0 sdisk CLAIMED DEVICE HP 36.4GST336753LC

/dev/dsk/c0t0d0 /dev/dsk/c0t0d0s2 /dev/rdsk/c0t0d0 /dev/rdsk/c0t0d0s2

/dev/dsk/c0t0d0s1 /dev/dsk/c0t0d0s3 /dev/rdsk/c0t0d0s1 /dev/rdsk/c0t0d0s3

disk 1 0/0/2/1.3.0 sdisk CLAIMED DEVICE HP DVD-ROM 305

/dev/dsk/c1t3d0 /dev/rdsk/c1t3d0

disk 3 255/255/0/0.0 sdisk CLAIMED DEVICE HSV110 (C)COMPAQ

/dev/dsk/c6t0d0 /dev/rdsk/c6t0d0

disk 4 255/255/0/0.1 sdisk CLAIMED DEVICE HSV110 (C)COMPAQ

/dev/dsk/c6t0d1 /dev/rdsk/c6t0d1

disk 10 255/255/0/0.2 sdisk CLAIMED DEVICE HSV110 (C)COMPAQ

/dev/dsk/c6t0d2 /dev/rdsk/c6t0d2
4 回覆

sar -d 看到的disk 怎變少了

另一台機器更奇怪連續兩次出現的硬碟數量竟然不一樣

# uname -a

HP-UX rx2600 B.11.23 U ia64 1020450884 unlimited-user license

# sar -d 3 3



HP-UX rx2600 B.11.23 U ia64 08/12/05



09:44:37 device %busy avque r+w/s blks/s avwait avserv

09:44:40 c2t0d0 3.65 0.50 11 213 0.00 6.48

c8t0d1 0.33 0.50 2 5 0.00 0.16

09:44:43 c2t0d0 4.00 0.50 9 112 0.00 16.05

09:44:46 c2t0d0 2.67 0.50 4 57 0.00 16.14

c8t0d2 0.33 0.50 0 1 0.00 0.30



Average c2t0d0 3.44 0.50 8 127 0.00 11.55

Average c8t0d1 0.11 0.50 1 2 0.00 0.16

Average c8t0d2 0.11 0.50 0 0 0.00 0.30

# sar -d 3 3



HP-UX rx2600 B.11.23 U ia64 08/12/05



09:44:53 device %busy avque r+w/s blks/s avwait avserv

09:44:56 c2t0d0 2.66 0.50 3 48 0.00 18.55

09:44:59 c2t0d0 1.33 0.50 2 29 0.00 11.74

09:45:02 c2t0d0 2.00 0.50 4 51 0.00 7.52



Average c2t0d0 2.00 0.50 3 43 0.00 11.97



# ioscan -funC disk

Class I H/W Path Driver S/W State H/W Type Description

============================================================================

disk 0 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-B

/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0

disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 36.4GST336753LC

/dev/dsk/c2t0d0 /dev/dsk/c2t0d0s2 /dev/rdsk/c2t0d0 /dev/rdsk/c2t0d0s2

/dev/dsk/c2t0d0s1 /dev/dsk/c2t0d0s3 /dev/rdsk/c2t0d0s1 /dev/rdsk/c2t0d0s3

disk 2 0/1/1/1.2.0 sdisk CLAIMED DEVICE HP 36.4GST336753LC

/dev/dsk/c3t2d0 /dev/dsk/c3t2d0s2 /dev/rdsk/c3t2d0 /dev/rdsk/c3t2d0s2

sar -d 看到的disk 怎變少了

因為沒有 io 的 disk並不會顯示在 sar -d 中

sar -d 看到的disk 怎變少了

這台 HP-UX 有 10 顆 disk, 但因為沒開 ap, 只有 OS 所在的 disk 有在 sar -d 中

-------------

root@hp1:/#sar -d 1 2



HP-UX hp1 B.10.20 B 9000/879 08/12/05



15:33:06 device %busy avque r+w/s blks/s avwait avserv

15:33:07

15:33:08 c0t6d0 2.00 0.50 3 48 0.29 20.10

c0t5d0 2.00 0.50 3 48 0.32 21.12



Average c0t6d0 1.00 0.50 1 24 0.29 20.10

Average c0t5d0 1.00 0.50 1 24 0.32 21.12

sar -d 看到的disk 怎變少了

sar -d Report activity for each block device, e.g., disk or tape drive. One line is printed for each device that had activity during the last interval. If no devices were active, a blank line is printed.