LINUXOR.SK ... open source notes ...

2013 - FC SAN - Linux - configuring the Linux server

category: howtoz · date: 2013-12-09 · source: old.linuxor.sk/STORAGE/HOWTO_FC-SAN_Linux_v01.txt

The Slovak original of this document: 2013 - FC SAN - Linux - konfigurácia Linux servera (slovensky).

asciiart
|=-------------------------------------------------=[ FC SAN ]=-----------------------------------------------=|
+--------------------------------------------------------------------------------------------------------------+
|                                                                                                              |
|                                                Storage: 1x HP 3PAR 7400                                      |
|                                                 FC SAN: 2x Cisco MDS9124e (Blade switch)                     |
|                                                 Server: 3x HP BL660gen8, 1x HP BL460gen8                     |
|                                                                                                              |
|                                                Zadanie: Konfiguracia XenServer servera HV01                  |
|                                                                                                              |
+--------------------------------------------------------------------------------------------------------------+
|=-------------------------------------------------=[ LH 2013 ]=----------------------------------------------=|

SCHEMA ZAPOJENIA

asciiart
                                   +-----------------------+
                                   |                       |
                                   |      HP 3PAR 7400     |
                                   |                       |
                                   +-----------+-----------+
                                   |           |           |
                                   |           |           |
                                   |Controller1|Controller2|
                                   |           |           |
                                   |           |           |
                                   | FC PORTS  | FC PORTS  |
                                   |           |           |
                                   |0:1:1 0:1:2|1:1:1 1:1:2| ->       HP->  Node:Slot:Port
                                   | C0P0 C0P1 | C1P0 C1P1 | ->  Generic->  ControllerPort
                                   +---^----^--+---^----^--+
                                       |    |      |    |
                                       |    |      |    +-----------------------+
                                       |    |      +-----------------------+    |
                                     DC|    |DMZ                         DC|    |DMZ
                                       |    |                              |    |
                                       |    |                              |    |
       +-------------------------------|----|------------------------------|----|----------+
       |                             11|  12|                            21|  22|          |
       |      +------------------------+----+-+    +-----------------------+----+--+       |
       |      |HV01 HV02 HV03 MGMT01 EXT1 EXT2|    |HV01 HV02 HV03 MGMT01 EXT1 EXT2|       |
       |  SW1 |BAY1 BAY2 BAY3 BAY5            |    |BAY1 BAY2 BAY3 BAY5            | SW2   |
       |      +-^----^----^-----^-------------+    +--^----^----^---^--------------+       |
       |      11|  11|  12|   11|                   21|  21|  22| 21|                      |
       |        |    |    |     |         +-----------+    |    |   |                      |
       |        |    |    |     |         |+---------------+    |   |                      |
       |        |    |    |     |         ||+-------------------+   |                      |
       |        |    |    |     |         |||                       |                      |
       |        |    |    |     +-------------------------++--------+                      |
       |        |    |    +---------+     |||             ||                               |
       |        |    +-------------+|     |||             ||                               |
       |        +-----------------+||     |||             ||                               |
       |                          |||     |||             ||                               |
       |                        +-+++-----+++-+    +------++-----+                         |
       |                        |             |    |             |                         |
       |                   +---->   VSAN DC   |    |   VSAN DMZ  |                         |
       |                   |+--->             |    |             |                         |
       |                   ||   +-^^------^^--+    +------^^-----+                         |
       |                   ||     ||      ||              ||                               |
       |                   ||     ||      ||              ||                               |
       |                   ||     ||      ||              ||                               |
       |                   ||     ||      ||              ||                               |
       |                 11||21 11||21  11||21          12||22                             |
       |                 +-++-+ +-++-+ +--++--+         +-++-+                             |
       |                 |HV01| |HV02| |MGMT01|         |HV03|                             |
       |                 +----+ +----+ +------+         +----+                             |
       |                                                                          HP c7000 |
       +-----------------------------------------------------------------------------------+

ZAKLADY - ADRESOVANIE SCSI ZARIADENI

asciiart
        Host : Bus : Target : Lun
        --------------------------------------------------------------------------------------------------------
        Host   - the instance of the controller (host adapter) the disk device is attached to
        Bus    - SCSI zbernica alebo kanal na radici (host adapteri)
        Target - SCSI ID priradene konkretnemu zariadeniu
        Lun    - Identifikator konkretneho logickeho diskoveho zariadenia (zvycajne "vypublikovane" nejakym disk. polom)

BASICS - HBA - THE SCSI DEVICES ATTACHED TO THE SYSTEM AND WHAT IS KNOWN ABOUT THEM

asciiart
        Zoznam vsetkych SCSI zariadeni v systeme - zoznam
        Note: the HBAs are usually the last two (here host1 [the first port] and host2 [the second port])
        --------------------------------------------------------------------------------------------------------
        # ls -ld /sys/class/scsi_host/host*/
        drwxr-xr-x 3 root root 0 Dec  9 01:50 /sys/class/scsi_host/host0/
        drwxr-xr-x 3 root root 0 Dec  9 01:50 /sys/class/scsi_host/host1/
        drwxr-xr-x 3 root root 0 Dec  9 01:50 /sys/class/scsi_host/host2/

        Zoznam vsetkych FC SCSI zariadeni (HBA) v systeme - zoznam
        --------------------------------------------------------------------------------------------------------
        # ls -ld /sys/class/fc_host/*
        drwxr-xr-x 4 root root 0 Dec  9 01:50 /sys/class/fc_host/host1
        drwxr-xr-x 4 root root 0 Dec  9 01:50 /sys/class/fc_host/host2

        Zoznam vsetkych SCSI zariadeni v systeme - detaily
        --------------------------------------------------------------------------------------------------------
        PRIKLAD (1)# cat /proc/scsi/scsi

        HBA info - popis
        --------------------------------------------------------------------------------------------------------
        # cat /sys/class/scsi_host/host1/model_desc
        PCI-Express Dual Channel 8Gb Fibre Channel Mezzanine HBA, NFF

        HBA info - meno (typ zariadenia)
        --------------------------------------------------------------------------------------------------------
        # cat /sys/class/scsi_host/host1/model_name
        QMH2572

        HBA info - rezim (Initiator | Target)
        --------------------------------------------------------------------------------------------------------
        # cat /sys/class/scsi_host/host1/active_mode
        Initiator

        HBA info - the state of the link and the type of port the HBA is attached to
        --------------------------------------------------------------------------------------------------------
        # cat /sys/class/scsi_host/host1/link_state
        Link Up - F_Port

        HBA info - prvy port - adresa portu
        Poznamka:  0x5001438026e969c0 -> 50:01:43:80:26:e9:69:c0
        --------------------------------------------------------------------------------------------------------
        # cat /sys/class/scsi_host/host1/device/fc_host:host1/port_name
        0x5001438026e969c0

        HBA info - prvy port - stav portu
        --------------------------------------------------------------------------------------------------------
        # cat /sys/class/scsi_host/host1/device/fc_host:host1/port_state
        Online

        HBA info - prvy port - typ portu
        --------------------------------------------------------------------------------------------------------
        # cat /sys/class/scsi_host/host1/device/fc_host:host1/port_type
        NPort (fabric via point-to-point)

        HBA info - prvy port - rychlost portu
        --------------------------------------------------------------------------------------------------------
        # cat /sys/class/scsi_host/host1/device/fc_host:host1/speed
        8 Gbit

        HBA info - prvy port - podporovane FC triedy
        --------------------------------------------------------------------------------------------------------
        # cat /sys/class/scsi_host/host1/device/fc_host:host1/supported_classes
        Class 3

        HBA info - prvy port - podporovane rychlosti
        --------------------------------------------------------------------------------------------------------
        # cat /sys/class/scsi_host/host1/device/fc_host:host1/supported_speeds
        1 Gbit, 2 Gbit, 4 Gbit, 8 Gbit

        HBA info - prvy port - typ karty a verzia firmwaru
        --------------------------------------------------------------------------------------------------------
        # cat /sys/class/scsi_host/host1/device/fc_host:host1/symbolic_name
        QMH2572 FW:v5.09.00 DVR:v8.05.00.03.55.6-k

        HBA info - prvy port - Linux informacie o HBA porte/karte
        - fyzicka adresa
        - zbernica
        - ovladac
        --------------------------------------------------------------------------------------------------------
        # cat /sys/class/scsi_host/host1/device/fc_host:host1/uevent
        PHYSDEVPATH=/devices/pci0000:00/0000:00:02.0/0000:03:00.0
        PHYSDEVBUS=pci
        PHYSDEVDRIVER=qla2xxx

BASICS - HBA - THE SCSI DEVICES ATTACHED TO THE SYSTEM AND WHAT IS KNOWN ABOUT THEM - SYSTOOL

asciiart
        Zoznam vsetkych SCSI zariadeni v systeme - detaily
        --------------------------------------------------------------------------------------------------------
        PRIKLAD (2)# systool -c fc_host -v

        HBA info - stav portov
        --------------------------------------------------------------------------------------------------------
        # systool -c fc_host -A port_state
        --------------------------------------------------------------------------------------------------------
        Class = "fc_host"
          Class Device = "host1"
            port_state          = "Online"
            Device = "host1"
          Class Device = "host2"
            port_state          = "Online"
            Device = "host2"
        --------------------------------------------------------------------------------------------------------

        HBA info - typ portov
        --------------------------------------------------------------------------------------------------------
        # systool -c fc_host -A port_type
        --------------------------------------------------------------------------------------------------------
        Class = "fc_host"
          Class Device = "host1"
            port_type           = "NPort (fabric via point-to-point)"
            Device = "host1"
          Class Device = "host2"
            port_type           = "NPort (fabric via point-to-point)"
            Device = "host2"
        --------------------------------------------------------------------------------------------------------

        HBA info - adresy FC portov
        Poznamka:  0x5001438026e969c0 -> 50:01:43:80:26:e9:69:c0
        --------------------------------------------------------------------------------------------------------
        # systool -c fc_host -A port_name
        --------------------------------------------------------------------------------------------------------
        Class = "fc_host"
          Class Device = "host1"
            port_name           = "0x5001438026e969c0"
            Device = "host1"
          Class Device = "host2"
            port_name           = "0x5001438026e969c2"
            Device = "host2"
        --------------------------------------------------------------------------------------------------------

        HBA info - rychlost portov
        --------------------------------------------------------------------------------------------------------
        # systool -c fc_host -A speed
        --------------------------------------------------------------------------------------------------------
        Class = "fc_host"
          Class Device = "host1"
            speed               = "8 Gbit"
            Device = "host1"
          Class Device = "host2"
            speed               = "8 Gbit"
            Device = "host2"
        --------------------------------------------------------------------------------------------------------

        HBA info - podporovane FC triedy
        --------------------------------------------------------------------------------------------------------
        # systool -c fc_host -A supported_classes
        --------------------------------------------------------------------------------------------------------
        Class = "fc_host"
          Class Device = "host1"
            supported_classes   = "Class 3"
            Device = "host1"
          Class Device = "host2"
            supported_classes   = "Class 3"
            Device = "host2"
        --------------------------------------------------------------------------------------------------------

        HBA info - podporovane rychlosti
        --------------------------------------------------------------------------------------------------------
        # systool -c fc_host -A supported_speeds
        --------------------------------------------------------------------------------------------------------
        Class = "fc_host"
          Class Device = "host1"
            supported_speeds    = "1 Gbit, 2 Gbit, 4 Gbit, 8 Gbit"
            Device = "host1"
          Class Device = "host2"
            supported_speeds    = "1 Gbit, 2 Gbit, 4 Gbit, 8 Gbit"
            Device = "host2"
        --------------------------------------------------------------------------------------------------------

        HBA info - typ karty a verzia firmwaru
        --------------------------------------------------------------------------------------------------------
        # systool -c fc_host -A symbolic_name
        --------------------------------------------------------------------------------------------------------
        Class = "fc_host"
          Class Device = "host1"
            symbolic_name       = "QMH2572 FW:v5.09.00 DVR:v8.05.00.03.55.6-k"
            Device = "host1"
          Class Device = "host2"
            symbolic_name       = "QMH2572 FW:v5.09.00 DVR:v8.05.00.03.55.6-k"
            Device = "host2"
        --------------------------------------------------------------------------------------------------------

        HBA info - Linux informacie o HBA portoch/kartach
        - fyzicka adresa
        - zbernica
        - ovladac
        --------------------------------------------------------------------------------------------------------
        # systool -c fc_transport -v
        --------------------------------------------------------------------------------------------------------
        Class = "fc_transport"
          Class Device = "0:0"
          Class Device path = "/sys/class/fc_transport/target1:0:0"
            node_name           = "0x2ff70002ac0072dd"
            port_id             = "0x2a0300"
            port_name           = "0x21120002ac0072dd"
            uevent              = "PHYSDEVPATH=/devices/pci0000:00/0000:00:02.0/0000:03:00.0
        PHYSDEVBUS=pci
        PHYSDEVDRIVER=qla2xxx"
            Device = "target1:0:0"
            Device path = "/sys/devices/pci0000:00/0000:00:02.0/0000:03:00.0/host1/rport-1:0-0/target1:0:0"
              uevent              =

          Class Device = "0:0"
          Class Device path = "/sys/class/fc_transport/target2:0:0"
            node_name           = "0x2ff70002ac0072dd"
            port_id             = "0x580000"
            port_name           = "0x20110002ac0072dd"
            uevent              = "PHYSDEVPATH=/devices/pci0000:00/0000:00:02.0/0000:03:00.1
        PHYSDEVBUS=pci
        PHYSDEVDRIVER=qla2xxx"
            Device = "target2:0:0"
            Device path = "/sys/devices/pci0000:00/0000:00:02.0/0000:03:00.1/host2/rport-2:0-0/target2:0:0"
              uevent              =
        --------------------------------------------------------------------------------------------------------

        HBA info - Linux informacie o ovladaci FC karty
        --------------------------------------------------------------------------------------------------------
        # systool -m `systool -c fc_transport -v | grep PHYSDEVDRIVER | awk -F'=' '{print $2}' | tail -n 1 | sed 's/"//'` -v
        --------------------------------------------------------------------------------------------------------
        Module = "qla2xxx"
          Attributes:
            initstate           = "live"
            refcnt              = "11"
            srcversion          = "4DA5A8C238B204974660A32"
            version             = "8.05.00.03.55.6-k"

          Parameters:
            ql2xallocfwdump     = "1"
            ql2xasynctmfenable  = "0"
            ql2xdbwr            = "1"
            ql2xdontresethba    = "0"
            ql2xenabledif       = "2"
            ql2xenablehba_err_chk= "2"
            ql2xetsenable       = "0"
            ql2xextended_error_logging= "0"
            ql2xfdmienable      = "1"
            ql2xfwloadbin       = "0"
            ql2xgffidenable     = "0"
            ql2xiidmaenable     = "1"
            ql2xloginretrycount = "0"
            ql2xlogintimeout    = "20"
            ql2xmaxlun          = "65535"
            ql2xmaxqdepth       = "32"
            ql2xmaxqueues       = "1"
            ql2xmdcapmask       = "31"
            ql2xmdenable        = "1"
            ql2xmultique_tag    = "0"
            ql2xplogiabsentdevice= "0"
            ql2xshiftctondsd    = "6"
            ql2xtargetreset     = "1"
            qlport_down_retry   = "0"

          Sections:
            .altinstr_replacement= "0xedf7773c"
            .altinstructions    = "0xedf87cb0"
            .bss                = "0xedf8df60"
            .data               = "0xedf88da0"
            .devinit.text       = "0xedf77920"
            .exit.text          = "0xedf77880"
            .gnu.linkonce.this_module= "0xedf8dde0"
            .init.text          = "0xedf99000"
            .rodata             = "0xedf79780"
            .rodata.str1.1      = "0xedf8482c"
            .rodata.str1.4      = "0xedf7b500"
            .smp_locks          = "0xedf87770"
            .strtab             = "0xedf9de6c"
            .symtab             = "0xedf9922c"
            .text               = "0xedf2b000"
            __bug_table         = "0xedf8819b"
            __mcount_loc        = "0xedf8843c"
            __param             = "0xedf8825c"
        --------------------------------------------------------------------------------------------------------

        HBA info - Linux informacie o pripojenom diskovom poli a jeho portoch
        --------------------------------------------------------------------------------------------------------
        # systool -c fc_remote_ports -v
        --------------------------------------------------------------------------------------------------------
        Class = "fc_remote_ports"

          Class Device = "0-0"
          Class Device path = "/sys/class/fc_remote_ports/rport-1:0-0"
            dev_loss_tmo        = "16"
            fast_io_fail_tmo    = "off"
            node_name           = "0x2ff70002ac0072dd"
            port_id             = "0x2a0300"
            port_name           = "0x21120002ac0072dd"
            port_state          = "Online"
            roles               = "FCP Target"
            scsi_target_id      = "0"
            supported_classes   = "Class 3"
            uevent              = "PHYSDEVPATH=/devices/pci0000:00/0000:00:02.0/0000:03:00.0
        PHYSDEVBUS=pci
        PHYSDEVDRIVER=qla2xxx"
            Device = "rport-1:0-0"
            Device path = "/sys/devices/pci0000:00/0000:00:02.0/0000:03:00.0/host1/rport-1:0-0"
              uevent              =

          Class Device = "0-0"
          Class Device path = "/sys/class/fc_remote_ports/rport-2:0-0"
            dev_loss_tmo        = "16"
            fast_io_fail_tmo    = "off"
            node_name           = "0x2ff70002ac0072dd"
            port_id             = "0x580000"
            port_name           = "0x20110002ac0072dd"
            port_state          = "Online"
            roles               = "FCP Target"
            scsi_target_id      = "0"
            supported_classes   = "Class 3"
            uevent              = "PHYSDEVPATH=/devices/pci0000:00/0000:00:02.0/0000:03:00.1
        PHYSDEVBUS=pci
        PHYSDEVDRIVER=qla2xxx"
            Device = "rport-2:0-0"
            Device path = "/sys/devices/pci0000:00/0000:00:02.0/0000:03:00.1/host2/rport-2:0-0"
              uevent              =
        --------------------------------------------------------------------------------------------------------

ZAKLADY - HBA - PREHLADANIE (RESCAN) SCSI ZBERNICE (BUS)

asciiart
        Rescan SCSI zbernice pomocou nastroja rescan-scsi-bus
        --------------------------------------------------------------------------------------------------------
        PRIKLAD (3)# scsi-rescan

        Rescan SCSI zbernice manualne
        --------------------------------------------------------------------------------------------------------
        # echo "- - -" > /sys/class/scsi_host/DOPLNIT_ZVACSA_POSLEDNE_2/scan;

        Rescan SCSI zbernice vsetkych FC SCI zariadeni - miniscript
        --------------------------------------------------------------------------------------------------------
        # bash style-script
        for host in `ls /sys/class/fc_host`; do echo "- - -" > /sys/class/scsi_host/${host}/scan; done

BASICS - HBA - RESCANNING THE SCSI BUS - the tools and commands of the various vendors

asciiart
        rescan-scsi-bus.sh
        scsi-rescan
        --------------------------------------------------------------------------------------------------------
        http://www.garloff.de/kurt/linux/#rescan-scsi

PRIKLADY

asciiart
        PRIKLAD (1)
        --------------------------------------------------------------------------------------------------------
        # cat /proc/scsi/scsi
        --------------------------------------------------------------------------------------------------------
        Attached devices:
        Host: scsi0 Channel: 03 Id: 00 Lun: 00
          Vendor: HP       Model: P220i            Rev: 4.68
          Type:   RAID                             ANSI  SCSI revision: 05
        Host: scsi0 Channel: 00 Id: 00 Lun: 00
          Vendor: HP       Model: LOGICAL VOLUME   Rev: 4.68
          Type:   Direct-Access                    ANSI  SCSI revision: 05
        Host: scsi2 Channel: 00 Id: 00 Lun: 00
          Vendor: 3PARdata Model: VV               Rev: 3122
          Type:   Direct-Access                    ANSI  SCSI revision: 06
        Host: scsi2 Channel: 00 Id: 00 Lun: 01
          Vendor: 3PARdata Model: VV               Rev: 3122
          Type:   Direct-Access                    ANSI  SCSI revision: 06
        Host: scsi2 Channel: 00 Id: 00 Lun: 02
          Vendor: 3PARdata Model: VV               Rev: 3122
          Type:   Direct-Access                    ANSI  SCSI revision: 06
        Host: scsi2 Channel: 00 Id: 00 Lun: 03
          Vendor: 3PARdata Model: VV               Rev: 3122
          Type:   Direct-Access                    ANSI  SCSI revision: 06
        Host: scsi2 Channel: 00 Id: 00 Lun: 04
          Vendor: 3PARdata Model: VV               Rev: 3122
          Type:   Direct-Access                    ANSI  SCSI revision: 06
        Host: scsi2 Channel: 00 Id: 00 Lun: 05
          Vendor: 3PARdata Model: VV               Rev: 3122
          Type:   Direct-Access                    ANSI  SCSI revision: 06
        Host: scsi2 Channel: 00 Id: 00 Lun: 254
          Vendor: 3PARdata Model: SES              Rev: 3122
          Type:   Enclosure                        ANSI  SCSI revision: 06
        Host: scsi1 Channel: 00 Id: 00 Lun: 00
          Vendor: 3PARdata Model: VV               Rev: 3122
          Type:   Direct-Access                    ANSI  SCSI revision: 06
        Host: scsi1 Channel: 00 Id: 00 Lun: 01
          Vendor: 3PARdata Model: VV               Rev: 3122
          Type:   Direct-Access                    ANSI  SCSI revision: 06
        Host: scsi1 Channel: 00 Id: 00 Lun: 02
          Vendor: 3PARdata Model: VV               Rev: 3122
          Type:   Direct-Access                    ANSI  SCSI revision: 06
        Host: scsi1 Channel: 00 Id: 00 Lun: 03
          Vendor: 3PARdata Model: VV               Rev: 3122
          Type:   Direct-Access                    ANSI  SCSI revision: 06
        Host: scsi1 Channel: 00 Id: 00 Lun: 04
          Vendor: 3PARdata Model: VV               Rev: 3122
          Type:   Direct-Access                    ANSI  SCSI revision: 06
        Host: scsi1 Channel: 00 Id: 00 Lun: 05
          Vendor: 3PARdata Model: VV               Rev: 3122
          Type:   Direct-Access                    ANSI  SCSI revision: 06
        Host: scsi1 Channel: 00 Id: 00 Lun: 254
          Vendor: 3PARdata Model: SES              Rev: 3122
          Type:   Enclosure                        ANSI  SCSI revision: 06
        --------------------------------------------------------------------------------------------------------

        PRIKLAD (2)
        --------------------------------------------------------------------------------------------------------
        # systool -c fc_host -v
        --------------------------------------------------------------------------------------------------------
        Class = "fc_host"

          Class Device = "host1"
          Class Device path = "/sys/class/fc_host/host1"
            fabric_name         = "0x200b547feed76819"
            issue_lip           = <store method only>
            max_npiv_vports     = "254"
            node_name           = "0x5001438026e969c1"
            npiv_vports_inuse   = "0"
            port_id             = "0x2a0000"
            port_name           = "0x5001438026e969c0"
            port_state          = "Online"
            port_type           = "NPort (fabric via point-to-point)"
            speed               = "8 Gbit"
            supported_classes   = "Class 3"
            supported_speeds    = "1 Gbit, 2 Gbit, 4 Gbit, 8 Gbit"
            symbolic_name       = "QMH2572 FW:v5.09.00 DVR:v8.05.00.03.55.6-k"
            system_hostname     = ""
            tgtid_bind_type     = "wwpn (World Wide Port Name)"
            uevent              = "PHYSDEVPATH=/devices/pci0000:00/0000:00:02.0/0000:03:00.0
        PHYSDEVBUS=pci
        PHYSDEVDRIVER=qla2xxx"
            vport_create        = <store method only>
            vport_delete        = <store method only>

            Device = "host1"
            Device path = "/sys/devices/pci0000:00/0000:00:02.0/0000:03:00.0/host1"
              fw_dump             =
              nvram               = "ISP "
              optrom              =
              optrom_ctl          = <store method only>
              reset               = <store method only>
              uevent              =
              vpd                 = "-="

          Class Device = "host2"
          Class Device path = "/sys/class/fc_host/host2"
            fabric_name         = "0x2015547feed767f1"
            issue_lip           = <store method only>
            max_npiv_vports     = "254"
            node_name           = "0x5001438026e969c3"
            npiv_vports_inuse   = "0"
            port_id             = "0x580100"
            port_name           = "0x5001438026e969c2"
            port_state          = "Online"
            port_type           = "NPort (fabric via point-to-point)"
            speed               = "8 Gbit"
            supported_classes   = "Class 3"
            supported_speeds    = "1 Gbit, 2 Gbit, 4 Gbit, 8 Gbit"
            symbolic_name       = "QMH2572 FW:v5.09.00 DVR:v8.05.00.03.55.6-k"
            system_hostname     = ""
            tgtid_bind_type     = "wwpn (World Wide Port Name)"
            uevent              = "PHYSDEVPATH=/devices/pci0000:00/0000:00:02.0/0000:03:00.1
        PHYSDEVBUS=pci
        PHYSDEVDRIVER=qla2xxx"
            vport_create        = <store method only>
            vport_delete        = <store method only>

            Device = "host2"
            Device path = "/sys/devices/pci0000:00/0000:00:02.0/0000:03:00.1/host2"
              fw_dump             =
              nvram               = "ISP "
              optrom              =
              optrom_ctl          = <store method only>
              reset               = <store method only>
              uevent              =
              vpd                 = "-="
        --------------------------------------------------------------------------------------------------------

        PRIKLAD (3)
        --------------------------------------------------------------------------------------------------------
        # scsi-rescan
        --------------------------------------------------------------------------------------------------------
        Host adapter 0 (hpsa) found.
        Host adapter 1 (qla2xxx) found.
        Host adapter 2 (qla2xxx) found.
        Scanning SCSI subsystem for new devices
        Scanning host 0 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
        Scanning for device 0 0 0 0 ...
        OLD: Host: scsi0 Channel: 00 Id: 00 Lun: 00
              Vendor: HP       Model: LOGICAL VOLUME   Rev: 4.68
              Type:   Direct-Access                    ANSI SCSI revision: 05
        Scanning for device 0 3 0 0 ...
        OLD: Host: scsi0 Channel: 03 Id: 00 Lun: 00
              Vendor: HP       Model: P220i            Rev: 4.68
              Type:   RAID                             ANSI SCSI revision: 05
        Scanning host 1 for  all SCSI target IDs, all LUNs
        Scanning for device 1 0 0 0 ...
        OLD: Host: scsi1 Channel: 00 Id: 00 Lun: 00
              Vendor: 3PARdata Model: VV               Rev: 3122
              Type:   Direct-Access                    ANSI SCSI revision: 06
        Scanning for device 1 0 0 1 ...
        OLD: Host: scsi1 Channel: 00 Id: 00 Lun: 01
              Vendor: 3PARdata Model: VV               Rev: 3122
              Type:   Direct-Access                    ANSI SCSI revision: 06
        Scanning for device 1 0 0 2 ...
        OLD: Host: scsi1 Channel: 00 Id: 00 Lun: 02
              Vendor: 3PARdata Model: VV               Rev: 3122
              Type:   Direct-Access                    ANSI SCSI revision: 06
        Scanning for device 1 0 0 254 ...
        OLD: Host: scsi1 Channel: 00 Id: 00 Lun: 254
              Vendor: 3PARdata Model: SES              Rev: 3122
              Type:   Enclosure                        ANSI SCSI revision: 06
        Scanning for device 1 0 0 3 ...
        OLD: Host: scsi1 Channel: 00 Id: 00 Lun: 03
              Vendor: 3PARdata Model: VV               Rev: 3122
              Type:   Direct-Access                    ANSI SCSI revision: 06
        Scanning for device 1 0 0 4 ...
        OLD: Host: scsi1 Channel: 00 Id: 00 Lun: 04
              Vendor: 3PARdata Model: VV               Rev: 3122
              Type:   Direct-Access                    ANSI SCSI revision: 06
        Scanning for device 1 0 0 5 ...
        OLD: Host: scsi1 Channel: 00 Id: 00 Lun: 05
              Vendor: 3PARdata Model: VV               Rev: 3122
              Type:   Direct-Access                    ANSI SCSI revision: 06
        Scanning host 2 for  all SCSI target IDs, all LUNs
        Scanning for device 2 0 0 0 ...
        OLD: Host: scsi2 Channel: 00 Id: 00 Lun: 00
              Vendor: 3PARdata Model: VV               Rev: 3122
              Type:   Direct-Access                    ANSI SCSI revision: 06
        Scanning for device 2 0 0 1 ...
        OLD: Host: scsi2 Channel: 00 Id: 00 Lun: 01
              Vendor: 3PARdata Model: VV               Rev: 3122
              Type:   Direct-Access                    ANSI SCSI revision: 06
        Scanning for device 2 0 0 2 ...
        OLD: Host: scsi2 Channel: 00 Id: 00 Lun: 02
              Vendor: 3PARdata Model: VV               Rev: 3122
              Type:   Direct-Access                    ANSI SCSI revision: 06
        Scanning for device 2 0 0 254 ...
        OLD: Host: scsi2 Channel: 00 Id: 00 Lun: 254
              Vendor: 3PARdata Model: SES              Rev: 3122
              Type:   Enclosure                        ANSI SCSI revision: 06
        Scanning for device 2 0 0 3 ...
        OLD: Host: scsi2 Channel: 00 Id: 00 Lun: 03
              Vendor: 3PARdata Model: VV               Rev: 3122
              Type:   Direct-Access                    ANSI SCSI revision: 06
        Scanning for device 2 0 0 4 ...
        OLD: Host: scsi2 Channel: 00 Id: 00 Lun: 04
              Vendor: 3PARdata Model: VV               Rev: 3122
              Type:   Direct-Access                    ANSI SCSI revision: 06
        Scanning for device 2 0 0 5 ...
        OLD: Host: scsi2 Channel: 00 Id: 00 Lun: 05
              Vendor: 3PARdata Model: VV               Rev: 3122
              Type:   Direct-Access                    ANSI SCSI revision: 06
        0 new device(s) found.
        0 device(s) removed.
        --------------------------------------------------------------------------------------------------------
← howtoz(EN | SK)