summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2011-02-01 02:04:30 -0600
committerMike Christie <michaelc@cs.wisc.edu>2011-02-01 02:04:30 -0600
commit4d045cdeaf701f8abe6bee4f1e433f7bc9c50493 (patch)
treedc1082d3b5abd666eaff3a336f185823719e18e9 /doc
parentcc425fd44b24d9fda74395951570460fc919d076 (diff)
downloadopen-iscsi-4d045cdeaf701f8abe6bee4f1e433f7bc9c50493.tar.gz
iscsi tools: support hostnames in node mode
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.
Diffstat (limited to 'doc')
-rw-r--r--doc/iscsiadm.810
1 files changed, 8 insertions, 2 deletions
diff --git a/doc/iscsiadm.8 b/doc/iscsiadm.8
index 177d3cd..53900a9 100644
--- a/doc/iscsiadm.8
+++ b/doc/iscsiadm.8
@@ -171,8 +171,14 @@ sid is passed in.
.TP
\fB\-p\fR, \fB\-\-portal=\fIip[:port]\fR
-Use target portal with ip-address \fIip\fR and \fIport\fR, the default
-\fIport\fR value is 3260.
+Use target portal with ip-address \fIip\fR and \fIport\fR. If port is not passed
+in the default \fIport\fR value is 3260.
+.IP
+IPv6 addresses can bs specified as [ddd.ddd.ddd.ddd]:port or
+ddd.ddd.ddd.ddd.
+.IP
+Hostnames can also be used for the ip argument.
+
.IP
This option is only valid for discovery, or for node operations with
the \fInew\fR operator.