HP-UX

Diagnostic System Warning(excessive error)

 
이신영
기여자

Diagnostic System Warning(excessive error)

model : k570

OS : 11.00



Syslog에 Diagnostic System Warning(excessive error)이 많이

발생합니다 이전에 Hitachi에 연결하여 사용하던걸 disconnect

시키고서 ioscan 하면 이전에 device file이 No_H/W상태로 나타다

Diagmond이 이런 device file 때문에 많은 에러를 발생하는

것 같은데??



Syslog에 이러한 메세지가 더이상 발생하지 않게 하고 싶습니다?

1.현재 No_HW로 나타나는 device file을 삭제하고 재구성해

주어야하는지? (어떻게 하는지 detail하게?)

2./etc/opt/resmon/lbin/monconfig에서 Moniter 수정을 하여

log가 syslog에 안넘어 가게 해야는지?(이부분도 자세히 설명을?)

3. 그 외의 다른 어떤 방법이 있는지 궁급합니다



현재 Syslog에 계속 Log가 많이 쌓이는 관계로 조치를 취하고 싶습니다



2 응답 2
고광태
중학생

Diagnostic System Warning(excessive error)

1. 인터페이스는 NO_HW ==> 누군가 리부팅없이 연결을 해제한것 같네요..아래의 내용을 참조하세요..



2. FC 를 사용하지 않으셔도 되면...



) Boot single-user. /sbin/mount /usr

/sbin/mount /var

2) cd /etc/rc.config.d

3) vi fc_td_conf (this is probably your FC config file but if not it should be close)

4) set FC_TD_START=0 (again you may be a little different) and save the file

5)

/sbin/umount /var

/sbin/umount /usr

sync; sync; sync

6) Now reboot normally and the FC should be bypassed so that you can run swinstall.



3. 사용하지 않는다면 카드를 빼셔도 될것 같네요..



4. 에러메세지가 뜨는 원인을 정확하게 아셔야 할것 같네요..다음과 같은 절차를 밞으셔서 조치를 해보세요



1) Go to the TOOLS menu, under TOOLS, select RUN.

2) When the RUN UTILITY box pops up select 'logtool' and click on OK.

3) When the LOGTOOL UTILITY window opens, go to the FILE menu and select 'SELECT RAW' when the 'LOGTOOL UTILITY: SELECT RAW LOG FILE' window opens it will display a log file name like '/var/stm/logs/os/log??.raw.cur' (where ?? is some number). Just click on OK here. This will read the log file and bring up the 'LOGTOOL UTILITY: VIEW RAW SUMMARY' window which will tell you what device or devices had errors.



어디에서 메세지를 뿌리고 있는지 알수있을것입니다.







아래내용은 NO_HW 에 대한 자료 입니다.



참조하시길..



Disk 상태를 확인하기 위하여, ioscan(1M) 명령어에 -H 옵션으로 확인하는 경우,

S/W State 가 NO_HW 로 report 되는 경우가 있습니다. 이런 경우, 해당 disk 는

사용시 아무런 문제가 없습니다. 원인은 무엇입니까?

답]아래와 같은 example 을 통해 설명을 드리겠습니다.



# ioscan -funCdisk

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

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

disk 1 0/0/1/0.8.0 sdisk CLAIMED DEVICE HP 36.4GST336752LC

/dev/dsk/c0t8d0 /dev/rdsk/c0t8d0

disk 2 0/0/1/0.10.0 sdisk CLAIMED DEVICE HP 36.4GST336752LC

/dev/dsk/c0t10d0 /dev/rdsk/c0t10d0

disk 3 0/0/1/0.12.0 sdisk CLAIMED DEVICE HP 36.4GST336752LC

/dev/dsk/c0t12d0 /dev/rdsk/c0t12d0

disk 4 0/0/1/0.14.0 sdisk CLAIMED DEVICE HP 36.4GST336752LC

/dev/dsk/c0t14d0 /dev/rdsk/c0t14d0

disk 0 0/0/1/1.15.0 sdisk CLAIMED DEVICE HP 36.4GMAN3367MC

/dev/dsk/c1t15d0 /dev/rdsk/c1t15d0

disk 5 0/0/2/0.1.0 sdisk CLAIMED DEVICE HP DVD-ROM 305

/dev/dsk/c2t1d0 /dev/dsk/cdrom /dev/rdsk/c2t1d0



위와 같은 disk 들의 상태를 hardware path 를 이용하여 check 하기 위하여,

ioscan(1M) 명령과 -H 옵션을 사용할 수 있습니다.



* 0/0/1/0 bus 에 부착된 hardware check.

# ioscan -fnH 0/0/1/0

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

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

ext_bus 0 0/0/1/0 c720 CLAIMED INTERFACE SCSI C896 Ultra Wide LVD

target 0 0/0/1/0.7 tgt CLAIMED DEVICE

ctl 0 0/0/1/0.7.0 sctl CLAIMED DEVICE Initiator

/dev/rscsi/c0t7d0

target 1 0/0/1/0.8 tgt CLAIMED DEVICE

disk 1 0/0/1/0.8.0 sdisk CLAIMED DEVICE HP 36.4GST336752LC

/dev/dsk/c0t8d0 /dev/rdsk/c0t8d0

target 2 0/0/1/0.10 tgt CLAIMED DEVICE

disk 2 0/0/1/0.10.0 sdisk CLAIMED DEVICE HP 36.4GST336752LC

/dev/dsk/c0t10d0 /dev/rdsk/c0t10d0

target 3 0/0/1/0.12 tgt CLAIMED DEVICE

disk 3 0/0/1/0.12.0 sdisk CLAIMED DEVICE HP 36.4GST336752LC

/dev/dsk/c0t12d0 /dev/rdsk/c0t12d0

target 4 0/0/1/0.14 tgt CLAIMED DEVICE

disk 4 0/0/1/0.14.0 sdisk CLAIMED DEVICE HP 36.4GST336752LC

/dev/dsk/c0t14d0 /dev/rdsk/c0t14d0



* 0/0/1/1 bus 에 부착된 hardware check.

# ioscan -fnH 0/0/1/1

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

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

ext_bus 1 0/0/1/1 c720 CLAIMED INTERFACE SCSI C896 Ultra Wide Single-Ended

target 5 0/0/1/1.7 tgt CLAIMED DEVICE

ctl 1 0/0/1/1.7.0 sctl CLAIMED DEVICE Initiator

/dev/rscsi/c1t7d0

target 6 0/0/1/1.15 tgt CLAIMED DEVICE

disk 0 0/0/1/1.15.0 sdisk CLAIMED DEVICE HP 36.4GMAN3367MC

/dev/dsk/c1t15d0 /dev/rdsk/c1t15d0



* 0/0/2/0 bus 에 부착된 hardware check.

# ioscan -fnH 0/0/2/0

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

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

ext_bus 2 0/0/2/0 c720 CLAIMED INTERFACE SCSI C87x Fast Wide Single-Ended

target 7 0/0/2/0.1 tgt CLAIMED DEVICE

disk 5 0/0/2/0.1.0 sdisk CLAIMED DEVICE HP DVD-ROM 305

/dev/dsk/c2t1d0 /dev/dsk/cdrom /dev/rdsk/c2t1d0

target 8 0/0/2/0.2 tgt CLAIMED DEVICE

tape 0 0/0/2/0.2.0 stape CLAIMED DEVICE HP C1537A

/dev/rmt/0m /dev/rmt/0mnb /dev/rmt/c2t2d0BESTn /dev/rmt/c2t2d0DDSb

/dev/rmt/0mb /dev/rmt/c2t2d0BEST /dev/rmt/c2t2d0BESTnb /dev/rmt/c2t2d0DDSn

/dev/rmt/0mn /dev/rmt/c2t2d0BESTb /dev/rmt/c2t2d0DDS /dev/rmt/c2t2d0DDSnb

target 9 0/0/2/0.7 tgt CLAIMED DEVICE

ctl 2 0/0/2/0.7.0 sctl CLAIMED DEVICE Initiator

/dev/rscsi/c2t7d0



위의 3가지 example 과 같이 -H 옵션 뒤에는 bus path 를 입력하여, 사용을 하게되면

정상적인 결과 값을 report 하게 됩니다.



하지만, -H 옵션 뒤에 bus path 아래의 path 를 입력하게 되면, 그 path 에 부착된

hardware device 의 state 를 모두 NO_HW 로 setting 하게 되는 잘못된 결과값을

report 하게 됩니다. 아래는 그 예제입니다.



# ioscan -fnH 0/0/2 (<-- bus path 가 0/0/2/0 이나 그 아래를 적용)

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

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

ext_bus 2 0/0/2/0 c720 NO_HW INTERFACE SCSI C87x Fast Wide Single-Ended

target 7 0/0/2/0.1 tgt NO_HW DEVICE

disk 5 0/0/2/0.1.0 sdisk NO_HW DEVICE HP DVD-ROM 305

/dev/dsk/c2t1d0 /dev/dsk/cdrom /dev/rdsk/c2t1d0

target 8 0/0/2/0.2 tgt NO_HW DEVICE

tape 0 0/0/2/0.2.0 stape NO_HW DEVICE HP C1537A

/dev/rmt/0m /dev/rmt/0mnb /dev/rmt/c2t2d0BESTn /dev/rmt/c2t2d0DDSb

/dev/rmt/0mb /dev/rmt/c2t2d0BEST /dev/rmt/c2t2d0BESTnb /dev/rmt/c2t2d0DDSn

/dev/rmt/0mn /dev/rmt/c2t2d0BESTb /dev/rmt/c2t2d0DDS /dev/rmt/c2t2d0DDSnb

target 9 0/0/2/0.7 tgt NO_HW DEVICE

ctl 2 0/0/2/0.7.0 sctl NO_HW DEVICE Initiator

/dev/rscsi/c2t7d0

ext_bus 3 0/0/2/1 c720 NO_HW INTERFACE SCSI C87x Ultra Wide Single-Ended

target 10 0/0/2/1.7 tgt NO_HW DEVICE

ctl 3 0/0/2/1.7.0 sctl NO_HW DEVICE Initiator

/dev/rscsi/c3t7d0



# ioscan -funCdisk

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

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

disk 1 0/0/1/0.8.0 sdisk CLAIMED DEVICE HP 36.4GST336752LC

/dev/dsk/c0t8d0 /dev/rdsk/c0t8d0

disk 2 0/0/1/0.10.0 sdisk CLAIMED DEVICE HP 36.4GST336752LC

/dev/dsk/c0t10d0 /dev/rdsk/c0t10d0

disk 3 0/0/1/0.12.0 sdisk CLAIMED DEVICE HP 36.4GST336752LC

/dev/dsk/c0t12d0 /dev/rdsk/c0t12d0

disk 4 0/0/1/0.14.0 sdisk CLAIMED DEVICE HP 36.4GST336752LC

/dev/dsk/c0t14d0 /dev/rdsk/c0t14d0

disk 0 0/0/1/1.15.0 sdisk CLAIMED DEVICE HP 36.4GMAN3367MC

/dev/dsk/c1t15d0 /dev/rdsk/c1t15d0

disk 5 0/0/2/0.1.0 sdisk NO_HW DEVICE HP DVD-ROM 305

/dev/dsk/c2t1d0 /dev/dsk/cdrom /dev/rdsk/c2t1d0



위와 같이 0/0/2/0.1.0 device 의 state 가 NO_HW 로 report 됩니다.



이런 경우는 -C 또는 ioscan 명령을 다시 수행하여, state 를 정상적으로

setting 해 주어야 합니다.



이런 결과는 -H 옵션의 특성이며, -H 옵션 사용시 hardware path 는 반드시

bus path 를 지정하여야 합니다. 아래는 ioscan(1M)의 man page 중 위의

경우에 대한 설명입니다.



-H hw_path Restrict the scan and output listing to those

devices connected at the specified hardware

path. The hardware path must be a bus path.

Scanning below the bus level will not probe the

hardware and may produce incorrect results. For

example, specifying the path at the target

level will always change the state of the

device attached to it as NO_HW.

김병수
본과생

Diagnostic System Warning(excessive error)

예전에 사용하던 disk array를 정리했다면 깔끔하게 server를 rebootig

하여 NO_H/W를 정리하시기 바랍니다.



물론 disk volume 에 관련 file들도 정리를 하여야 합니다.



hitachi disk array를 분리시켰다면 /etc/lvmtab file이나 /etc/fatab file등등 ...disk 의 logical volume관련 file들도 chekck하여 연결된 device만 설정을 하여야 합니다.



그럼 NO_HW은 없어 질것입니다.