SAN - Solaris

De UnixManiax
Aller à la navigation Aller à la recherche


Quelques commandes utiles, en vrac, pour gérer le SAN sous Solaris.

  • afficher les ports fibres et leur état : luxadm -e port
# luxadm -e port
/devices/pci@300/pci@1/pci@0/pci@4/SUNW,emlxs@0/fp@0,0:devctl      CONNECTED
/devices/pci@300/pci@1/pci@0/pci@4/SUNW,emlxs@0,1/fp@0,0:devctl    NOT CONNECTED
  • afficher tous les volumes SAN présentés au serveur : luxadm probe
# luxadm probe
No Network Array enclosures found in /dev/es

Found Fibre Channel device(s):
  Node WWN:50060160c4600c6c  Device Type:Disk device
    Logical Path:/dev/rdsk/c5t5006016944600C6Cd0s2
    Logical Path:/dev/rdsk/c5t5006016044600C6Cd0s2
  Node WWN:50060160c4600c6c  Device Type:Disk device
    Logical Path:/dev/rdsk/c5t5006016944600C6Cd1s2
    Logical Path:/dev/rdsk/c5t5006016044600C6Cd1s2
  Node WWN:50060160c4600c6c  Device Type:Disk device
    Logical Path:/dev/rdsk/c5t5006016944600C6Cd2s2
    Logical Path:/dev/rdsk/c5t5006016044600C6Cd2s2
  Node WWN:50060160c4600c6c  Device Type:Disk device
    Logical Path:/dev/rdsk/c5t5006016044600C6Cd3s2
    Logical Path:/dev/rdsk/c5t5006016944600C6Cd3s2
  Node WWN:50060160c4600c6c  Device Type:Disk device
    Logical Path:/dev/rdsk/c5t5006016044600C6Cd4s2
    Logical Path:/dev/rdsk/c5t5006016944600C6Cd4s2
[...]
  • Afficher des infos détaillées sur un des chemins : luxadm display
# luxadm display /dev/rdsk/c5t5006016944600C6Cd0s2
DEVICE PROPERTIES for disk: /dev/rdsk/c5t5006016944600C6Cd0s2
  Vendor:               DGC
  Product ID:           RAID 5
  Revision:             0429
  Serial Num:           CKM00093400176
  Unformatted capacity: 102400.000 MBytes
  Device Type:          Disk device
  Path(s):

  /dev/rdsk/c5t5006016944600C6Cd0s2
  /devices/pci@300/pci@1/pci@0/pci@4/SUNW,emlxs@0/fp@0,0/ssd@w5006016944600c6c,0:c,raw
    LUN path port WWN:          5006016944600c6c
    Host controller port WWN:   10000090fa1a49f0
    Path status:                Not Ready
  /dev/rdsk/c5t5006016044600C6Cd0s2
  /devices/pci@300/pci@1/pci@0/pci@4/SUNW,emlxs@0/fp@0,0/ssd@w5006016044600c6c,0:c,raw
    LUN path port WWN:          5006016044600c6c
    Host controller port WWN:   10000090fa1a49f0
    Path status:                O.K.
  • Voir sur quel contrôleur on a de la fibre (correspond au /dev/rdsk/c5 de luxadm probe) : cfgadm -la
# cfgadm -la|grep fabric
c5                             fc-fabric    connected    configured   unknown
# cfgadm -la|grep "^c5"
c5                             fc-fabric    connected    configured   unknown
c5::5006016044600c6c           disk         connected    configured   unknown
c5::5006016944600c6c           disk         connected    configured   unknown
  • Avoir des infos détaillées sur la carte fibre et les liens : fcinfo hba-port [-l]
# fcinfo hba-port -l
HBA Port WWN: 10000090fa1a49f0
        Port Mode: Initiator
        Port ID: 20500
        OS Device Name: /dev/cfg/c5
        Manufacturer: Emulex
        Model: LPe12002-S
        Firmware Version: LPe12002-S 2.01a4
        FCode/BIOS Version: Boot:5.03a0 Fcode:3.01a1
        Serial Number: 4925381+13090001OV
        Driver Name: emlxs
        Driver Version: 2.80.8.3 (2013.09.30.16.30)
        Type: N-port
        State: online
        Supported Speeds: 2Gb 4Gb 8Gb
        Current Speed: 4Gb
        Node WWN: 20000090fa1a49f0
        Link Error Statistics:
                Link Failure Count: 0
                Loss of Sync Count: 0
                Loss of Signal Count: 0
                Primitive Seq Protocol Error Count: 0
                Invalid Tx Word Count: 4109
                Invalid CRC Count: 0
        NPIV Not Supported
HBA Port WWN: 10000090fa1a49f1
        Port Mode: Initiator
        Port ID: 0
        OS Device Name: /dev/cfg/c11
        Manufacturer: Emulex
        Model: LPe12002-S
        Firmware Version: LPe12002-S 2.01a4
        FCode/BIOS Version: Boot:5.03a0 Fcode:3.01a1
        Serial Number: 4925381+13090001OV
        Driver Name: emlxs
        Driver Version: 2.80.8.3 (2013.09.30.16.30)
        Type: unknown
        State: offline
        Supported Speeds: 2Gb 4Gb 8Gb
        Current Speed: not established
        Node WWN: 20000090fa1a49f1
        Link Error Statistics:
                Link Failure Count: 0
                Loss of Sync Count: 0
                Loss of Signal Count: 1
                Primitive Seq Protocol Error Count: 0
                Invalid Tx Word Count: 0
                Invalid CRC Count: 0
        NPIV Not Supported
  • toto