[linux-lvm] re: iSCSI and LVM

Steve Brueggeman xioborg at yahoo.com
Fri May 16 14:00:16 UTC 2003


About a year ago, I had worked with the UNH iSCSI driver backend.  I
ended up writing another backend that did reads/writes directly to the
block layer.

The backend that is (was? I haven't looked at it for a while) was
extremely simple minded, and will need a bit of work for proper
operation.  For example, when you used "file' as the backend, with the
file being the LV, you reported the capacity as being incorrect.  This
is because, (if  I recall correctly) the read_capacity SCSI command
was hard-coded to the file size of the file that would have been
created, had you not renamed it to the LV block dev.  You'll need to
check the actual size of the device  when a read_capacity command is
received.

Also, I don't recall any mode page support being there, and their
implementation of buffering is quite simplistic.

I'll see if I can find my old back-end patches.  Would you be
interested???

Steve Brueggeman


On Wed, 14 May 2003 23:43:09 -0700, you wrote:

>Hi Greg,
>	Thanks for responding. I'm currently trying out the iSCSI
>implementation provided by the UNH IOL iSCSI Consortium:
>
>http://www.iol.unh.edu/consortiums/iscsi/
>
>They provide modules for both target and initiator. Unfortunately, the
>implementation is based on the v18 draft and doesn't include support for
>ErrorRecoveryLevel 2. I'd like level 2 recovery so that I can failover
>the node running the iSCSI target, and have the initiator automatically
>reconnect to the new iSCSI target node. Also, their implementation
>doesn't have support for setting up a logical volume as an iSCSI target.
>You can specify a file as an iSCSI target, so I tried specifying the
>logical volume's block device file, but when I imported it on the
>initiator node, the capacity of the device was all screwed up. Anyways,
>I'll try your pointer to the Intel implementation and see if it works
>better. Alternatively, I may try looking into using ENBD to export the
>logical volumes.
>
>Thanks,
>-Kai 
>
>
>_______________________________________________
>linux-lvm mailing list
>linux-lvm at sistina.com
>http://lists.sistina.com/mailman/listinfo/linux-lvm
>read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/





More information about the linux-lvm mailing list