Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

iSCSI and VMware ESXi



Hi,

I installed NetBSD/amd64 4.99.72 and I'm trying to setup iSCSI target to be used with VMware ESXi.

First problem: Why is the TargetName always "iqn.1994-04.org.netbsd.iscsi-target" even when I try "target1=xxx" syntax on the 2nd example below?

# dd if=/dev/zero of=/iscsi/virtualhost1 bs=1m count=1k
# ls -lh /iscsi/virtualhost1
-rw-r--r--  1 root  wheel  1.0G Aug 21 12:32 /iscsi/virtualhost1

# cat /etc/iscsi/targets

extent1         /iscsi/virtualhost1     0               size
target1         rw                      extent1         0.0.0.0/0

# /etc/rc.d/iscsi_target restart
Stopping iscsi_target.
Starting iscsi_target.
Reading configuration from `/etc/iscsi/targets'
target1:rw:0.0.0.0/0
        extent1:/iscsi/virtualhost1:0:10737422337
DISK: 1 logical unit (20971528 blocks, 512 bytes/block), type iscsi fs
DISK: LUN 0: 10240 MB disk storage for "target1"
TARGET: TargetName is iqn.1994-04.org.netbsd.iscsi-target

# cat /etc/iscsi/targets

extent1         /iscsi/virtualhost1     0               size
target1=xxx     rw                      extent1         0.0.0.0/0

# /etc/rc.d/iscsi_target restart
Stopping iscsi_target.
Starting iscsi_target.
Reading configuration from `/etc/iscsi/targets'
target1:rw:0.0.0.0/0
        extent1:/iscsi/virtualhost1:0:10737422849
DISK: 1 logical unit (20971529 blocks, 512 bytes/block), type iscsi fs
DISK: LUN 0: 10240 MB disk storage for "target1"
TARGET: TargetName is iqn.1994-04.org.netbsd.iscsi-target


Next problem...

# cat /etc/iscsi/auths
myname:chap:pw4me

After adding a new iSCSI target within ESXi I get these errors.

# tail -f /var/log/messages
Aug 22 10:48:19 n73 iscsi-target: > iSCSI Discovery login successful from iqn.1998-01.com.vmware:vmw6-32861313 on xxx.xxx.xxx.xxx disk 0, ISID 9613344769, TSIH 1 Aug 22 10:48:19 n73 iscsi-target: pid 608:/usr/src/dist/iscsi/src/target.c:793: ***ERROR*** duplicate login attempt on sess 0 Aug 22 10:48:19 n73 iscsi-target: pid 608:/usr/src/dist/iscsi/src/target.c:1149: ***ERROR*** login_command_t() failed Aug 22 10:48:19 n73 iscsi-target: pid 608:/usr/src/dist/iscsi/src/target.c:1269: ***ERROR*** execute_t() failed

Now, I let the ESXi to rescan iSCSI targets I get these errors. And the ESXi does not detect my only target so I'm unable to use the iSCSI target.

ug 22 10:59:42 n73 iscsi-target: pid 608:/usr/src/dist/iscsi/src/target.c:911: ***ERROR*** Abnormal SessionType cmd.tsih 0 not found Aug 22 10:59:42 n73 iscsi-target: > iSCSI Discovery login successful from iqn.1998-01.com.vmware:vmw6-32861313 on xxx.xxx.xxx.xxx disk 0, ISID 9613344769, TSIH 3 Aug 22 10:59:42 n73 iscsi-target: pid 608:/usr/src/dist/iscsi/src/target.c:793: ***ERROR*** duplicate login attempt on sess 2 Aug 22 10:59:42 n73 iscsi-target: pid 608:/usr/src/dist/iscsi/src/target.c:1149: ***ERROR*** login_command_t() failed Aug 22 10:59:42 n73 iscsi-target: pid 608:/usr/src/dist/iscsi/src/target.c:1269: ***ERROR*** execute_t() failed

What am I doing wrong? Has anyone tested NetBSD iSCSI with VMware ESX/ESXi?

Martti


Home | Main Index | Thread Index | Old Index