Figured I better join this list as the moderators weren't excepting my unsubscribed posting. At the very least I suspect some others will benefit from what I've done. And, hopefully at least some of it will make it into the repo. I'd rather not have to maintain this on my own forever.
I've made many changes to iSCSILogicalUnit and iSCSITarget to add full LIO support (actually ramdisk isn't finished).
I separated tcm_node and lio_node commands into iSCSILogicalUnit and iSCSITarget respectively
iSCSILogicalunit - I wasn't able to test iblock(block) or ramdisk. Fileio works perfectly! added parameters: backstore_type, hba_name, ramdisk_pages changed parameters: path (ramdisk doesn't use this - of course I didn't finish ramdisk support so this change can be left out) remove parameter: allowed_initiators added validation check: backstore_type updated required_vars updated unsupported_parms updated kernel module check
iSCSITarget added parameters: mutualchap_username mutualchap_password lun tpgt hba_name storage_object_name changed parameters: incoming_username so it's not unique - LIO can reuse the username added validation checks: implementation lun tpgt
updated required_vars updated unsupported_parms updated kernel module check
Fileio example usage:crm configure primitive iscsiLUNwitness1 ocf:heartbeat:iSCSILogicalUnit params implementation="lio" target_iqn="witness1" lun="0" path="/clusterfs/iscsi/192.168.10.50.lun.1" backstore_type="fileio" hba_name="fileio_0" op monitor interval="10"crm configure primitive iscsiTARGETwitness1 ocf:heartbeat:iSCSITarget params implementation="lio" iqn="witness1" portals="192.168.10.50:3260" allowed_initiators="iqn.1991-05.com.microsoft:hostname" incoming_username="iqn.1991-05.com.microsoft:hostname" incoming_password="secretpassword1" lun="0" tpgt="1" hba_name="fileio_0" storage_object_name="iscsiLUNwitness1" op monitor interval="10s" timeout="20s"
Thanks and let me know if this works for you! or doesn't
Dan Cyr
über Linux geek, A+, Network+, i-Net+ Certified Professional
"The grand essentials of happiness: something to do, something to love, something to hope for."
From: rabidfly@hotmail.com
To: linux-ha-dev@lists.linux-ha.org
Subject: iSCSI - lio fileio/Chap and Mutual Chap Patch
Date: Thu, 28 Jun 2012 13:26:36 -0700
Please cc me as I'm not on this list.
I've added fileio, and chap/mchap. Please forgive me if the patches are not in the format you want them in: it's been years since I've created a patch.
Thanks for all your hard work on HA!
Dan Cyr
über Linux geek, A+, Network+, i-Net+ Certified Professional
"The grand essentials of happiness: something to do, something to love, something to hope for."
I've made many changes to iSCSILogicalUnit and iSCSITarget to add full LIO support (actually ramdisk isn't finished).
I separated tcm_node and lio_node commands into iSCSILogicalUnit and iSCSITarget respectively
iSCSILogicalunit - I wasn't able to test iblock(block) or ramdisk. Fileio works perfectly! added parameters: backstore_type, hba_name, ramdisk_pages changed parameters: path (ramdisk doesn't use this - of course I didn't finish ramdisk support so this change can be left out) remove parameter: allowed_initiators added validation check: backstore_type updated required_vars updated unsupported_parms updated kernel module check
iSCSITarget added parameters: mutualchap_username mutualchap_password lun tpgt hba_name storage_object_name changed parameters: incoming_username so it's not unique - LIO can reuse the username added validation checks: implementation lun tpgt
updated required_vars updated unsupported_parms updated kernel module check
Fileio example usage:crm configure primitive iscsiLUNwitness1 ocf:heartbeat:iSCSILogicalUnit params implementation="lio" target_iqn="witness1" lun="0" path="/clusterfs/iscsi/192.168.10.50.lun.1" backstore_type="fileio" hba_name="fileio_0" op monitor interval="10"crm configure primitive iscsiTARGETwitness1 ocf:heartbeat:iSCSITarget params implementation="lio" iqn="witness1" portals="192.168.10.50:3260" allowed_initiators="iqn.1991-05.com.microsoft:hostname" incoming_username="iqn.1991-05.com.microsoft:hostname" incoming_password="secretpassword1" lun="0" tpgt="1" hba_name="fileio_0" storage_object_name="iscsiLUNwitness1" op monitor interval="10s" timeout="20s"
Thanks and let me know if this works for you! or doesn't
Dan Cyr
über Linux geek, A+, Network+, i-Net+ Certified Professional
"The grand essentials of happiness: something to do, something to love, something to hope for."
From: rabidfly@hotmail.com
To: linux-ha-dev@lists.linux-ha.org
Subject: iSCSI - lio fileio/Chap and Mutual Chap Patch
Date: Thu, 28 Jun 2012 13:26:36 -0700
Please cc me as I'm not on this list.
I've added fileio, and chap/mchap. Please forgive me if the patches are not in the format you want them in: it's been years since I've created a patch.
Thanks for all your hard work on HA!
Dan Cyr
über Linux geek, A+, Network+, i-Net+ Certified Professional
"The grand essentials of happiness: something to do, something to love, something to hope for."