Unable to connect to shared (iscsitarget) dvd-rw drive on ubuntu karmic box

Posted by develop7 on Server Fault See other posts from Server Fault or by develop7
Published on 2010-03-14T07:32:34Z Indexed on 2010/03/14 7:35 UTC
Read the original article Hit count: 415

Filed under:
|
|
|

Preface:

I have desktop with DVD-RW drive that runs primarily on Linux (namely Ubuntu 9.10). My wife has netbook that rins Windows XP with no cd/dvd drive. There's also LAN through our ADSL modem/router. I've "ported" (actually, I've just grabbed sources and ran dpkg-buildpackage) iscsitarget package from Ubuntu Lucid to Karmic (here are packages), installed it (sudo aptitude install iscsitarget; sudo m-a a-i iscsitarget) and configured it in the following way (/etc/ietd.conf):

Target iqn.2020-01.local.develop7-desktop:storage.disc.dvdrw
Lun 0 Path=/dev/sr0,Type=blockio
#I've skipped commented lines

Also, I've opened port 3260 with ufw:

$ sudo ufw status | grep 3260
3260                       ALLOW       192.168.1.0/24

But (here's the trouble) I still can't connect to this target from Windows box. Microsoft Software iSCSI Initiator tells "Logon failure" upon connect attempt. After unsuccessful connection attempt I've noticed this line in dmesg | tail's output:

iscsi_trgt: ioctl(299) invalid ioctl cmd c078690d

So the question is — what's wrong with my config/iSCSI target/whatever else? Or, in short — what I'm doing wrong?

Thanks in advance.

© Server Fault or respective owner

Unable to connect to shared (iscsitarget) dvd-rw drive on ubuntu karmic box

Posted by Develop7 on Super User See other posts from Super User or by Develop7
Published on 2010-03-14T07:32:34Z Indexed on 2010/03/14 11:45 UTC
Read the original article Hit count: 415

Filed under:
|
|
|
|

Intro

I have desktop with DVD-RW drive that runs primarily on Linux (namely Ubuntu 9.10). My wife has netbook that rins Windows XP with no cd/dvd drive. There's also LAN through our ADSL modem/router. I've "ported" (actually, I've just grabbed sources and ran dpkg-buildpackage) iscsitarget package from Ubuntu Lucid to Karmic (here are packages), installed it (sudo aptitude install iscsitarget; sudo m-a a-i iscsitarget) and configured it in the following way (/etc/ietd.conf):

Target iqn.2020-01.local.develop7-desktop:storage.disc.dvdrw
Lun 0 Path=/dev/sr0,Type=blockio
#I've skipped commented lines

Also, I've opened port 3260 with ufw:

$ sudo ufw status | grep 3260
3260                       ALLOW       192.168.1.0/24

Problem

But (here's the trouble) I still can't connect to this target from Windows box. Microsoft Software iSCSI Initiator screams "Logon failure" upon connect attempt, and, respectively, fails to connect. After unsuccessful connection attempt I've noticed this line in dmesg | tail's output:

iscsi_trgt: ioctl(299) invalid ioctl cmd c078690d

Question

So the question is — what's wrong with my config/iSCSI target/whatever else? Or, in short — what I'm doing wrong?

Thanks in advance.

© Super User or respective owner

Related posts about iscsi

Related posts about Windows