iSCSI イニシエーター VM (VirtualBox を使用) から iSCSI ターゲット VM (同じく VirtualBox) に iscsiadm で接続するのに苦労しています。
例えば
iscsiadm --mode discovery --type sendtargets --portal <ip address> --discover
iscsiadm: cannot make connection to <ip address>: Connection refused
ホストオンリー アダプター ネットワークがセットアップされており、2 つの VM 間で SSH を使用できます。
ファイアウォールの問題かどうかを確認することを無効iptablesにしましたが、それでも同じ問題が発生していました。
Fwiw、私が持っているターゲットマシンで:
# tgtadm --mode target --op show
Target 1: iqn.2014-03.my.target.server:tgt1
System information:
Driver: iscsi
State: ready
I_T nexus information:
LUN information:
LUN: 0
Type: controller
SCSI ID: IET 00010000
SCSI SN: beaf10
Size: 0 MB, Block size: 1
Online: Yes
Removable media: No
Prevent removal: No
Readonly: No
SWP: No
Thin-provisioning: No
Backing store type: null
Backing store path: None
Backing store flags:
LUN: 1
Type: disk
SCSI ID: IET 00010001
SCSI SN: beaf11
Size: 55 MB, Block size: 512
Online: Yes
Removable media: No
Prevent removal: No
Readonly: No
SWP: No
Thin-provisioning: No
Backing store type: rdwr
Backing store path: /dev/vg_iscsi/lv_iscsi_1
Backing store flags:
Account information:
ACL information:
ALL
他に何を試すことができますか?