Getting proper drive type from iscsitarget

View: New views
4 Messages — Rating Filter:   Alert me  

Getting proper drive type from iscsitarget

by Jean-Yves Avenard-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello

Trying to export DVD drive from my Linux machine which available
locally on /dev/scd0

I added the following to my ietd.conf:
Target iqn.2000-12.org.avenard:storage.cd
        User
        Lun 0 Path=/dev/scd0,Type=blockio,IOMode=ro
        Alias iCD

This allows me to mount the drive on a Windows Vista (using build-in
iSCSI initator) machine or Mac (using GlobalSAN)

However, when I mount the drive, it always appear as a hard disk
rather than an optical drive ; which prevents me to use as intended).

My understanding is that it's up to the iSCSI target server to report
the kind of drive exported.

How can I make iscsitarget properly report that information?

Or can I statically force to report as a given type ?

Thank you
Jean-Yves

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Iscsitarget-devel mailing list
Iscsitarget-devel@...
https://lists.sourceforge.net/lists/listinfo/iscsitarget-devel

Re: Getting proper drive type from iscsitarget

by Arne Redlich-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Am Donnerstag, den 04.09.2008, 03:38 +1000 schrieb Jean-Yves Avenard:

> Hello
>
> Trying to export DVD drive from my Linux machine which available
> locally on /dev/scd0
>
> I added the following to my ietd.conf:
> Target iqn.2000-12.org.avenard:storage.cd
>         User
>         Lun 0 Path=/dev/scd0,Type=blockio,IOMode=ro
>         Alias iCD
>
> This allows me to mount the drive on a Windows Vista (using build-in
> iSCSI initator) machine or Mac (using GlobalSAN)
>
> However, when I mount the drive, it always appear as a hard disk
> rather than an optical drive ; which prevents me to use as intended).
>
> My understanding is that it's up to the iSCSI target server to report
> the kind of drive exported.
>
> How can I make iscsitarget properly report that information?
>
> Or can I statically force to report as a given type ?

IET does not support pass-through as you're trying to attempt, only
(virtual) disks. You should look at SCST.

HTH,
Arne


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Iscsitarget-devel mailing list
Iscsitarget-devel@...
https://lists.sourceforge.net/lists/listinfo/iscsitarget-devel

Re: Getting proper drive type from iscsitarget

by Jean-Yves Avenard-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

2008/9/4 Arne Redlich <agr@...>:
> IET does not support pass-through as you're trying to attempt, only
> (virtual) disks. You should look at SCST.

Thank you for your fast answer.

Does SCST work in combination with IET?

or those are two independent projects ?

Thanks
JY

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Iscsitarget-devel mailing list
Iscsitarget-devel@...
https://lists.sourceforge.net/lists/listinfo/iscsitarget-devel

Re: Getting proper drive type from iscsitarget

by Arne Redlich-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Am Donnerstag, den 04.09.2008, 04:06 +1000 schrieb Jean-Yves Avenard:

> Hi
>
> 2008/9/4 Arne Redlich <agr@...>:
> > IET does not support pass-through as you're trying to attempt, only
> > (virtual) disks. You should look at SCST.
>
> Thank you for your fast answer.
>
> Does SCST work in combination with IET?
>
> or those are two independent projects ?

They're independent projects (though not completely unrelated since
SCST's iSCSI driver is based on IET code).

HTH,
Arne


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Iscsitarget-devel mailing list
Iscsitarget-devel@...
https://lists.sourceforge.net/lists/listinfo/iscsitarget-devel
LightInTheBox - Buy quality products at wholesale price!