Outils pour utilisateurs

Outils du site


projets:backup2017:configserveur

Ceci est une ancienne révision du document !


Configuration serveurs

Configuration du Mutipathing

Debain / V7000 / Storwise Trouver les cartes Fibre Channe

# lspci | grep -i fibre
09:00.0 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA (rev 03)
09:00.1 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA (rev 03)

Modifier des sources.list pour intégrer non-free

deb http://httpredir.debian.org/debian stretch main **non-free**
deb-src http://httpredir.debian.org/debian stretch main **non-free**

Installer les packages pour les cartes FC QLOGIC

root@:~# apt-get install qla-tools firmware-qlogic

Installer les packages de gestion des FileSystem

root@:~# apt-get libsysfs2 lsscsi sysfsutils

Installer le multipathing

root@:~# apt-get install multipath-tools

Redémarrer le serveur

Trouver la carte Fibre Channel et son port host

root@britt:~# systool -c fc_host -v | more
Class = "fc_host"

  Class Device = "host0"
  Class Device path = "/sys/devices/pci0000:00/0000:00:03.0/0000:03:00.0/host0/fc_host/host0"
    dev_loss_tmo        = "30"
    fabric_name         = "0x5005076802e5f62d"
    issue_lip           = <store method only>
    max_npiv_vports     = "127"
    node_name           = "0x2000001b328787bc"
    npiv_vports_inuse   = "0"
    port_id             = "0xab0200"
    port_name           = "0x2100001b328787bc"
    port_state          = "Online"
    port_type           = "NPort (fabric via point-to-point)"
    speed               = "4 Gbit"
    supported_classes   = "Class 3"
    supported_speeds    = "1 Gbit, 2 Gbit, 4 Gbit"
    symbolic_name       = "QLE2462 FW:v8.03.00 DVR:v8.07.00.38-k"
    system_hostname     = ""
    tgtid_bind_type     = "wwpn (World Wide Port Name)"
    uevent              =
    vport_create        = <store method only>
    vport_delete        = <store method only>

    Device = "host0"
    Device path = "/sys/devices/pci0000:00/0000:00:03.0/0000:03:00.0/host0"
      fw_dump             =
      issue_logo          = <store method only>
      nvram               = "ISP "
      optrom_ctl          = <store method only>
      optrom              =
      reset               = <store method only>
      sfp                 = ""
      uevent              = "DEVTYPE=scsi_host"
      vpd                 = "▒^"

  Class Device = "host5"
  Class Device path = "/sys/devices/pci0000:00/0000:00:03.0/0000:03:00.1/host5/fc_host/host5"
    dev_loss_tmo        = "30"
    fabric_name         = "0x5005076802e5f62e"
    issue_lip           = <store method only>
    max_npiv_vports     = "127"
    node_name           = "0x2001001b32a787bc"
    npiv_vports_inuse   = "0"
    port_id             = "0xab0200"
    port_name           = "0x2101001b32a787bc"
    port_state          = "Online"
    port_type           = "NPort (fabric via point-to-point)"
    speed               = "4 Gbit"
    supported_classes   = "Class 3"
    supported_speeds    = "1 Gbit, 2 Gbit, 4 Gbit"
    symbolic_name       = "QLE2462 FW:v8.03.00 DVR:v8.07.00.38-k"
    system_hostname     = ""
    tgtid_bind_type     = "wwpn (World Wide Port Name)"
    uevent              =
    vport_create        = <store method only>
    vport_delete        = <store method only>

    Device = "host5"
    Device path = "/sys/devices/pci0000:00/0000:00:03.0/0000:03:00.1/host5"
      fw_dump             =
      issue_logo          = <store method only>
      nvram               = "ISP "
      optrom_ctl          = <store method only>
      optrom              =
      reset               = <store method only>
      sfp                 = ""
      uevent              = "DEVTYPE=scsi_host"
      vpd                 = "▒^"

Trouver les WWN des cartes FC sur les serveurs

root@1:~# for i in 0 1 2 3 4 5; do cat /sys/class/scsi_host/host$i/device/fc_host/host$i/port_name; done
0x2100001b328555da
0x2101001b32a555da
root@2:~# for i in 0 1 2 3 4 5; do cat /sys/class/scsi_host/host$i/device/fc_host/host$i/port_name; done
0x2100001b328787bc
0x2101001b32a787bc

Avant le mapping

root@britt:~# lsscsi
[6:0:0:0]    disk    USB TO I DE/SATA Device   0009  /dev/sda
[7:0:0:0]    disk    SEAGATE  ST31000424SS     0005  -
[7:0:1:0]    disk    SEAGATE  ST31000424SS     0005  -
[7:1:2:0]    disk    LSILOGIC Logical Volume   3000  /dev/sdb

Rescanner les cartes FC

root@britt:~# echo "- - -" > /sys/class/scsi_host/host0/scan
root@britt:~# echo "- - -" > /sys/class/scsi_host/host5/scan

Après le mapping

root@britt:~# lsscsi
[5:0:0:10]   disk    IBM      2145             0000  /dev/sdc
[5:0:0:20]   disk    IBM      2145             0000  /dev/sdd
[6:0:0:0]    disk    USB TO I DE/SATA Device   0009  /dev/sda
[7:0:0:0]    disk    SEAGATE  ST31000424SS     0005  -
[7:0:1:0]    disk    SEAGATE  ST31000424SS     0005  -
[7:1:2:0]    disk    LSILOGIC Logical Volume   3000  /dev/sdb

Trouver les cartes contrôleurs réseaux sur les serveurs

root@:~# lspci | grep -i eth
01:00.0 Ethernet controller: Intel Corporation 82576 Gigabit Network Connection (rev 01)
01:00.1 Ethernet controller: Intel Corporation 82576 Gigabit Network Connection (rev 01)
05:00.0 Ethernet controller: Broadcom Limited NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)
05:00.1 Ethernet controller: Broadcom Limited NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)
05:00.2 Ethernet controller: Broadcom Limited NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)
05:00.3 Ethernet controller: Broadcom Limited NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)

Trouver les @MAC des cartes réseaux sur les serveurs

root@:~# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp5s0f0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 00:0a:f7:13:12:84 brd ff:ff:ff:ff:ff:ff
3: enp1s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
    link/ether 00:a0:d1:ec:fc:60 brd ff:ff:ff:ff:ff:ff
4: enp5s0f1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 00:0a:f7:13:12:85 brd ff:ff:ff:ff:ff:ff
5: enp5s0f2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 00:0a:f7:13:12:86 brd ff:ff:ff:ff:ff:ff
6: enp1s0f1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 00:a0:d1:ec:fc:61 brd ff:ff:ff:ff:ff:ff
7: enp5s0f3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 00:0a:f7:13:12:87 brd ff:ff:ff:ff:ff:ff
projets/backup2017/configserveur.1521022395.txt.gz · Dernière modification : 2018/03/14 10:13 de tonio