[Stgt-devel] How to setup a DVD RW

Albert Pauw albert.pauw
Sun Jun 29 19:25:12 CEST 2008


Using open-iscsi to log into tgtd, which has the following setup for a
DVD-R:

tgtadm --lld iscsi --mode target --op new --tid 1 -T
iqn.2007-03:virtual-dvd:`hostname`
tgtadm --lld iscsi --mode logicalunit --op update --tid 1 --lun 0 --name
scsi_id --value "CONTROLLER"
tgtadm --lld iscsi --mode logicalunit --op update --tid 1 --lun 0 --name
scsi_sn --value "001"

# Create a DVD drive and give it a nice name
# The dvd starts out without a backing store file, i.e. no disk loaded
tgtadm --lld iscsi --mode logicalunit --op new --tid 1 --lun 1
--backing-store /root/empty.iso --device-type cd
tgtadm --lld iscsi --mode logicalunit --op update --tid 1 --lun 1 --params
removable=1

Where /root/empty.iso is an empty 4GB file. I can succesfully log into the
this target, dmesg shows:

scsi 13:0:0:0: RAID              IET      Controller       0001 PQ: 0 ANSI:
5
scsi 13:0:0:0: Attached scsi generic sg2 type 12
scsi 13:0:0:1: CD-ROM            IET      VIRTUAL-CDROM    0001 PQ: 0 ANSI:
5
sr1: scsi-1 drive
sr 13:0:0:1: Attached scsi CD-ROM sr1

However, K3B (CD burner program) sees the virtual CDROM (as it is called by
default), but doesn't see
that a medium is loaded (while I had given it a backing store).

What I am doing wrong here?

Thanks,

Albert

P.S. I am using Fedora 9.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.berlios.de/pipermail/stgt-devel/attachments/20080629/62bb444e/attachment.html 



More information about the stgt mailing list