Здравствуйте.
Задача.
Настроить на сервере Debian12 + targetcli
Настроить на клиентах (Windows 10) MC/S (multiple connections per session)
Структура сети.
В сети установлены 3 коммутатора:
SW1: HP 1820-48G Switch J9981A
SW2: HP 1820-48G Switch J9981A
SW3: HPE OfficeConnect Switch - 1820 24G - J9980A
Коммутаторы соеденены между собой с помощью Trank. По 2 провода. Т.е. между свичами скорость 2Gb
IP адреса сети: 192.168.0.0/24
К каждому коммутатору подключены клиенты - Windows 10
На сервере Debian 12 и настроены 6 сетевых карт. Все сетевые карты подключены к комутаторам, по 2 провода на коммутатор.
Настройка сети:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto enp4s0
iface enp4s0 inet static
address 192.168.0.21/24
gateway 192.168.0.1
dns-nameservers 192.168.0.1
mtu 9000
auto enp5s0
iface enp5s0 inet static
address 192.168.0.215/24
mtu 9000
auto enp1s0f0
iface enp1s0f0 inet static
address 192.168.0.216/24
mtu 9000
auto enp1s0f1
iface enp1s0f1 inet static
address 192.168.0.217/24
mtu 9000
auto enp1s0f2
iface enp1s0f2 inet static
address 192.168.0.218/24
mtu 9000
auto enp1s0f3
iface enp1s0f3 inet static
address 192.168.0.219/24
mtu 9000
Настройки targetcli. Весь листинг не буду сюда кидать, 109 клиеннтов
o- / ......................................................................................................................... [...]
o- backstores .............................................................................................................. [...]
| o- block ................................................................................................ [Storage Objects: 109]
| | o- client1 ........................................................ [/dev/mapper/lun0.img.cow.1 (2.7TiB) write-thru activated]
| | | o- alua ................................................................................................... [ALUA Groups: 1]
| | | o- default_tg_pt_gp ....................................................................... [ALUA state: Active/optimized]
| | o- client2 ........................................................ [/dev/mapper/lun0.img.cow.2 (2.7TiB) write-thru activated]
| | | o- alua ................................................................................................... [ALUA Groups: 1]
| | | o- default_tg_pt_gp ....................................................................... [ALUA state: Active/optimized]
| | o- client3 ........................................................ [/dev/mapper/lun0.img.cow.3 (2.7TiB) write-thru activated]
| | | o- alua ................................................................................................... [ALUA Groups: 1]
| | | o- default_tg_pt_gp ....................................................................... [ALUA state: Active/optimized]
| | o- client109 .................................................... [/dev/mapper/lun0.img.cow.109 (2.7TiB) write-thru activated]
| | o- alua ................................................................................................... [ALUA Groups: 1]
| | o- default_tg_pt_gp ....................................................................... [ALUA state: Active/optimized]
| o- fileio ................................................................................................. [Storage Objects: 1]
| | o- storage1 ............................................................... [/storage1/lun0.img (2.7TiB) write-back activated]
| | o- alua ................................................................................................... [ALUA Groups: 1]
| | o- default_tg_pt_gp ....................................................................... [ALUA state: Active/optimized]
| o- pscsi .................................................................................................. [Storage Objects: 0]
| o- ramdisk ................................................................................................ [Storage Objects: 0]
o- iscsi .......................................................................................................... [Targets: 110]
| o- iqn.2019-02.pro.office:1 ........................................................................................... [TPGs: 1]
| | o- tpg1 ............................................................................................... [no-gen-acls, no-auth]
| | o- acls .......................................................................................................... [ACLs: 1]
| | | o- iqn.1991-05.com.microsoft:fob01 ...................................................................... [Mapped LUNs: 1]
| | | o- mapped_lun0 ............................................................................... [lun0 block/client1 (rw)]
| | o- luns .......................................................................................................... [LUNs: 1]
| | | o- lun0 .................................................. [block/client1 (/dev/mapper/lun0.img.cow.1) (default_tg_pt_gp)]
| | o- portals .................................................................................................... [Portals: 6]
| | o- 192.168.0.215:3260 ............................................................................................... [OK]
| | o- 192.168.0.216:3260 ............................................................................................... [OK]
| | o- 192.168.0.217:3260 ............................................................................................... [OK]
| | o- 192.168.0.218:3260 ............................................................................................... [OK]
| | o- 192.168.0.219:3260 ............................................................................................... [OK]
| | o- 192.168.0.21:3260 ................................................................................................ [OK]
| o- iqn.2019-02.pro.office:2 ........................................................................................... [TPGs: 1]
| | o- tpg1 ............................................................................................... [no-gen-acls, no-auth]
| | o- acls .......................................................................................................... [ACLs: 1]
| | | o- iqn.1991-05.com.microsoft:fob02 ...................................................................... [Mapped LUNs: 1]
| | | o- mapped_lun0 ............................................................................... [lun0 block/client2 (rw)]
| | o- luns .......................................................................................................... [LUNs: 1]
| | | o- lun0 .................................................. [block/client2 (/dev/mapper/lun0.img.cow.2) (default_tg_pt_gp)]
| | o- portals .................................................................................................... [Portals: 6]
| | o- 192.168.0.215:3260 ............................................................................................... [OK]
| | o- 192.168.0.216:3260 ............................................................................................... [OK]
| | o- 192.168.0.217:3260 ............................................................................................... [OK]
| | o- 192.168.0.218:3260 ............................................................................................... [OK]
| | o- 192.168.0.219:3260 ............................................................................................... [OK]
| | o- 192.168.0.21:3260 ................................................................................................ [OK]
| o- iqn.2019-02.pro.office:109 ......................................................................................... [TPGs: 1]
| | o- tpg1 ............................................................................................... [no-gen-acls, no-auth]
| | o- acls .......................................................................................................... [ACLs: 1]
| | | o- iqn.1991-05.com.microsoft:fob109 ..................................................................... [Mapped LUNs: 1]
| | | o- mapped_lun0 ............................................................................. [lun0 block/client109 (rw)]
| | o- luns .......................................................................................................... [LUNs: 1]
| | | o- lun0 .............................................. [block/client109 (/dev/mapper/lun0.img.cow.109) (default_tg_pt_gp)]
| | o- portals .................................................................................................... [Portals: 6]
| | o- 192.168.0.215:3260 ............................................................................................... [OK]
| | o- 192.168.0.216:3260 ............................................................................................... [OK]
| | o- 192.168.0.217:3260 ............................................................................................... [OK]
| | o- 192.168.0.218:3260 ............................................................................................... [OK]
| | o- 192.168.0.219:3260 ............................................................................................... [OK]
| | o- 192.168.0.21:3260 ................................................................................................ [OK]
| o- iqn.2019-02.pro.office:gserver ..................................................................................... [TPGs: 1]
| o- tpg1 ............................................................................................... [no-gen-acls, no-auth]
| o- acls .......................................................................................................... [ACLs: 1]
| | o- iqn.1991-05.com.microsoft:gserver .................................................................... [Mapped LUNs: 1]
| | o- mapped_lun0 ............................................................................. [lun0 fileio/storage1 (rw)]
| o- luns .......................................................................................................... [LUNs: 1]
| | o- lun0 ........................................................ [fileio/storage1 (/storage1/lun0.img) (default_tg_pt_gp)]
| o- portals .................................................................................................... [Portals: 6]
| o- 192.168.0.215:3260 ............................................................................................... [OK]
| o- 192.168.0.216:3260 ............................................................................................... [OK]
| o- 192.168.0.217:3260 ............................................................................................... [OK]
| o- 192.168.0.218:3260 ............................................................................................... [OK]
| o- 192.168.0.219:3260 ............................................................................................... [OK]
| o- 192.168.0.21:3260 ................................................................................................ [OK]
o- loopback ......................................................................................................... [Targets: 0]
o- vhost ............................................................................................................ [Targets: 0]
o- xen-pvscsi ....................................................................................................... [Targets: 0]
Проблемма вот в чём. Когда добавляю порталы, то получаю ошибки.
targetcli /iscsi/iqn.2019-02.pro.office:$LOOP_NUMBER/tpg1/portals delete 0.0.0.0 3260
targetcli /iscsi/iqn.2019-02.pro.office:$LOOP_NUMBER/tpg1/portals create 192.168.0.21
targetcli /iscsi/iqn.2019-02.pro.office:$LOOP_NUMBER/tpg1/portals create 192.168.0.215
targetcli /iscsi/iqn.2019-02.pro.office:$LOOP_NUMBER/tpg1/portals create 192.168.0.216
targetcli /iscsi/iqn.2019-02.pro.office:$LOOP_NUMBER/tpg1/portals create 192.168.0.217
targetcli /iscsi/iqn.2019-02.pro.office:$LOOP_NUMBER/tpg1/portals create 192.168.0.218
targetcli /iscsi/iqn.2019-02.pro.office:$LOOP_NUMBER/tpg1/portals create 192.168.0.219
Ошибки:
fserver kernel: [ 2010.680452] kernel_bind() failed: -98
На клиентах, вроде бы, всё работает, но эти ошибки напрягают. До этого сервер работал с 1 IP адресом, через бондинг, но там свои проблемы были. Было так: portals 0.0.0.0 3260
Что делать с этой ошибкой?