UNIX/유닉스 공통

SCSI 정보를 알아보자

99iberty 2013. 7. 15. 20:25

 

 

http://ssambback.tistory.com/entry/SCSI-%EC%A0%95%EB%B3%B4%EB%A5%BC-%EC%95%8C%EC%95%84%EB%B3%B4%EC%9E%90

 

 

리눅스 시스템에서 FC를 이용한 스토리지 볼륨을 사용할 경우 전반적인 SCSI 정보를 Gathering

할필요가 있다. WWPN 이라든지, HBA 카드 정보라든지, SCSI 연결 정보에 대한 전체적인

정보를 어떻게 가져오는지 다음과 같이 진행해 보자..


1. SYSFS를 통한 WWPN 검색

/sys/class/scsi_host/host1/state 를 아래와 같이 검색했을 경우 각 Host 별로 FC Link

현황에 대한 상태 정보를 확인할수 있다.


# cat /sys/class/scsi_host/host1/state

Link Up - Ready:

Fabric

For qlogic devices (qla2xxx driver) the output would instead

be as follows:


 


 

2. SYSTOOL 를 통한 WWPN 검색

SYSTOOL은 RedHat Enterprise Linux 계열의 운영체제에서만 사용할수 있는 Tool 이다.

SYSTOOL을 사용하기 위해서는 아래와 같이 설치 절차를 진행한다.


[root@/]yum -y install sysutils --> SysTool Packag에 systool 명령어가

포함되어 있다.

To examine some simple information about the Fibre Channel HBAs in a machine:

# systool -c fc_host -v

To look at verbose information regarding the SCSI adapters present on a system:

# systool -c scsi_host -v

To see what Fibre Channel devices are connected to the Fibre Channel HBA cards:

# systool -c fc_remote_ports -v -d

For Fibre Channel transport information:

# systool -c fc_transport -v

For information on SCSI disks connected to a system:

# systool -c scsi_disk -v

To examine more disk information including which hosts are connected to which disks:

# systool -b scsi -v

Furthermore, by installing the sg3_utils package it is possible to use the sg_map command to view more information about the SCSI map. After installing the package, run:

# modprobe sg

# sg_map -x

Finally, to obtain driver information, including version numbers and active parameters, the following commands can be used for the lpfc and qla2xxx drivers respectively:

# systool -m lpfc -v

# systool -m qla2xxx -v


 

 

Original Source : https://access.redhat.com/knowledge/solutions/9936

 

 

 

 

 

http://bwhite.tistory.com/m/post/view/id/528

 

 

# systool -c fc_host -v : HBA 카드의 Device Path, Link up/down 여부, Link speed , port type, wwn 등

# systool -c fc_remote_ports -v -d : HBA 카드에 연결된 타겟 디바이스의 WWPN, WWNN 등을 확인.

# systool -c fc_transport -v : 위 명령어와 비슷한 결과

# systool -c scsi : 스토리지의 캐쉬타입, raid type, time out, 제조사 등의 정보 확인