|
|
6c64be |
From 65998ba3f2413069aa2242645712969d62d9c140 Mon Sep 17 00:00:00 2001
|
|
|
6c64be |
From: Adheer Chandravanshi <adheer.chandravanshi@qlogic.com>
|
|
|
6c64be |
Date: Fri, 22 Mar 2013 07:35:53 -0400
|
|
|
6c64be |
Subject: README changes for flashnode submode support for host mode.
|
|
|
6c64be |
|
|
|
6c64be |
Signed-off-by: Adheer Chandravanshi <adheer.chandravanshi@qlogic.com>
|
|
|
6c64be |
Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
|
|
|
6c64be |
---
|
|
|
6c64be |
README | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
6c64be |
1 file changed, 73 insertions(+)
|
|
|
6c64be |
|
|
|
6c64be |
diff --git a/README b/README
|
|
|
6c64be |
index ec22098..29b00a9 100644
|
|
|
6c64be |
--- a/README
|
|
|
6c64be |
+++ b/README
|
|
|
6c64be |
@@ -406,6 +406,29 @@ Usage: iscsiadm [OPTION]
|
|
|
6c64be |
is connected to.
|
|
|
6c64be |
3 = Print iscsi params used.
|
|
|
6c64be |
4 = Print SCSI info like LUNs, device state.
|
|
|
6c64be |
+ -m host --host=hostno|MAC -C flashnode
|
|
|
6c64be |
+ Display list of all the targets in adapter's
|
|
|
6c64be |
+ flash (flash node), for the specified host,
|
|
|
6c64be |
+ with ip, port, tpgt and iqn.
|
|
|
6c64be |
+ -m host --host=hostno|MAC -C flashnode --op=[NEW] --portal_type=[ipv4|ipv6]
|
|
|
6c64be |
+ Create new flash node entry for the given host of the
|
|
|
6c64be |
+ specified portal_type. This returns the index of the
|
|
|
6c64be |
+ newly created entry on success.
|
|
|
6c64be |
+ -m host --host=hostno|MAC -C flashnode --flashnode_idx=[flashnode index] \
|
|
|
6c64be |
+ --op=[UPDATE] --name=[name] --value=[value]
|
|
|
6c64be |
+ Update the params of the speficied flash node.
|
|
|
6c64be |
+ The [name] and [value] pairs must be provided for the
|
|
|
6c64be |
+ params that need to be updated. Multiple params can
|
|
|
6c64be |
+ be updated using a single command.
|
|
|
6c64be |
+ -m host --host=hostno|MAC -C flashnode--flashnode_idx=[flashnode index] \
|
|
|
6c64be |
+ --op=[SHOW | DELETE | LOGIN | LOGOUT]
|
|
|
6c64be |
+ op=DELETE|LOGIN|LOGOUT will perform deletion/login/
|
|
|
6c64be |
+ logout operation on the specified flash node.
|
|
|
6c64be |
+
|
|
|
6c64be |
+ op=SHOW will list all params with the values for the
|
|
|
6c64be |
+ specified flash node. This is the default operation.
|
|
|
6c64be |
+
|
|
|
6c64be |
+ See the iscsiadm example section for more info.
|
|
|
6c64be |
-d, --debug debuglevel print debugging information
|
|
|
6c64be |
-V, --version display version and exit
|
|
|
6c64be |
-h, --help display this help and exit
|
|
|
6c64be |
@@ -960,6 +983,56 @@ To now log into targets it is the same as with sofware iscsi. See section
|
|
|
6c64be |
|
|
|
6c64be |
./iscsiadm -m session -P 1
|
|
|
6c64be |
|
|
|
6c64be |
+
|
|
|
6c64be |
+ Host mode with flashnode submode:
|
|
|
6c64be |
+
|
|
|
6c64be |
+ - Display list of flash nodes for a host
|
|
|
6c64be |
+
|
|
|
6c64be |
+ ./iscsiadm -m host -H 6 -C flashnode
|
|
|
6c64be |
+
|
|
|
6c64be |
+ This will print list of all the flash node entries for the given host 6
|
|
|
6c64be |
+ along with their ip, port, tpgt and iqn values.
|
|
|
6c64be |
+
|
|
|
6c64be |
+ - Display all parameters of a flash node entry for a host
|
|
|
6c64be |
+
|
|
|
6c64be |
+ ./iscsiadm -m host -H 6 -C flashnode -x 0
|
|
|
6c64be |
+
|
|
|
6c64be |
+ This will list all the parameter name,value pairs for flash node entry at
|
|
|
6c64be |
+ index 0 of host 6.
|
|
|
6c64be |
+
|
|
|
6c64be |
+ - Add a new flash node entry for a host
|
|
|
6c64be |
+
|
|
|
6c64be |
+ ./iscsiadm -m host -H 6 -C flashnode -o new -A ipv4
|
|
|
6c64be |
+ or
|
|
|
6c64be |
+ ./iscsiadm -m host -H 6 -C flashnode -o new -A ipv6
|
|
|
6c64be |
+
|
|
|
6c64be |
+ This will add new flash node entry for the given host 6 with portal
|
|
|
6c64be |
+ type of either ipv4 or ipv6. The new operation returns the index of
|
|
|
6c64be |
+ the newly created flash node entry.
|
|
|
6c64be |
+
|
|
|
6c64be |
+ - Update a flashnode entry
|
|
|
6c64be |
+ ./iscsiadm -m host -H 6 -C flashnode -x 1 -o update \
|
|
|
6c64be |
+ -n flashnode.conn[0].ipaddress -v 192.168.1.12 \
|
|
|
6c64be |
+ -n flashnode.session.targetname \
|
|
|
6c64be |
+ -v iqn.2002-03.com.compellent:5000d310004b0716
|
|
|
6c64be |
+
|
|
|
6c64be |
+ This will update the values of ipaddress and targetname params of
|
|
|
6c64be |
+ flash node entry at index 1 of host 6.
|
|
|
6c64be |
+
|
|
|
6c64be |
+ - Login to a flash node entry
|
|
|
6c64be |
+ ./iscsiadm -m host -H 6 -C flashnode -x 1 -o login
|
|
|
6c64be |
+
|
|
|
6c64be |
+ - Logout from a flash node entry
|
|
|
6c64be |
+ ./iscsiadm -m host -H 6 -C flashnode -x 1 -o logout
|
|
|
6c64be |
+ or
|
|
|
6c64be |
+ ./iscsiadm -m session -r $sid -u
|
|
|
6c64be |
+
|
|
|
6c64be |
+ Logout can be performed either using the flash node index or using the
|
|
|
6c64be |
+ corresponding session index.
|
|
|
6c64be |
+
|
|
|
6c64be |
+ - Delete a flash node entry
|
|
|
6c64be |
+ ./iscsiadm -m host -H 6 -C flashnode -x 1 -o delete
|
|
|
6c64be |
+
|
|
|
6c64be |
6. Configuration
|
|
|
6c64be |
================
|
|
|
6c64be |
|
|
|
6c64be |
--
|
|
|
6c64be |
1.8.1.4
|
|
|
6c64be |
|