Skip to contentSkip to conversation

scsi emulation - question

DISCUSSION Janos Haar 2 participants 4 messages Aug 7, 2010 – Aug 8, 2010

lore
Share & tools
lore

Janos Haar

author
#0 lore raw

Hello list,

Sorry for this off-topic question, but i had no good idea where to ask.

I am looking for a solution wich can emulate SCSI device from a block device like loop.
I need the sg device but not for special commands, but for reading and writing only.
I have found only one solution until now, but i want to find better and faster.
The actually working is ISCSI target and initiator in one pc.
But this opens up port, and makes a lot of IP packets even if i use lo for this, wich is only a waste of time and resources.

Is there any solution for this allready?
Or somebody can help me where to search?
I am thinking to modify the ide-scsi to use blockdev instead of IDE layer....

Thanks,
Janos Haar

#1 lore raw
Quoted 9 lines · On Sat, 7 Aug 2010 01:26:45 +0200 "Janos Haar" <[email protected]> wrote:

I am looking for a solution wich can emulate SCSI device from a block device like loop.
I need the sg device but not for special commands, but for reading and writing only.
I have found only one solution until now, but i want to find better and faster.
The actually working is ISCSI target and initiator in one pc. But this opens up port, and makes a lot of IP packets even if i use lo for this, wich is only a waste of time and resources.

scsi-debug should work for you.

author
#2 lore raw

Hi,

Thanks for the tip.
I have not used this before.
But now i have readed the documentation, and for me it looks like scsi-debug can work only in RAM and can make only volatile drives. Have i missed someting? :-)

Thanks,
Janos Haar

----- Original Message ----- From: "FUJITA Tomonori" <[email protected]>
To: <[email protected]>
Cc: <[email protected]>
Sent: Sunday, August 08, 2010 10:50 AM
Subject: Re: scsi emulation - question

Quoted 19 lines
Quoted 9 lines · On Sat, 7 Aug 2010 01:26:45 +0200 "Janos Haar" <[email protected]> wrote:

I am looking for a solution wich can emulate SCSI device from a block device like loop.
I need the sg device but not for special commands, but for reading and writing only.
I have found only one solution until now, but i want to find better and faster.
The actually working is ISCSI target and initiator in one pc. But this opens up port, and makes a lot of IP packets even if i use lo for this, wich is only a waste of time and resources.

scsi-debug should work for you.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

#3 lore raw
Quoted 2 lines · On Sat, 7 Aug 2010 12:35:14 +0200 "Janos Haar" <[email protected]> wrote:

But now i have readed the documentation, and for me it looks like scsi-debug can work only in RAM and can make only volatile drives.

Yes. If you store data to a file, a device, etc, iSCSI is the only option.