summaryrefslogtreecommitdiff
path: root/README
Commit message (Collapse)AuthorAgeFilesLines
* Use meson as the main build system (#365)Lee Duncan2022-09-211-323/+490
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Build: Add an iscsiuio 'build_date.sh' script This is currently unused, but will be used by meson to build the "build_date.[ch]" files used by iscsiuio. * Build: have git ignore file '.setup' I commonly use this file for shell aliases/functions. * Add framework to support building using meson. This adds the ability to use meson/ninja to build open-iscsi and iscsiuio, rather than the current system that uses 'autoconf' for iscsiuio and uses 'make' for everything else. The old make/autoconf system is left in place, for now, but deprecated, including a warning about that when running 'make all' or 'make user' from the top-level. * utils/build: enhance iscsi-iname to generate prefix Added new "-g/--generate-iname-prefix" argument to generate the InitiatorName= prefix. Also, updated iscsi-iname to use getopts. Also, use the new option from meson. * git/meson: remove 'builddir' from ignored files The build directory can be called anything. Suggested by: Eli Schwartz * iscsiuio build: fix new build_date.sh script Fixed several issues: - fix option handling for "-S" - fix epoch date handling from env (noticed by Eli Schwartz) - remove debug statements * iscsiuio meson: warn when not creating a symlink for iscsiuio * meson: install man pages more efficiently We don't need to specify path or subdirectory * iscsiuio meson: remove unused source date epoch option This option was never used, since we pass this info from the environment. * meson: no need to set libdir: default is fine * iscsiuio meson: no need to add c_args: already there * Don't generate initiatorname when cross-building (#367) Let it be generated by the iscsi-init service. Signed-off-by: TIAN Yuanhao <tianyuanhao3@163.com> * Set ISCSI_CONFIG_ROOT by meson Signed-off-by: TIAN Yuanhao <tianyuanhao3@163.com> * Set LOCK_DIR from home_dir to lock_dir Signed-off-by: TIAN Yuanhao <tianyuanhao3@163.com> * Install iface.example to db_root/ifaces Signed-off-by: TIAN Yuanhao <tianyuanhao3@163.com> Signed-off-by: TIAN Yuanhao <tianyuanhao3@163.com> Co-authored-by: TIAN Yuanhao <78596099+tianyuanhao@users.noreply.github.com> Co-authored-by: TIAN Yuanhao <tianyuanhao3@163.com>
* Update README's error handler/timeout sectiondoc-timersMike Christie2022-06-141-48/+166
| | | | | The README's error handling and timeout section is out dated or not correct. This patch updates it.
* Make DB and ISCSIHOME directories configurable.Lee Duncan2022-03-251-13/+27
| | | | | | | | | | | | | | | | | | | | This commit adds two new top-level build options: one for the "home" directory for open-iscsi called "HOMEDIR", and one for the "database" directory, called "DBROOT". One can now override the defaults of "/etc/iscsi" for either or both of these directories on the make command line. The README and man pages are updated with details about these new options. Some Makefile cleanup/repair was done as well. Installation of the initiatorname.iscsi file, was moved out of the top-level Makefile into the etc subdirectory, and installation of man ages moved from the top-level Makefile to the doc subdirectory. Also, this fixes some issues from commit fd14dd8316b1 ("Clean p Makefile build system."), which incorrectly changed the DESTDIR ariable in the Makefiles. This current commit also fixes the top-level variable names for moving DBROOT and HOMEDIR.
* General Makefile/README cleanupLee Duncan2022-03-171-9/+12
| | | | | | | Cleaning up the Makefiles, in preperation for adding the ability to move files out of /etc/iscsi more easily. Also, clean up the README file by updating it with help updated help messages, alignment, and those pesky spaces at the ends of lines.
* Updated README a bitLee Duncan2021-10-251-44/+11
| | | | | | | | Remove stuff about a kernel module, since that's ancient history. Also, add a bit about compiling iscsiuio, since it's part of open-iscsi now, and lastly update info on putting the binaries some place other than /sbin, if desired.
* Implement login "no_wait" for iscsiadm NODE modeLee Duncan2020-10-081-29/+46
| | | | | | | | | Commit 46183ffd36c9 added the "-W"/"--no_wait" flag to iscsiadm, in "node" mode, when doing loginall. This commit adds this functionality to mode node when logging into a single target. The man page was also updated, as was the README file, where appropriate.
* Merge branch 'master' into uniform-invocation-examplesChristopher Holm2017-03-081-68/+60
|\
| * Merge branch 'master' into punctuationChristopher 'm4z' Holm2017-03-081-85/+122
| |\ | | | | | | | | | | | | Conflicts: README
| * | Improve README punctuation.Christopher 'm4z' Holm2017-03-021-75/+67
| | |
* | | Add actual "iscsiadm --help" output (on openSUSE).Christopher 'm4z' Holm2017-03-081-1/+8
| | |
* | | Unify invocation examples, option documentation, and more.Christopher 'm4z' Holm2017-03-081-463/+438
| |/ |/| | | | | | | | | | | | | | | - Assume a "proper" installation: remove "./" from invocation examples. - Fix some wordings. - Add a bit of structure to section 5, by adding sub-headings. - Fix a few spellings of "Open-iSCSI". - Split up a few occurences of command + output to fit other README parts. - Unify some indentation.
* | Merge pull request #44 from m4z/typosChris Leech2017-03-071-26/+26
|\ \ | | | | | | Fix a bunch of typos and a bit of wording.
| * | Fix a bunch of typos and a bit of wording.Christopher 'm4z' Holm2017-03-021-26/+26
| |/
* | Merge pull request #43 from m4z/whitespaceChris Leech2017-03-071-27/+51
|\ \ | | | | | | Cleanup README whitespace.
| * | Cleanup README whitespace.Christopher 'm4z' Holm2017-03-021-27/+51
| |/ | | | | | | | | | | - Remove some trailing whitespace; - Unify-replace some spaces with tabs; - Add some empty lines for readability and uniformity.
* | Unify README headings.Christopher 'm4z' Holm2017-03-021-31/+45
|/
* Prepare to tag release 2.0.874Chris Leech2016-09-291-1/+1
|
* Replace open-iscsi.org with open-iscsi.com in docsChris Leech2016-09-291-1/+1
| | | | Replaced in README and man pages
* Spelling fixesVille Skyttä2016-09-181-19/+19
|
* iscsi: remove local copy of open-isnsMike Christie2015-08-241-0/+14
| | | | | | | | | | This has open-iscsi stop shipping a copy of open-isns. You can get the open-isns from the new isns maintainer, Lee Duncan, from his github tree here: https://github.com/gonzoleeman/open-isns/releases Thanks to Lee and SUSE for taking this work on!
* Kernel include pathHeinrich Schuchardt2015-01-191-1/+1
| | | | | | | | The path to the kernel include files is given by /lib/modules/`uname -r`/build on Debian. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
* README: Updated for host statistics.Lalit Chandivade2013-12-221-0/+8
| | | | | Signed-off-by: Lalit Chandivade <lalit.chandivade@qlogic.com> Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
* README changes for adding support to set CHAP entryAdheer Chandravanshi2013-12-221-1/+41
| | | | | | | | README changes for the support added to set CHAP entry using chap submode of iscsiadm host mode. Signed-off-by: Adheer Chandravanshi <adheer.chandravanshi@qlogic.com> Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
* README changes to use long option --index instead of --flashnode_idxAdheer Chandravanshi2013-12-221-3/+3
| | | | | | | | This change supports use of -x option instead of -v option for chap_tbl_idx cmdline param. Signed-off-by: Adheer Chandravanshi <adheer.chandravanshi@qlogic.com> Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
* README changes for flashnode submode support for host mode.Adheer Chandravanshi2013-05-281-0/+73
| | | | | Signed-off-by: Adheer Chandravanshi <adheer.chandravanshi@qlogic.com> Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
* Update README for removal of DBM requirementAndy Grover2012-11-011-9/+14
| | | | | | Removed in 093b1f4 (2006) Signed-off-by: Andy Grover <agrover@redhat.com>
* Prep for open-iscsi-2.0.873 release2.0.873Mike Christie2012-05-201-10/+25
| | | | Update Changelog, README and version.h for new release.
* iscsi tools: update documents for CHAP commandNilesh Javali2012-03-061-1/+1
| | | | Signed-off-by: Nilesh Javali <nilesh.javali@qlogic.com>
* iscsi tools: update documents for ping commandVikas Chaudhary2012-03-061-0/+2
| | | | | | update README and man page for ping command. Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
* iscsi tools: fix README sid lookup infoMike Christie2011-09-211-1/+1
| | | | | -i does not exist in session mode. -P 1 will print the sid info.
* iscsiadm: add netconfig supportLalit Chandivade2011-08-141-7/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Current status: Using iscsiadm one cannot do any network configuration for qla4xxx adapters. However an iface is created for the qla4xxx ports using the hwaddress. \# ls /etc/iscsi/ifaces/ iface.example iface0 qla4xxx.00:0e:1e:04:8b:2a qla4xxx.00:0e:1e:04:8b:2e This allows user to issue sendtargets via the qla4xxx iscsi offload. 2. Current Proposal: Current proposal is to allow iscsiadm to configure the network settings for qla4xxx ports. This implementation is based on discussions at - http://marc.info/?l=linux-scsi&m=127066184916180&w=2 - http://groups.google.com/group/open-iscsi/browse_thread/thread/d8e8c2df71c95d69/8f731d95d46141a0?lnk=gst&q=iscsi+hba# 2.1 Changes in iscsiadm/iscsid 2.1.1 Add a new event: ISCSI_UEVENT_SET_IFACE_PARAMS 2.1.2 New structure/enum to represent a single network parameter - enum iscsi_net_param; - struct iscsi_iface_param_info; 2.1.3 Added new parameters in iface 2.1.4 Change in operations Add two new operations to iscsiadm apply: Apply the single iface settings applyall: Apply the iface settings of all iface having the same MAC address 2.2 Changes in sysfs network representation The new sysfs directory would look like this:- /sys/class/iscsi_iface/-| _______________________| | |- ipv4-iface-<host_no>-<iface_no>/ <-- for ipv4 |- bootproto |- enabled |- ipaddress |- subnet |- gateway |- mtu |- port |- vlan |- vlan_enabled |- vlan_priority |- ipv6-iface-<host_no>-<iface_no>/ <-- for ipv6 |- enabled |- ipaddr_autocfg |- ipaddress |- link_local_addr |- linklocal_autocfg |- mtu |- port |- router_addr |- vlan |- vlan_enabled |- vlan_priority 3. Flow: 3.1 User space code: - If user specify --op=update, then just update the iface config file - If use specify --op=applyall then ifaces for the host passed in. and build up the net config buffer. - Note: If --op is "apply" then only settings for single iface is read, the iface provided with -I option is only read. - The net config buffer will look like this. ----------------------------------------------------------------| | iscsi_net_param { | | iface_num = 0; | | len = 4; | | param = ISCSI_NET_PARAM_IPV4_ADDR; | | iface_type = ISCSI_IFACE_TYPE_IPV4; | | param_type = ISCSI_NET_PARAM; | | value[0] = ipaddress[0]; | | value[1] = ipaddress[1]; | | value[2] = ipaddress[2]; | | value[3] = ipaddress[3]; | | } | ----------------------------------------------------------------| | iscsi_net_param { | | iface_num = 0; | | len = 4; | | param = ISCSI_NET_PARAM_IPV4_GW; | | iface_type = ISCSI_IFACE_TYPE_IPV4; | | param_type = ISCSI_NET_PARAM; | | value[0] = ipgateway[0]; | | value[1] = ipgateway[1]; | | value[2] = ipgateway[2]; | | value[3] = ipgateway[3]; | | } | ----------------------------------------------------------------- | | | iscsi_net_param { | | iface_num = 1; | | len = 4; | | param = ISCSI_NET_PARAM_IPV4_ADDR; | | iface_type = ISCSI_IFACE_TYPE_IPV4; | | param_type = ISCSI_NET_PARAM; | | value[0] = ipaddress[0]; | | value[1] = ipaddress[1]; | | value[2] = ipaddress[2]; | | value[3] = ipaddress[3]; | | } | ----------------------------------------------------------------- ----------------------------------------------------------------- | iscsi_net_param { | | iface_num = 0; | | len = 4; | | param = ISCSI_NET_PARAM_IPV4_GW; | | iface_type = ISCSI_IFACE_TYPE_IPV4; | | param_type = ISCSI_NET_PARAM; | | value[0] = ipgateway[0]; | | value[1] = ipgateway[1]; | | value[2] = ipgateway[2]; | | value[3] = ipgateway[3]; | | } | ----------------------------------------------------------------- | iscsi_net_param { | | iface_num = 1; | | len = 1; | | param = ISCSI_NET_PARAM_IFACE_ENABLED; | | iface_type = ISCSI_IFACE_TYPE_IPV4; | | param_type = ISCSI_NET_PARAM; | | offset = 0; | | value[0] = 0; /* 0 = disable, default = 1 = enable */ | | } | ----------------------------------------------------------------- Each netconfig parameter has different size requirement for value field. e.g.: IPv4 address requires 4 bytes, IPv6 address requires 16 bytes etc. The memory allocated for each netconfig parameter is size of iscsi_net_param + length required for that parameter. The multiple IO Vector mechanism is used to send netconfig parameter from user space to kernel using Netlink interface. IO Vector 0 is used for Netlink message header. IO Vector 1 is used for iSCSI User Event (ev). - The ev will be sent down with event type = ISCSI_UEVENT_SET_NET_CONFIG IO Vector 2 onwards, each vector consists of the struct iscsi_net_param with parameter name followed by its value. The total size will be addition of all the IO vector sizes. 3.2 Kernel space code: - Once event is received, the buffer will look like struct iscsi_net_param with parameter name followed by its value, then next parameter and its value and so on. - the scsi_transport_iscsi would call the adapter's transport->set_net_config - In set_net_config each individual param can be decoded and set into the hardware. 4. qla4xxx configuration: iscsid, creates the iface for qla4xxx, based on the hwaddress. To display the iface related to qla4xxx execute following \# iscsiadm -m iface qla4xxx.00:0e:1e:04:8b:2e qla4xxx,00:0e:1e:04:8b:2e,<empty>,<empty>,<empty> qla4xxx.00:0e:1e:04:8b:2e.ipv6 qla4xxx,00:0e:1e:04:8b:2e,<empty>,<empty>,<e mpty> qla4xxx.00:0e:1e:04:8b:2a qla4xxx,00:0e:1e:04:8b:2a,20.15.0.66,<empty>,<emp ty> qla4xxx.00:0e:1e:04:8b:2a.ipv6 qla4xxx,00:0e:1e:04:8b:2a,2001:DB8:1111:2222::8888,<empty>,<empty> qla4xxx.00:0e:1e:04:8b:2a.ipv6.1 qla4xxx,00:0e:1e:04:8b:2a,2001:DB8:4444:5555::9999,<empty>,<empty> To setup network configuration there can be two methods 4. 1. User can manually modify the iface file, and issue an "apply" command. --------------------------------------------------------------------------- \#cat /etc/iscsi/ifaces/ iface.example iface0 qla4xxx.00:0e:1e:04:8b:2a qla4xxx.00:0e:1e:04:8b:2e Example: \# cat qla4xxx.00:0e:1e:04:8b:2a iface.iscsi_ifacename = qla4xxx.00:0e:1e:04:8b:2a iface.transport_name = qla4xxx iface.hwaddress = 00:0e:1e:04:8b:2a iface.state = enable iface.iface_num = 0 (default) iface.bootproto = static iface.ipaddress = 192.168.2.2 (decimal) iface.subnetmask = 255.255.255.0 (decimal) \# vi qla4xxx.00:0e:1e:04:8b:2a.ipv6 (If file does not exist, the one can create it) iface.iscsi_ifacename = qla4xxx.00:0e:1e:04:8b:2a.ipv6 iface.transport_name = qla4xxx iface.hwaddress = 00:0e:1e:04:8b:2a iface.ipaddress = 1111:2222::7777:8888 (hex) iface.iface_num = 0 \# iscsiadm -m iface -H 00:0e:1e:04:8b:2a --op=applyall This will find the ifaces on the host with MAC address 00:0e:1e:04:8b:2a and apply the settings to the hardware.. Note, this will read all the iface belonging to the same MAC address. Note2, Instead of a MAC address the host number can be passed in. 4.2. User can use iscsiadm to specify the values and then apply -------------------------------------------------------------- \# ls /etc/iscsi/ifaces/ iface.example iface0 qla4xxx.00:0e:1e:04:8b:2a qla4xxx.00:0e:1e:04:8b:2e \# iscsiadm -m iface -I qla4xxx.00:0e:1e:04:8b:2a -o update \ -n iface.ipaddress -v 192.168.1.2 \# iscsiadm -m iface -I qla4xxx.00:0e:1e:04:8b:2a -o update \ -n iface.gateway -v 192.168.1.1 \# iscsiadm -m iface -I qla4xxx.00:0e:1e:04:8b:2a -o update \ -n iface.subnet_mask -v 255.255.255.0 \# iscsiadm -m iface -H 00:0e:1e:04:8b:2a -o applyall Setting up multiple IP: First interface (default, no need to set iface_num, it is 0 by default) \# iscsiadm -m iface -I qla4xxx.00:0e:1e:04:8b:2a -o update \ -n iface.ipaddress -v 192.168.1.2 Create the second one if it does not exist \# iscsiadm -m iface -I qla4xxx.00:0e:1e:04:8b:2a.1 -op=new \# iscsiadm -m iface -I qla4xxx.00:0e:1e:04:8b:2a -o update \ -n iface.iface_num -v 1 (Mandatory) \# iscsiadm -m iface -I qla4xxx.00:0e:1e:04:8b:2a -o update \ -n iface.ipaddress -v 192.168.1.3 \# iscsiadm -m iface -H 00:0e:1e:04:8b:2a --op=applyall Note: If there are common settings for multiple interfaces then the settings from 0th iface would be considered valid. Note: To apply settings for a single iface, just say --op=apply Signed-off-by: Lalit Chandivade <lalit.chandivade@qlogic.com> Signed-off-by: Harish Zunjarrao <harish.zunjarrao@qlogic.com> [formatting fixes and addition of host param for applyall] Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
* iscsi tools: support hostnames in node modeMike Christie2011-02-011-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | You can now pass in hostnames as the portal argument. If you had: iscsiadm -m node -P 1 Target: iqn.2008-09.com.meanminna:3 Portal: 20.15.0.12:3260,1 Iface Name: default Then you can do iscsiadm -m node -T iqn.2008-09.com.meanminna:3 -p somehostname -l and iscsiadm will match this. For discovery mode we already support hostnames, but we do not support mixing. So if you used a hostname for discovery: iscsiadm -m discoverdb -t st -p somehostname -D Then when you run other discovery commands you have to use the hostname. iscsiadm -m discoverydb -t st -p somehostname -o update -n someval -v val will work, but iscsiadm -m discoverydb -t st -p 20.15.0.12 -o update -n someval -v val would not. For node mode, you do not have any control what the target returns (and it probably returns a address) but for discovery you can pass in what you want, so I think this should be ok.
* iscsi tools: document iface rp_filter useMike Christie2011-01-311-2/+29
| | | | | | | | | The rp_filter behavior changed upstream and this affects the iface iscsi session binding feature. When upgrading kernels the session login may fail when using iface binding. To fix this the sysctl rp_filter setting may need to be changed. See the README's iface prep section for details.
* iscsiadm: rename discovery2 mode as discoverydbMike Christie2010-07-111-117/+105
| | | | | This renames discovery2 mode to discoverydb to reflect it works on the discovery db where discovery mode does not.
* iscsiadm: mark discovery mode as depreciatedMike Christie2010-07-011-0/+57
| | | | discovery2 mode should be used instead of discovery mode.
* iscsid: use isns discovery rec for isns discoveryd setttingsMike Christie2010-07-011-27/+85
| | | | | | | This patch has isns discoveryd use the isns discovery rec settings instead of the iscsid.conf ones, so that the set up the is the same as ST and to give us freedom in the future to add more settings.
* iscsiadm: add new discovery modeMike Christie2010-07-011-64/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I really screwed up the old discovery mode record handling. This adds a discovery2 mode, which adds back the old features that got killed over time, and supports the new ones. iscsiadm -m discovery2 -t st -p ip:port --discover will discover targets like before. Note that you must pass in the --discover argument. This will try to read a record for [-t st -p ip:port]. If found it will use those settings. If not found then it will create a record using iscsid.conf discovery.* settings and use them. Note that iscsiadm -m discovery2 -t st -p ip:port will no longer perform discovery (yuou must pass the --discover arguement), because the type and portal [-t st -p ip:port] is now used as the record id. So the above command will now print out the record values. What is being added is discovery record support. iscsiadm -m discovery2 -o new -t st -p ip:port will create a record for [-t st -p ip:port]. You can then use iscsiadm -m discovery2 -o -t st -p ip:port -o update \ -n name -v value to set the settings for the discovery record with id [-t st -p ip:port]. You can also then do more advanced commands like before iscsiadm -m discovery2 -t st -p ip:port -o new -o delete --discover will do discovery and add new portals and delete portals that are no longer returned.
* iscsid: fix sendtargets discovery daemon CHAP handlingMike Christie2010-07-011-6/+9
| | | | | | | | | | | | | | | We may need to have different CHAP settings for each discovery portal. This patch has us use the discovery records instead of the iscsid.conf method of specifying the sendtargets info. If the discovery record has discovery.sendtargets.use_discoveryd = Yes then iscsid will use that record to do sendtargets discovery. The poll interval can be set with discovery.sendtargets.discoveryd_poll_inval.
* iscsiadm: fix discovery record managementMike Christie2010-07-011-6/+35
| | | | | | | | | | | | | | | | | | | We recently added the ability to use and update discovery records. when this was done, we had iscsiadm -m discovery -t st -p ip:port use the record value if found. This will break compat with older releases and it is a little strange because iscsiadm -m discovery -p ip:port [ -o ... | -l ] works on or uses the discovery record. So this patch reverts iscsiadm behavior so that iscsiadm -m discovery -t st -p ip:port uses the iscsid.conf settings, and adds a new --discover|-D command that can be used to force discovery. iscsiadm -m discovery -p ip:port --discover will force discovery using the record with the ID ip:port.
* iscsid: support discovery daemon auto logoutMike Christie2010-03-221-4/+5
| | | | | | With this patch, if the sendtargets or isns daemon detects that a target is no longer sent it will logout the session.
* iscsid: add isns discovery daemon and SCN supportMike Christie2010-03-221-3/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | This adds the following params to iscsid.conf discovery.daemon.isns.addresses discovery.daemon.isns.poll_interval These work like SendTargets where if you the param iscsid will do discovery and log into the portals found. This also adds iSNS SCN support. Like the other code it only supports login of new targets. Some notes: - It does not appear to work with the Microsoft iSNS server shipping with Windows 2008 rc. I have not tested 2003. The server does not seem to be sending any SCNs and at the same time when we register for SCNs it tells us the operation was successful. From the Microsoft docs it appears that the server does not support SCN events. - Linux-isns is not working with our code. The Linux-isns code appears to be sending iSNS SCN pdus with an incorrect format. - It is working with open-isns.git.
* iscsi tools: use open-isns servicesMike Christie2010-03-221-7/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This replaces the native isns code with open-isns's libisns. I included the open-isns code in the open-iscsi tarball to make distribution easier since some distros use different isns clients and may not want to carry open-isns. This is based on open-isns commit 5e09f36d3446e41de0b8361601ffec4cd140d513. Changes in iSNS behavior/use: - To do discovery you must pass the ip and optionally the port to iscsiadm: iscsiadm -m discovery -t st -p 10.15.0.9 This command accepts the same ops as sendtargets so you can add/remove/update the node records that are created. It also supports ifaces properly now. - isns.address and isns.port in iscsid.conf are no longer used. - ESI is temporarily not supported. This will be fixed in the next patch when SCNs support is added. - The iscsiadm isns discovery command is not marked as stable. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
* iscsiadm: add nonpersistent mode to discovery modeMike Christie2010-03-221-2/+13
| | | | | | | | | | | | | | | | | | | | The default behavior for iscsiadm discovery mode is to store the portals found in the node DB. This adds a op "nonpersistent" to run iscsiadm discovery in a nonpersistent mode. In thos mode iscsiadm will not access the node DB. iscsiadm -m discovery -t st -p ip -o nonpersistent will just print out the portals found. icssiadm -m discovery -t st -p ip -o nonpersistent -l will print out the portals found and login. If this command is run to logout you must run in session mode. iscsiadm -m session -u would logout all the sessions.
* iscsiadm: fix discovery record useMike Christie2009-10-111-7/+11
| | | | | | | | | | | | | | | | | | iscsiadm is not using the discovery record settings. This has iscsiadm -m discovery -t st -p ip:port search for a discovery setting for ip:port. If found it will use those values for discovery. Previously it would always use the iscsid.conf settings. To change the discovery settings for a record you can do iscsiadm -m discovery -p ip:port -o update -n setting_name -v value like in node mode. Or you can completely remove the discovery record and targets found through it by doing iscsiadm -m discovery -p ip:port -o delete then run the discovery command which will then use the iscsid.conf values and create a new discovery record.
* docs: fix up described behavior for iface binding and discoveryMike Christie2009-05-211-6/+10
| | | | | The README said that we auto bind all ifaces in /etc/iscsi/ifaces but we only autobind ones with the transport name tcp.
* README: add info for how to setup ifaces for cxgb3i and bnx2iMike Christie2009-05-201-17/+150
| | | | | Add some info using cxgb3i and cxgb3i to the README and also add some info on the host mode.
* docs: more README fixesMike Christie2009-02-261-12/+12
| | | | Run spell checker over README.
* docs: fix up type in READMEMike Christie2009-02-251-1/+1
| | | | Fix up spelling of interface in README found by Ulrich.
* doc: remove wiki referenceMike Christie2009-02-221-4/+1
| | | | | The wiki is down and probably dead for good. This removes a bad link to it.
* docs: update readme with libiscsi_tcp infoMike Christie2009-02-221-3/+3
| | | | | There is a new module, libiscsi_tcp, that is installed. This updates the README.