본문 바로가기

Linux

Linux 6.x FC Card Gbic wwid 확인

lspci 로 Gbic 정보 확인

 

[root@sam ~]# lspci|grep -i fibre

09:00.0 Fibre Channel: QLogic Corp. ISP8324-based 16Gb Fibre Channel to PCI Express Adapter (rev 02)

09:00.1 Fibre Channel: QLogic Corp. ISP8324-based 16Gb Fibre Channel to PCI Express Adapter (rev 02)

[root@sam ~]# 

 

해당 장치를 확인한다.

 

[root@sam block]# cd /sys/class/scsi_host/

[root@sam scsi_host]# ll

total 0

lrwxrwxrwx 1 root root 0 Nov 15 13:49 host0 -> ../../devices/pci0000:00/0000:00:02.2/0000:07:00.0/host0/scsi_host/host0

lrwxrwxrwx 1 root root 0 Nov 15 13:49 host1 -> ../../devices/pci0000:00/0000:00:03.0/0000:09:00.0/host1/scsi_host/host1

lrwxrwxrwx 1 root root 0 Nov 15 13:49 host2 -> ../../devices/pci0000:00/0000:00:03.0/0000:09:00.1/host2/scsi_host/host2

[root@sam scsi_host]# 

 

09:00.0, 09:00.1 이 확인 되며 각각 host1과 host2로 확인

 

<해당 정보가 다음의 위치에 존재>

[root@sam scsi_host]# cd  /sys/class/scsi_host/host1/device/fc_host/host1

[root@sam host1]# ll

total 0

-rw-r--r-- 1 root root 4096 Nov 15 16:43 dev_loss_tmo

lrwxrwxrwx 1 root root    0 Nov 15 16:43 device -> ../../../host1

-r--r--r-- 1 root root 4096 Nov 15 16:43 fabric_name

--w------- 1 root root 4096 Nov 15 16:43 issue_lip

-r--r--r-- 1 root root 4096 Nov 15 16:43 max_npiv_vports

-r--r--r-- 1 root root 4096 Nov 15 13:49 node_name

-r--r--r-- 1 root root 4096 Nov 15 16:43 npiv_vports_inuse

-r--r--r-- 1 root root 4096 Nov 15 16:43 port_id

-r--r--r-- 1 root root 4096 Nov 15 13:49 port_name

-r--r--r-- 1 root root 4096 Nov 15 16:43 port_state

-r--r--r-- 1 root root 4096 Nov 15 16:43 port_type

drwxr-xr-x 2 root root    0 Nov 15 16:43 power

-r--r--r-- 1 root root 4096 Nov 15 16:43 speed

drwxr-xr-x 2 root root    0 Nov 15 16:43 statistics

lrwxrwxrwx 1 root root    0 Nov 15 13:49 subsystem -> ../../../../../../../class/fc_host

-r--r--r-- 1 root root 4096 Nov 15 16:43 supported_classes

-r--r--r-- 1 root root 4096 Nov 15 16:43 supported_speeds

-r--r--r-- 1 root root 4096 Nov 15 16:43 symbolic_name

-rw-r--r-- 1 root root 4096 Nov 15 16:43 system_hostname

-rw-r--r-- 1 root root 4096 Nov 15 16:43 tgtid_bind_type

-rw-r--r-- 1 root root 4096 Nov 15 13:49 uevent

--w------- 1 root root 4096 Nov 15 16:43 vport_create

--w------- 1 root root 4096 Nov 15 16:43 vport_delete

[root@sam host1]#

 

해당 Gbic 의 wwid의 정보는 port_name 입니다.

 

[root@sam host1]# cat port_name

0x51402ec000d16344

 

다음과 같이 Gibic의 wwid를 확인 할 수 있습니다.

 

추가로 

<port 상태>

[root@sam host1]# cat port_state

Online

 

<Gibic 속도>

[root@sam host1]# cat speed

16 Gbit

 

<scsi timeoff 값 설정 (초)>

[root@sam host1]# cat dev_loss_tmo

30

 

 

도움이 되셨다면 공감과 댓글 부탁 드립니다.  *^.^*