티스토리 뷰

System Story/CentOS 5,6

FC SAN Port 확인

helperchoi 2013. 11. 10. 18:36

Linux System 이하에 설치된 HBA Card 에 대한 정보는 기본적으로 systool 명령과 lspic 정보등을 조합하여 확인 가능하다.

 

1. 현재 PCI Slot에 장착된 HBA Card(FC-Card) 확인

 

[root@TestDB01 ~]#
[root@TestDB01 ~]# lspci | grep -i "fibre channel"
05:00.0 Fibre Channel: Emulex Corporation Zephyr-X LightPulse Fibre Channel Host Adapter (rev 02)
05:00.1 Fibre Channel: Emulex Corporation Zephyr-X LightPulse Fibre Channel Host Adapter (rev 02)
08:00.0 Fibre Channel: Emulex Corporation Zephyr-X LightPulse Fibre Channel Host Adapter (rev 02)
08:00.1 Fibre Channel: Emulex Corporation Zephyr-X LightPulse Fibre Channel Host Adapter (rev 02)
0b:00.0 Fibre Channel: Emulex Corporation Zephyr-X LightPulse Fibre Channel Host Adapter (rev 02)
0b:00.1 Fibre Channel: Emulex Corporation Zephyr-X LightPulse Fibre Channel Host Adapter (rev 02)
55:00.0 Fibre Channel: Emulex Corporation Zephyr-X LightPulse Fibre Channel Host Adapter (rev 02)
55:00.1 Fibre Channel: Emulex Corporation Zephyr-X LightPulse Fibre Channel Host Adapter (rev 02)
58:00.0 Fibre Channel: Emulex Corporation Zephyr-X LightPulse Fibre Channel Host Adapter (rev 02)
58:00.1 Fibre Channel: Emulex Corporation Zephyr-X LightPulse Fibre Channel Host Adapter (rev 02)
5b:00.0 Fibre Channel: Emulex Corporation Zephyr-X LightPulse Fibre Channel Host Adapter (rev 02)
5b:00.1 Fibre Channel: Emulex Corporation Zephyr-X LightPulse Fibre Channel Host Adapter (rev 02)
5e:00.0 Fibre Channel: Emulex Corporation Zephyr-X LightPulse Fibre Channel Host Adapter (rev 02)
5e:00.1 Fibre Channel: Emulex Corporation Zephyr-X LightPulse Fibre Channel Host Adapter (rev 02)
61:00.0 Fibre Channel: Emulex Corporation Zephyr-X LightPulse Fibre Channel Host Adapter (rev 02)
61:00.1 Fibre Channel: Emulex Corporation Zephyr-X LightPulse Fibre Channel Host Adapter (rev 02)
[root@TestDB01 ~]#
[root@TestDB01 ~]#
[root@TestDB01 ~]# for LIST in `lspci | grep -i "fibre channel" | cut -d "." -f 1 | uniq`; do dmidecode -t slot | grep ${LIST} -B7 && echo "================"; done
 Designation: PCI-E Slot 7
 Type: x4 PCI Express Gen 2 x8
 Current Usage: In Use
 Length: Long
 Characteristics:
  3.3 V is provided
  PME signal is supported
 Bus Address: 0000:05:00.0
================
 Designation: PCI-E Slot 8
 Type: x4 PCI Express Gen 2 x8
 Current Usage: In Use
 Length: Long
 Characteristics:
  3.3 V is provided
  PME signal is supported
 Bus Address: 0000:08:00.0
================
 Designation: PCI-E Slot 9
 Type: x8 PCI Express Gen 2 x16
 Current Usage: In Use
 Length: Long
 Characteristics:
  3.3 V is provided
  PME signal is supported
 Bus Address: 0000:0b:00.0
================
 Designation: PCI-E Slot 2
 Type: x8 PCI Express Gen 2 x16
 Current Usage: In Use
 Length: Long
 Characteristics:
  3.3 V is provided
  PME signal is supported
 Bus Address: 0000:55:00.0
================
 Designation: PCI-E Slot 3
 Type: x8 PCI Express Gen 2 x16
 Current Usage: In Use
 Length: Long
 Characteristics:
  3.3 V is provided
  PME signal is supported
 Bus Address: 0000:58:00.0
================
 Designation: PCI-E Slot 4
 Type: x4 PCI Express Gen 2 x8
 Current Usage: In Use
 Length: Long
 Characteristics:
  3.3 V is provided
  PME signal is supported
 Bus Address: 0000:5b:00.0
================
 Designation: PCI-E Slot 5
 Type: x8 PCI Express Gen 2 x16
 Current Usage: In Use
 Length: Long
 Characteristics:
  3.3 V is provided
  PME signal is supported
 Bus Address: 0000:5e:00.0
================
 Designation: PCI-E Slot 6
 Type: x8 PCI Express Gen 2 x16
 Current Usage: In Use
 Length: Long
 Characteristics:
  3.3 V is provided
  PME signal is supported
 Bus Address: 0000:61:00.0
================
[root@TestDB01 ~]#

 

 

 

2. 상기 1번에서 확인된 HBA Card의 Bus 정보와 맵핑되는 FC Host 정보 확인

 

[root@TestDB01 ~]#
[root@TestDB01 ~]# find /sys/class/fc_host/ -type l -name device -exec ls -l {} \;
lrwxrwxrwx 1 root root 0  3월  5 22:09 /sys/class/fc_host/host17/device -> ../../../devices/pci0000:50/0000:50:09.0/0000:55:00.1/host17
lrwxrwxrwx 1 root root 0  3월  5 22:09 /sys/class/fc_host/host16/device -> ../../../devices/pci0000:50/0000:50:09.0/0000:55:00.0/host16
lrwxrwxrwx 1 root root 0  3월  5 22:09 /sys/class/fc_host/host15/device -> ../../../devices/pci0000:50/0000:50:07.0/0000:58:00.1/host15
lrwxrwxrwx 1 root root 0  3월  5 22:09 /sys/class/fc_host/host14/device -> ../../../devices/pci0000:50/0000:50:07.0/0000:58:00.0/host14
lrwxrwxrwx 1 root root 0  3월  5 22:09 /sys/class/fc_host/host13/device -> ../../../devices/pci0000:50/0000:50:05.0/0000:5e:00.1/host13
lrwxrwxrwx 1 root root 0  3월  5 22:09 /sys/class/fc_host/host12/device -> ../../../devices/pci0000:50/0000:50:05.0/0000:5e:00.0/host12
lrwxrwxrwx 1 root root 0  3월  5 22:09 /sys/class/fc_host/host11/device -> ../../../devices/pci0000:50/0000:50:03.0/0000:61:00.1/host11
lrwxrwxrwx 1 root root 0  3월  5 22:09 /sys/class/fc_host/host10/device -> ../../../devices/pci0000:50/0000:50:03.0/0000:61:00.0/host10
lrwxrwxrwx 1 root root 0  3월  5 22:09 /sys/class/fc_host/host9/device -> ../../../devices/pci0000:50/0000:50:01.0/0000:5b:00.1/host9
lrwxrwxrwx 1 root root 0  3월  5 22:09 /sys/class/fc_host/host8/device -> ../../../devices/pci0000:50/0000:50:01.0/0000:5b:00.0/host8
lrwxrwxrwx 1 root root 0  3월  5 22:09 /sys/class/fc_host/host7/device -> ../../../devices/pci0000:00/0000:00:0a.0/0000:05:00.1/host7
lrwxrwxrwx 1 root root 0  3월  5 22:09 /sys/class/fc_host/host6/device -> ../../../devices/pci0000:00/0000:00:0a.0/0000:05:00.0/host6
lrwxrwxrwx 1 root root 0  3월  5 22:09 /sys/class/fc_host/host5/device -> ../../../devices/pci0000:00/0000:00:09.0/0000:08:00.1/host5
lrwxrwxrwx 1 root root 0  3월  5 22:09 /sys/class/fc_host/host4/device -> ../../../devices/pci0000:00/0000:00:09.0/0000:08:00.0/host4
lrwxrwxrwx 1 root root 0  3월  5 22:09 /sys/class/fc_host/host3/device -> ../../../devices/pci0000:00/0000:00:07.0/0000:0b:00.1/host3
lrwxrwxrwx 1 root root 0  3월  5 22:08 /sys/class/fc_host/host2/device -> ../../../devices/pci0000:00/0000:00:07.0/0000:0b:00.0/host2
[root@TestDB01 ~]#
[root@TestDB01 ~]#

 

 

 

3. HBA Card 의 Detail한 정보 확인

[root@TEST01 ~]#
[root@TEST01 ~]# systool -c fc_host -v | more
Class = "fc_host"

  Class Device = "host10"
  Class Device path = "/sys/class/fc_host/host10"
    active_fc4s         = "0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 "
    fabric_name         = "0x100000053343a962"
    issue_lip           = <store method only>
    maxframe_size       = "2048 bytes"
    node_name           = "0x20000000c9abfba8"
    port_id             = "0x010b00"
    port_name           = "0x10000000c9abfba8"
    port_state          = "Online"
    port_type           = "NPort (fabric via point-to-point)"
    speed               = "4 Gbit"
    supported_classes   = "Class 3"
    supported_fc4s      = "0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 "
    supported_speeds    = "1 Gbit, 2 Gbit, 4 Gbit"
    tgtid_bind_type     = "wwpn (World Wide Port Name)"
    uevent              = <store method only>

    Device = "host10"
    Device path = "/sys/devices/pci0000:50/0000:50:03.0/0000:61:00.0/host10"
      uevent              = <store method only>

.
.
.

생략

 

# HBA 간략 확인 (host숫자는 HBTL SCSI addressing 에서의 H-value임)

[root@TEST01 ~]# systool -c fc_host -v | grep "Class Device path"

  Class Device path = "/sys/class/fc_host/host3"

  Class Device path = "/sys/class/fc_host/host4"

  Class Device path = "/sys/class/fc_host/host5"

  Class Device path = "/sys/class/fc_host/host6"

.

.

.

생략

 

[root@TEST01 ~]#

 

# HBA Card Host 번호와 맵핑된 PCI Bus 주소 확인

[root@TEST01 ~]#
[root@TEST01 ~]# lspci | grep -i "fibre channel"
05:00.0 Fibre Channel: QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA (rev 02)
05:00.1 Fibre Channel: QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA (rev 02)
90:00.0 Fibre Channel: QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA (rev 02)
90:00.1 Fibre Channel: QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA (rev 02)
[root@TEST01 ~]#
[root@TEST01 ~]#
[root@TEST01 ~]# find /sys/class/fc_host/ -type l -name device -exec ls -l {} \;
lrwxrwxrwx 1 root root 0  3월  6 10:42 /sys/class/fc_host/host6/device -> ../../../devices/pci0000:80/0000:80:03.0/0000:90:00.1/host6
lrwxrwxrwx 1 root root 0  3월  6 10:42 /sys/class/fc_host/host5/device -> ../../../devices/pci0000:80/0000:80:03.0/0000:90:00.0/host5
lrwxrwxrwx 1 root root 0  3월  6 10:42 /sys/class/fc_host/host4/device -> ../../../devices/pci0000:00/0000:00:0a.0/0000:05:00.1/host4
lrwxrwxrwx 1 root root 0  3월  6 10:42 /sys/class/fc_host/host3/device -> ../../../devices/pci0000:00/0000:00:0a.0/0000:05:00.0/host3

.

.

.

생략


[root@TEST01 ~]#
[root@TEST01 ~]#

 

 

 

# HOST HBA Card WWN 확인

[root@TEST01 ~]#

[root@TEST01 ~]# systool -c fc_host -v | grep node_name

    node_name           = "0x5001438024234b9d"

    node_name           = "0x5001438024234b9f"

    node_name           = "0x500143802422595d"

    node_name           = "0x500143802422595f"

.

.

.

생략

 

[root@TEST01 ~]#

[root@TEST01 ~]#

 

 

# SAN Joning WWPN 확인

[root@TEST01 ~]#

[root@nlogDB01 ~]# systool -c fc_host -v | grep "port_name"

    port_name           = "0x50014380186bf27c"

    port_name           = "0x50014380186bf27e"

    port_name           = "0x5001438021e3d6cc"

    port_name           = "0x5001438021e3d6ce"

.

.

.

생략

 

[root@TEST01 ~]#

 

반응형
반응형
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday