Notice
Recent Posts
Recent Comments
03-28 14:34
관리 메뉴

Black&White

Linux(RedHat 계열) 에 systool 설치 및 사용 본문

Linux

Linux(RedHat 계열) 에 systool 설치 및 사용

V.E.N 2013. 7. 19. 10:45

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

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

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


Method 1>

 HBA(Host Bus Adapter) 인터페이스 찾는 방법


lspci -nn |grep -i hba


WWPN(World wide Port Name) 확인

ls -lrt /sys/class/fc_host/host[0-9]*/port_name


Method 2>

systool 명령을 이용하여 확인방법

systool 은 sysfsutils 패키지에 포함되어 있다.


설치

yum install sysfsutils


사용법




# 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:



Comments