
Ich versuche, MPIO zwischen ESXi 7.0 Standalone (kostenlose Lizenz) und einem SCST-Server einzurichten.
Ich habe 4 vmknics (vmk1,vmk2,vmk3,vmk4) mit IPv6-Adressen erstellt
(2001::1/64,2002::1/64,2003::1/64,2004::1/64)
und ich habe
(2001::2/64,2002::2/64,2003::2/64,2004::2/64)
zu 4 verschiedenen Netzwerkkarten auf der Linux-Box.
Jedes L3-Segment befindet sich in einem anderen VLAN.
Ich habe auch einen vmk0 mit IPv4-IP-Adresse konfiguriert.
Wenn ich netstat auf dem SCST-Server ausführe, sehe ich, dass er auf 0.0.0.0:3260 und :::3260 lauscht.
Ich habe diesen wunderbaren Artikel gefunden, aber die Befehle auf den ESXi-Hosts beziehen sich auf die Version 4.0 und auf dem ESXi 7.0NICHThabenesxcli swiscsi
Meines Wissens muss ich die vmknic an die vmnic binden, konnte jedoch keine entsprechende Dokumentation für CLI/ESXCLI unter 7.0 finden.
Ich sehe für jedes meiner Geräte immer noch einen Pfad statt mehrerer:
[root@ESXi:~] esxcfg-mpath -b |grep -B1 "Adapter"| grep -v -e "--" |sed 's/Adapter.*//'
eui.3163656561363833 : SCST_FIO iSCSI Disk (eui.3163656561363833)
vmhba64:C0:T0:L2 LUN:2 state:active iscsi
eui.3363613336363835 : SCST_BIO iSCSI Disk (eui.3363613336363835)
vmhba64:C0:T0:L8 LUN:8 state:active iscsi
eui.3761663561303238 : SCST_FIO iSCSI CD-ROM (eui.3761663561303238)
vmhba64:C0:T0:L1 LUN:1 state:active iscsi
eui.3562393762313730 : SCST_BIO iSCSI Disk (eui.3562393762313730)
vmhba64:C0:T0:L5 LUN:5 state:active iscsi
eui.6631393662333130 : SCST_BIO iSCSI Disk (eui.6631393662333130)
vmhba64:C0:T0:L0 LUN:0 state:active iscsi
eui.6164373835346366 : SCST_FIO iSCSI CD-ROM (eui.6164373835346366)
vmhba64:C0:T0:L4 LUN:4 state:active iscsi
eui.3639313435343362 : SCST_FIO iSCSI CD-ROM (eui.3639313435343362)
vmhba64:C0:T0:L3 LUN:3 state:active iscsi
eui.3332653439383239 : SCST_BIO iSCSI Disk (eui.3332653439383239)
vmhba64:C0:T0:L6 LUN:6 state:active iscsi
eui.3762393937356132 : SCST_BIO iSCSI Disk (eui.3762393937356132)
vmhba64:C0:T0:L9 LUN:9 state:active iscsi
eui.3466376564643362 : SCST_BIO iSCSI Disk (eui.3466376564643362)
vmhba64:C0:T0:L10 LUN:10 state:active iscsi
eui.6233633835373866 : SCST_BIO iSCSI Disk (eui.6233633835373866)
vmhba64:C0:T0:L7 LUN:7 state:active iscsi
Der iSCSI-Softwareadapter scheint mit allen VMK-Netzwerkkarten verbunden zu sein
[root@ESXi:~] esxcli iscsi logicalnetworkportal list -A vmhba64
Adapter Vmknic MAC Address MAC Address Valid Compliant
------- ------ ----------------- ----------------- ---------
vmhba64 vmk0 ac:1f:6b:98:19:a4 true false
vmhba64 vmk1 00:50:56:66:f3:a2 true false
vmhba64 vmk2 00:50:56:66:9b:7e true false
vmhba64 vmk3 00:50:56:68:b5:38 true false
vmhba64 vmk4 00:50:56:61:ee:67 true false
Was übersehe ich?
Antwort1
Irgendwann wurde mir klar, was "Bindung einer physischen Netzwerkkarte" an eine VMK-Netzwerkkarte bedeutete, d.h.
esxcli network vswitch standard portgroup policy failover set -a vmnic4 -p PG-iSCSI_01
esxcli network vswitch standard portgroup policy failover set -a vmnic5 -p PG-iSCSI_02
esxcli network vswitch standard portgroup policy failover set -a vmnic6 -p PG-iSCSI_03
esxcli network vswitch standard portgroup policy failover set -a vmnic7 -p PG-iSCSI_04
Die Voraussetzungen für die obigen Aussagen sind, dass für jede Portgruppe nur eine aktive vmnic aktiv ist, während die anderen unbenutzt sind, d.h.
esxcli network vswitch standard portgroup policy failover set --active-uplinks=vmnic4 --portgroup-name=PG-iSCSI_01
esxcli network vswitch standard portgroup policy failover set --active-uplinks=vmnic5 --portgroup-name=PG-iSCSI_02
esxcli network vswitch standard portgroup policy failover set --active-uplinks=vmnic6 --portgroup-name=PG-iSCSI_03
esxcli network vswitch standard portgroup policy failover set --active-uplinks=vmnic7 --portgroup-name=PG-iSCSI_04
und natürlich nach dem Erstellen der Portgruppen
esxcli network vswitch standard portgroup add --portgroup-name=PG-SCSI_01 -vswitch vSwitch1
esxcli network vswitch standard portgroup add --portgroup-name=PG-SCSI_02 -vswitch vSwitch1
esxcli network vswitch standard portgroup add --portgroup-name=PG-SCSI_03 -vswitch vSwitch1
esxcli network vswitch standard portgroup add --portgroup-name=PG-SCSI_04 -vswitch vSwitch1
und nachdem Sie zu jeder Portgruppe eine vmknic hinzugefügt haben
esxcli network ip interface add --interface-name=vmk1 --portgroup-name=PG-iSCSI_01
esxcli network ip interface add --interface-name=vmk2 --portgroup-name=PG-iSCSI_02
esxcli network ip interface add --interface-name=vmk3 --portgroup-name=PG-iSCSI_03
esxcli network ip interface add --interface-name=vmk4 --portgroup-name=PG-iSCSI_04
Lassen Sie uns den iSCSI-Adapter erneut scannen (alles, wenn es kein Problem ist)
esxcli storage core adapter rescan -a
Wir können schnell überprüfen, ob alle Pfade für jedes Gerät verwendet werden
for dev in $(esxcli storage core device list | grep -e '^[^\ ]' | xargs);do echo -n "Device: $dev Paths:"; path=$(esxcli storage core path list -d $dev | grep -e '^iqn'| wc -l); echo $path;done
Device: eui.3163656561363833 Paths:5
Device: eui.3363613336363835 Paths:5
Device: eui.3761663561303238 Paths:5
Device: eui.3562393762313730 Paths:5
Device: eui.6631393662333130 Paths:5
Device: eui.6164373835346366 Paths:5
Device: eui.3639313435343362 Paths:5
Device: eui.3332653439383239 Paths:5
Device: eui.6332303139666464 Paths:5
Device: eui.6233633835373866 Paths:5
Natürlich alle Wegemuss seinInAktiver Zustand
esxcli storage core path list -d eui.3163656561363833 | awk '/^i/{dev=$0}/Runtime/{rn=$3}/State/{printf "%20s %7s %s\n",rn,$2,dev}'
vmhba64:C0:T0:L7 active iqn.2019-05.com....-00023d000002,iqn.2020-02.l...l:bm01-1234abcd,t,1-eui.6233633835373866
vmhba64:C5:T0:L7 active iqn.2019-05.com....-00023d000017,iqn.2020-02.l...l:bm01-1234abcd,t,1-eui.6233633835373866
vmhba64:C4:T0:L7 active iqn.2019-05.com....-00023d000012,iqn.2020-02.l...l:bm01-1234abcd,t,1-eui.6233633835373866
vmhba64:C3:T0:L7 active iqn.2019-05.com....-00023d00000d,iqn.2020-02.l...l:bm01-1234abcd,t,1-eui.6233633835373866
vmhba64:C2:T0:L7 active iqn.2019-05.com....-00023d000008,iqn.2020-02.l...l:bm01-1234abcd,t,1-eui.6233633835373866