4.1. Gestion des cartes fibres

De UnixWiki
Aller à la navigation Aller à la recherche

Afficher les WWNs

 # fcinfo hba-port
    HBA Port WWN: 10000000c98275cb
       OS Device Name: /dev/cfg/c3
       Manufacturer: Emulex
       Model: LPe11000-S
       Firmware Version: 2.50a6 (Z2D2.50A6)
       FCode/BIOS Version: Boot:5.02a1
       Serial Number: 0999BT0-08510003W9
       Driver Name: emlxs
       Driver Version: 2.60k (2011.03.24.16.45)
       Type: N-port
       State: online
       Supported Speeds: 1Gb 2Gb 4Gb
       Current Speed: 4Gb
       Node WWN: 20000000c98275cb


Vérifier les nombres de path des luns

 mpathadm list LU

Lister cartes fibres

 luxadm probe

Vérifier l'état des cartes fibres

 luxadm -e port
 /devices/pci@3,700000/SUNW,emlxs@0/fp@0,0:devctl                   CONNECTED
 /devices/pci@3,700000/SUNW,emlxs@0,1/fp@0,0:devctl                 NOT CONNECTED
 /devices/pci@1,700000/SUNW,emlxs@0,1/fp@0,0:devctl                 NOT CONNECTED
 /devices/pci@1,700000/SUNW,emlxs@0/fp@0,0:devctl                   CONNECTED

Reset des cartes fibre

 luxadm -e forcelip /devices/pci@3,700000/SUNW,emlxs@0/fp@0,0

Lister les chemins d'une lun

 luxadm display /dev/rdsk/c0t600507680181054BD80000000000014Dd0s2
 DEVICE PROPERTIES for disk: /dev/rdsk/c0t600507680181054BD80000000000014Dd0s2
 Vendor:               IBM
 Product ID:           2145
 Revision:             0000
 Serial Num:           0200604152f6XX00
 Unformatted capacity: 153600.000 MBytes
 Read Cache:           Enabled
   Minimum prefetch:   0x0
   Maximum prefetch:   0x0
 Device Type:          Disk device
 Path(s):
/dev/rdsk/c0t600507680181054BD80000000000014Dd0s2 /devices/scsi_vhci/disk@g600507680181054bd80000000000014d:c,raw Controller /dev/cfg/c3 Device Address 500507680140abd2,0 Host controller port WWN 10000000c9c4cb86 Class primary State ONLINE Controller /dev/cfg/c3 Device Address 500507680140a97b,0 Host controller port WWN 10000000c9c4cb86 Class secondary State ONLINE Controller /dev/cfg/c5 Device Address 500507680130a97b,0 Host controller port WWN 10000000c9c4cdce Class secondary State ONLINE Controller /dev/cfg/c5 Device Address 500507680130abd2,0 Host controller port WWN 10000000c9c4cdce Class primary State ONLINE

Découverte sur une carte fibre: Lister les cartes:

 #cfgadm -al
 Ap_Id                          Type         Receptacle   Occupant     Condition
 SB0                            System_Brd   connected    configured   ok
 SB0::cpu0                      cpu          connected    configured   ok
 SB0::cpu1                      cpu          connected    configured   ok 
 SB0::cpu2                      cpu          connected    configured   ok
 SB0::cpu3                      cpu          connected    configured   ok
 SB0::memory                    memory       connected    configured   ok
 SB0::pci0                      io           connected    configured   ok
 SB0::pci1                      io           connected    configured   ok
 SB0::pci2                      io           connected    configured   ok
 SB0::pci3                      io           connected    configured   ok
 SB0::pci8                      io           connected    configured   ok
 SB1                                         disconnected unconfigured unknown 
 SB2                                         disconnected unconfigured unknown
 SB3                                         disconnected unconfigured unknown
 SB4                                         disconnected unconfigured unknown
 SB5                                         disconnected unconfigured unknown
 SB6                                         disconnected unconfigured unknown
 SB7                                         disconnected unconfigured unknown
 SB8                                         disconnected unconfigured unknown
 SB9                                         disconnected unconfigured unknown
 SB10                                        disconnected unconfigured unknown
 SB11                                        disconnected unconfigured unknown
 SB12                                        disconnected unconfigured unknown
 SB13                                        disconnected unconfigured unknown
 SB14                                        disconnected unconfigured unknown
 SB15                                        disconnected unconfigured unknown
 c1                             scsi-bus     connected    configured   unknown
 c1::dsk/c1t0d0                 disk         connected    configured   unknown
 c2                             fc-fabric    connected    configured   unknown
 c2::500507680120aa3c           unknown      connected    unconfigured unknown
 c2::500507680120abbd           unknown      connected    unconfigured unknown
 c2::50060482d5320388           disk         connected    configured   unknown
 c3                             fc           connected    unconfigured unknown
 c4                             fc-fabric    connected    configured   unknown
 c4::500507680110aa3c           unknown      connected    unconfigured unknown
 c4::500507680110abbd           unknown      connected    unconfigured unknown
 c4::50060482d5320387           disk         connected    configured   unknown
 c5                             fc           connected    unconfigured unknown
 iou#1-pci#0                    unknown      empty        unconfigured unknown
 iou#1-pci#1                    unknown      empty        unconfigured unknown
 iou#1-pci#2                    fibre/hp     connected    configured   ok
 iou#1-pci#3                    etherne/hp   connected    configured   ok
 iou#1-pci#4                    fibre/hp     connected    configured   ok
#cfgadm -c configure c2

Vérifier si ont a des erreurs sur les cartes SAN

 fcinfo hba -port -l