
Estoy intentando configurar MPIO entre ESXi 7.0 independiente (licencia gratuita) y un servidor SCST.
Creé 4 vmknics (vmk1,vmk2,vmk3,vmk4) con direcciones IPv6
(2001::1/64,2002::1/64,2003::1/64,2004::1/64)
y le asigné
(2001::2/64,2002::2/64,2003::2/64,2004::2/64)
a 4 NIC diferentes en la caja de Linux.
Cada segmento L3 reside en una VLAN diferente.
También tengo un vmk0 configurado con dirección IP IPv4.
Cuando hago netstat en el servidor SCST veo que escucha en 0.0.0.0:3260 y :::3260
Encontré este maravilloso artículo, pero los comandos en los hosts ESXi se refieren a la versión 4.0 y en ESXi 7.0 sí.NOteneresxcli suiza
Tengo entendido que tengo que vincular vmknic a vmnic pero no pude encontrar ninguna documentación relacionada para CLI/ESXCLI en 7.0.
Sigo viendo una ruta en lugar de más de una para cada uno de mis dispositivos:
[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
El adaptador de software iSCSI parece estar vinculado a todas las NIC VMK
[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
¿Qué me falta?
Respuesta1
Finalmente me di cuenta de lo que significaba "vincular una NIC física" a una NIC VMK, es decir
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
Los requisitos para las declaraciones anteriores son que para cada grupo de puertos solo un vmnic activo esté activo mientras que los demás no se utilicen, es decir
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
y por supuesto después de haber creado los grupos de puertos
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
y después de haber agregado un vmknic a cada grupo de puertos
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
Volvamos a escanear el adaptador iSCSI (todo si no es un problema)
esxcli storage core adapter rescan -a
Podemos comprobar rápidamente que se utilizan todas las rutas para cada dispositivo.
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
Por supuesto todos los caminos.debe serenEstado activo
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