Re: Fwd: All scsi_debug devices in the scsi_debug driver share the same RAM space

2018-02-14 Thread Laurence Oberman
On Tue, 2018-02-13 at 21:14 -0500, Martin K. Petersen wrote:
> Lukas,
> 
> > I like the idea to have an option to separate the memory area for
> > different LUNs, while keeping the current behavior as default.
> 
> As the name implies, scsi_debug is mostly a tool for debugging the
> SCSI
> stack.
> 
> If you care about storing data, why not simply use target in loopback
> mode?
> 

Hi Martin

I think what Lukas was really looking for is what I started out
wanting.
Individual devices that could be put into configurations such as md-
raid for testing and could be used with fault injection.

In the end I had to use 5 (LIO or physical) devices and 1 scsi_debug
device to reproduce an issue for md-raid.
Target loopback was an option too.

I have fault injection in qla2xxx tcm already but not in the target
core.

I guess it time i look into that now so will proceed with that.

Regards
Laurence


Re: Fwd: All scsi_debug devices in the scsi_debug driver share the same RAM space

2018-02-13 Thread Martin K. Petersen

Lukas,

> I like the idea to have an option to separate the memory area for
> different LUNs, while keeping the current behavior as default.

As the name implies, scsi_debug is mostly a tool for debugging the SCSI
stack.

If you care about storing data, why not simply use target in loopback
mode?

-- 
Martin K. Petersen  Oracle Linux Engineering


Fwd: All scsi_debug devices in the scsi_debug driver share the same RAM space

2018-02-12 Thread Lukas Herbolt
Hi,
I like the idea to have an option to separate the memory area for
different LUNs, while keeping the current behavior as default.

Lukas