# iostat | grep hdisk | grep -v grep | sort +1 -nbr | head -n 3
> iostat의 두번째 컬럼(% tm_act)이 %disk busy를 의미
> sort +1 -nbr > +1 : 두번째 컬럼 && -nbr : 숫자를 기준으로 공백을 무시한 다음 역차순 정렬
> head -n 3 : %disk busy가 높은 상위3개 disk
hdisk0 0.0 0.0 0.0 0 8
hdisk1 0.0 0.0 0.0 0 0
hdisk15 0.0 0.0 0.0 46 1040
# lsattr -El sys0 -a iostat
iostat false Continuously maintain DISK I/O history True
# chdev -l sys0 -a iostat='true'
sys0 changed
# lsattr -El sys0 -a iostat
iostat true Continuously maintain DISK I/O history True
# iostat
System configuration: lcpu=8 drives=4 ent=0.50 paths=4 vdisks=1
tty: tin tout avg-cpu: % user % sys % idle % iowait physc % entc
0.0 0.4 12.0 12.7 75.3 0.0 0.2 38.4
Disks: % tm_act Kbps tps Kb_read Kb_wrtn
hdisk15 0.1 3.6 0.8 2370328 22060960
hdisk0 0.0 2.3 0.0 15244936 561344
hdisk4 0.0 6.4 0.1 8851881 34571404
hdisk1 0.0 2.4 0.0 7231061 9210888
# iostat -f (파일시스템 보기)
System configuration: lcpu=8 drives=4 ent=0.50 paths=4 vdisks=1 fs=13
tty: tin tout avg-cpu: % user % sys % idle % iowait physc % entc
0.0 0.4 12.0 12.7 75.3 0.0 0.2 38.4
Disks: % tm_act Kbps tps Kb_read Kb_wrtn
hdisk15 0.1 3.6 0.8 2370328 22061080
hdisk0 0.0 2.3 0.0 15244936 561344
hdisk4 0.0 6.4 0.1 8851881 34571404
hdisk1 0.0 2.4 0.0 7231061 9210888
FS Name: % tm_act Kbps tps Kb_read Kb_wrtn
/ - 0.0 0.0 0 0
/usr - 0.0 0.0 0 0
/var - 0.0 0.0 0 0
/tmp - 0.0 0.0 0 0
/home - 0.0 0.0 0 0
/admin - 0.0 0.0 0 0
/proc - 0.0 0.0 0 0
/opt - 0.0 0.0 0 0
/var/adm/ras/livedum - 0.0 0.0 0 0
/mksysb - 0.0 0.0 0 0
/source_apple - 0.0 0.0 0 0
/spot - 0.0 0.0 0 0
/export/nim - 0.0 0.0 0 0
# iostat -F /mksysb (특정파일시스템만 보기)
System configuration: lcpu=8 ent=0.50 fs=13
FS Name: % tm_act Kbps tps Kb_read Kb_wrtn
/mksysb - 0.0 0.0 0 0
# iostat -a 3 1
> -a : adapter 정보 기준으로, 3 : 3초간 io사용량을 수집한 다음, 1 : 1번 반족해서 출력
> Adapter 별 io사용량 && vios의 경우, 할당된 virtual adapter 별로 io 사용량을 볼 수 있음
> vhost별로 mapping 된 device의 정보가 출력되므로 어느정도의 mapping정보까지 파악가능
System configuration: lcpu=8 drives=53 ent=0.30 paths=232 vdisks=14 tapes=0
tty: tin tout avg-cpu: % user % sys % idle % iowait physc % entc
0.0 27.5 0.7 4.9 94.4 0.0 0.0 10.6
Adapter: Kbps tps Kb_read Kb_wrtn
fcs0 33.4 10.1 0 96
Disks: % tm_act Kbps tps Kb_read Kb_wrtn
hdisk2 0.0 12.5 3.1 0 36
hdisk1 0.0 0.0 0.0 0 0
hdisk3 0.0 20.9 5.6 0 60
hdisk0 0.0 0.0 0.0 0 0
Adapter: Kbps tps Kb_read Kb_wrtn
fcs1 32.0 9.0 0 92
Disks: % tm_act Kbps tps Kb_read Kb_wrtn
hdisk2 0.0 11.1 3.1 0 32
hdisk1 0.0 0.0 0.0 0 0
hdisk3 0.0 20.9 5.2 0 60
hdisk0 0.0 0.0 0.0 0 0
Vadapter: Kbps tps bkread bkwrtn
vhost1 23.6 11.8 5.9 5.9
Vtargets/Disks: tps bread bwrtn
hdisk2_a1dir_hdisk0 5.9 0.0 24.2K
Vadapter: Kbps tps bkread bkwrtn
vhost2 0.0 0.0 0.0 0.0
Vtargets/Disks: tps bread bwrtn
hdisk6_a1smis_hdisk0 0.0 0.0 0.0
Vadapter: Kbps tps bkread bkwrtn
vhost0 41.7 20.9 10.4 10.4
Vtargets/Disks: tps bread bwrtn
hdisk15_a1nim_hdisk3 0.0 0.0 0.0
hdisk5_a1nim_hdisk2 0.0 0.0 0.0
hdisk4_a1nim_hdisk1 0.0 0.0 0.0
hdisk3_a1nim_hdisk0 10.4 0.0 42.7K
#
'IBM Power' 카테고리의 다른 글
Apache FTP Server 를 이용한 FTP Server 구축 (0) | 2012.10.30 |
---|---|
entstat 으로 특정 network interface의 데이터 전송속도를 조회하는 스크립트... (0) | 2012.10.10 |
vios 의 virtual ethernet adapter가 사용하는 pvid 확인... (0) | 2012.09.24 |
aix의 /var 파일시스템이 계속 full되거나 cron 에서 queue 에러가 계속 날 경우... (0) | 2012.09.21 |
NIM 서버 관련 정리... (0) | 2012.09.21 |