From 4d045cdeaf701f8abe6bee4f1e433f7bc9c50493 Mon Sep 17 00:00:00 2001 From: Mike Christie Date: Tue, 1 Feb 2011 02:04:30 -0600 Subject: 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. --- doc/iscsiadm.8 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'doc') 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. -- cgit v1.2.1