Results 1 to 4 of 4

Thread: DVD/BR through iSCSI

  1. #1
    Join Date
    Apr 2011
    Beans
    2

    Cool DVD/BR through iSCSI

    Hello everybody!

    The summary: I want to use a drive in my server on my laptop employing iSCSI. Everything appears to work, but the drive doesn't show up!

    Here's the setup: A homeserver (192.168.1.2/24) running Ubuntu Server Maverick Meerkat and a Laptop (192.168.1.x/24) running Ubuntu Desktop Maverick Meerkat. They are connected through Gigabit Ethernet with a Netgear Router.

    The Server has a BluRay-Drive (/dev/scd0) I want to use on the Laptop via iSCSI. I have configured both computers acccording to http://www.howtoforge.com/using-iscsi-on-ubuntu-10.04-initiator-and-target.

    The Server uses the package iscsitarget with the following configuration:

    1. /etc/default/iscsitarget says
    Code:
    ISCSITARGET_ENABLE=true
    2. /etc/iet/ietd.conf contains
    Code:
    #lines and lines of comments
    Target iqn.2015-12.loc.appelserv:optdisc
        Lun 0 Path=/dev/scd0,Type=blockio
    3. /etc/iet/initiators.allow lists
    Code:
    #more comments
    iqn.2015-12.loc.appelserv:optdisc 192.168.1.0/24
    4. /etc/iet/targets.allow lists
    Code:
    #even moar comments
    ALL ALL
    After installing the package open-iscsi on the laptop I have changed /etc/iscsi/iscsid.conf to say
    Code:
    #stuff
    node.startup = automatic
    #more stuff
    I have then run
    Code:
    iscsiadm -m discovery -t st -p 192.168.1.2
    which returned
    Code:
    192.168.1.2:3260,1 iqn.2015-12.loc.appelserv:optdisc
    Running
    Code:
    iscsiadm -m node
    equally returns
    Code:
    192.168.1.2:3260,1 iqn.2015-12.loc.appelserv:optdisc
    If I run
    Code:
    iscsiadm -m node --login -T iqn.2015-12.loc.appelserv:optdisc
    I get
    Code:
    Logging in to [iface: default, target: iqn.2015-12.loc.appelserv:optdisc, portal: 192.168.1.2,3260]
    iscsiadm: Could not login to [iface: default, target: iqn.2015-12.loc.appelserv:optdisc, portal: 192.168.1.2,3260]: 
    iscsiadm: initiator reported error (15 - already exists)
    which makes sense, since it should log in to targets automatically, and tells me that a connection exits.

    So here's the problem (finally ):

    After doing alll that and apparently connecting to the target, it is my understanding that I should now see the Drive somewhere...probably in /dev. I don't. Neither does it appear anywhere else I thought to look.

    So, If anyone could tell me where else to look or what could be wrong with my configuration or where to read up on the topic of optical drives and iSCSI, I'd be very thankful!

    Thank you in advance,

    Jesko

  2. #2
    Join Date
    Apr 2011
    Beans
    2

    Re: DVD/BR through iSCSI

    OK, I still haven't made any progress whatsoever.

    I guess I'll ask the most basic question first: Is it even possible to use iSCSI on an optical drive in Ubuntu? I've yet to find a manual that covers anything but image files and hard drive partitions...

  3. #3
    Join Date
    Jul 2011
    Beans
    19

    Re: DVD/BR through iSCSI

    I am having the same problem.
    Can anyone help ?
    thanks

  4. #4
    Join Date
    Jul 2011
    Beans
    19

    Re: DVD/BR through iSCSI

    If anyone faced the same problem I used tgt

    install
    Code:
    sudo apt-get install tgt
    start service
    Code:
    sudo service tgt start
    configuration

    add target
    Code:
    tgtadm --lld iscsi --op new --mode target --tid 1 -T iqn.2010-01.us.nimsa:tgt:4:16:0:0:T
    add device
    Code:
    tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 1 --bstype=sg --device-type=pt -b /dev/sg1
    you can get the device path by using the following command
    Code:
    lsscsi -g
    Allow target to accept initiator connections
    Code:
    tgtadm --lld iscsi --op bind --mode target --tid 1 -I ALL

    credits go to and for more details and configurations
    Code:
    http://www.cyberciti.biz/tips/howto-setup-linux-iscsi-target-sanwith-tgt.html
    http://mhvtl-linux-virtual-tape-library-community-forums.966029.n3.nabble.com/MHVTL-0-18-10-tgt-iSCSI-target-td1684577.html
    http://linux.die.net/man/8/tgtadm

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •