OS

[Linux] RHEL FC Card WWN 확인 방법

secretpiece 2019. 7. 26. 14:16

1. lspci | grep -i fibre 명령어로 HBA 장치 확인

2Port의 HBA card 가 2장인것을 확인 할수 있음.

 - HBA 확인 방법

 

18:00.0 Fibre Channel: QLogic Corp. ISP2722-based 16/32Gb Fibre Channel to PCIe Adapter (rev 01)
18:00.1 Fibre Channel: QLogic Corp. ISP2722-based 16/32Gb Fibre Channel to PCIe Adapter (rev 01)

 

86:00.0 Fibre Channel: QLogic Corp. ISP2722-based 16/32Gb Fibre Channel to PCIe Adapter (rev 01)
86:00.1 Fibre Channel: QLogic Corp. ISP2722-based 16/32Gb Fibre Channel to PCIe Adapter (rev 01)

 

총 2개의 HBA Card를 확인할 수 있음.

 

2. ls -l /sys/class/scsi_host 명령어로 FC 매칭 host 확인.

각종 host들 중에 FC 번호랑 매칭되는 host 를 찾을수 있음.

해당 명령어로 위의 HBA 장치 번호랑 매칭되는 host 를 찾을수 있습니다.

18:00.0 = host3 -> ../../devices/pci0000:17/0000:17:00.0/0000:18:00.0/host3/scsi_host/host3

18:00.1 = host12 -> ../../devices/pci0000:17/0000:17:00.0/0000:18:00.1/host12/scsi_host/host12

 

86:00.0 = host13 -> ../../devices/pci0000:85/0000:85:00.0/0000:86:00.0/host13/scsi_host/host13

86:00.1 = host14 -> ../../devices/pci0000:85/0000:85:00.0/0000:86:00.1/host14/scsi_host/host14

 

3. cat /sys/class/scsi_host/host3/device/fc_host/host3/port_name 로host 의 WWN 확인

0x2100f4e9d4528f7a 가 WWN 입니다.

해당 명령어로 host3(번호는 각각 다름) 을 읽으시면 WWN  을 알수 있습니다

host3 의 WWN 는 0x2100f4e9d4528f7a 인것을 알수 있습니다.