Current-Users archive

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

Re: iSCSI and VMware ESXi



2008/8/22 Martti Kuparinen <martti.kuparinen%iki.fi@localhost>:
> 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?

I had it running a few weeks ago - it was ESX3i before the free
disastrous update. It seemed to work fine, but I haven't used CHAP
authentication. I've since updated the VMWare server to the patched
free version and comissioned it, so for the moment won't be able to
test.

The target was current-i386 of 4.99.59 (or thereabouts) vintage. I use
whole disks as targets:

# extent        file or device          start           length
extent0         /dev/wd0d       0               78533MB
extent1         /dev/wd1d       0               78533MB
# target        flags   storage         netmask
target0         rw      extent0         0.0.0.0/0
target1         rw      extent1         0.0.0.0/0



>
> Martti
>

----------------------------------------------------------------
/dev/random says:
        Mercifully free of the ravages of intelligence
----------------------------------------------------------------
Chavdar Ivanov | Talbot Way, Small Heath Business Park
Delcam UK | Birmingham B10 0HJ, United Kingdom
Customer Support | (+44)121-6831014
----------------------------------------------------------------


Home | Main Index | Thread Index | Old Index