[Stgt-devel] [PATCH 4/4] OSD command parser

FUJITA Tomonori fujita.tomonori
Sun Mar 11 02:37:30 CET 2007


From: FUJITA Tomonori <fujita.tomonori at lab.ntt.co.jp>
Subject: Re: [Stgt-devel] [PATCH 4/4] OSD command parser
Date: Mon, 05 Mar 2007 00:12:57 +0900

> I added the virtual cd patch that Ming wrote for IET as an
> example. You can export iso files as a cd drive. An initiator can see
> a cd drive, but it can't read the iso file. So there must be bugs,
> however I've not dig into it. Patches are welcome :)
> 
> You can export iso files in the following way:
> 
> tgtadm --lld iscsi --op new --mode target --tid 1 -T iqn.2001-04.com.example:storage.disk2.tulip.sys1.xyz --target-type cd
> tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 0 -b /home/fujita/debian-31r5-i386-businesscard.iso
> tgtadm --lld iscsi --op bind --mode target --tid 1 -I ALL

Seems it works now.

fujita at tulip:~$ lsscsi
[0:0:0:0]    disk    VMware,  VMware Virtual S 1.0   -
[0:0:1:0]    disk    VMware,  VMware Virtual S 1.0   -
[0:0:2:0]    disk    VMware,  VMware Virtual S 1.0   -
[0:0:3:0]    disk    VMware,  VMware Virtual S 1.0   -
[4:0:0:0]    cd/dvd  IET      VIRTUAL-CDROM    0     /dev/scd0

fujita at tulip:~$ df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda1              3921528   2723936    998388  74% /
tmpfs                   258420         0    258420   0% /dev/shm
tmpfs                    10240       560      9680   6% /dev
/dev/scd0                31308     31308         0 100% /media/cdrom0

fujita at tulip:~$ ls /media/cdrom
README.html          README.txt   debian  install     pics
README.mirrors.html  autorun.bat  dists   isolinux    pool
README.mirrors.txt   autorun.inf  doc     md5sum.txt  tools

a mount command takes long (about one minite for me) though I don't
know why. So don't rush.


About ibmvio, I can use a cdrom drive after bootup. However, I can't
use it from SMS (I can see a cdrom drive but I can't boot up from it).

IBM Power guys, is it possible to boot up from a virtual cdrom drive
in SMS?



More information about the stgt mailing list