Skip to contentSkip to conversation

iSCSI and LVM

linux-lvm Kai-Min Sung 2 participants 3 messages May 15, 2003 – May 16, 2003

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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

Quoted 28 lines · you

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
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

#2 lore raw

Hi Steve,
Yes, if you could find any patches that might help I'd greatly
appreciate it! I think you're right about the read_capacity being hard-coded. I remember the disk size being reported as something like 1900MB. I'll try taking a closer look at the code later this weekend.

Thanks!
-Kai

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Steve Brueggeman
Sent: Friday, May 16, 2003 12:01 PM
To: [email protected]
Subject: Re: [linux-lvm] re: iSCSI and LVM

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

Quoted 8 lines · you

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

Quoted 4 lines

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.

Quoted 11 lines

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

Quoted 5 lines

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/