From 2445dd3403b3b6e2e903f6d476ed4076e9a51e29 Mon Sep 17 00:00:00 2001 From: Prasanna Kumar Kalever Date: Thu, 23 Feb 2017 20:43:07 +0530 Subject: gluster-blockd: parse create and delete outputs The new parsed output of create and delete command will look like: $ gluster-block create sample/sample-block ha 2 ${HOST1} ${HOST2} 1GiB IQN: iqn.2016-12.org.gluster-block:aafea465-9167-4880-b37c-2c36db8562ea PORTAL(S): ${HOST1}:3260 ${HOST2}:3260 RESULT: SUCCESS $ gluster-block delete sample/sample-block SUCCESSFUL ON: ${HOST1} ${HOST2} RESULT: SUCCESS Change-Id: Id98e643c62a898a1f7298b6cfeb6ddfa10397b7f Signed-off-by: Prasanna Kumar Kalever --- README.md | 40 ++++++++++------------------------------ 1 file changed, 10 insertions(+), 30 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index c2a9aee..65f72af 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ managing the command ring buffers ### Install ------
-# git clone https://github.com/pkalever/gluster-block.git
+# git clone https://github.com/gluster/gluster-block.git
 # cd gluster-block/
 # dnf install libuuid-devel glusterfs-api-devel tcmu-runner targetcli (on fedora)
 # make -j install
@@ -101,26 +101,9 @@ Read More on how to [create a gluster volume](https://access.redhat.com/document
 
 Create 1G gluster block storage with name 'sample-block'
 # gluster-block create block-test/sample-block ha 3 192.168.1.11,192.168.1.12,192.168.1.13 1GiB
-Created user-backed storage object sample-block size 1073741824.
-Created target iqn.2016-12.org.gluster-block:6b60c53c-8ce0-4d8d-a42c-5b546bca3d09.
-Created TPG 1.
-Created LUN 0.
-Using default IP port 3260
-Created network portal 192.168.1.11:3260.
-
-Created user-backed storage object sample-block size 1073741824.
-Created target iqn.2016-12.org.gluster-block:6b60c53c-8ce0-4d8d-a42c-5b546bca3d09.
-Created TPG 1.
-Created LUN 0.
-Using default IP port 3260
-Created network portal 192.168.1.12:3260.
-
-Created user-backed storage object sample-block size 1073741824.
-Created target iqn.2016-12.org.gluster-block:6b60c53c-8ce0-4d8d-a42c-5b546bca3d09.
-Created TPG 1.
-Created LUN 0.
-Using default IP port 3260
-Created network portal 192.168.1.13:3260.
+IQN: iqn.2016-12.org.gluster-block:aafea465-9167-4880-b37c-2c36db8562ea
+PORTAL(S): 192.168.1.11:3260 192.168.1.12:3260 192.168.1.13:3260
+RESULT: SUCCESS
 
 # gluster-block list block-test
 sample-block
@@ -130,9 +113,10 @@ NAME: sample-block
 VOLUME: block-test
 GBID: 6b60c53c-8ce0-4d8d-a42c-5b546bca3d09
 SIZE: 1073741824
-MULTIPATH: 3
+HA: 3
 BLOCK CONFIG NODE(S): 192.168.1.11 192.168.1.12 192.168.1.13
 
+NOTE: Block targets created using gluster-block utility will use TPG: 1 and LUN: 0. ##### On the Initiator machine
@@ -157,12 +141,8 @@ On initiator node
 
 On the gluster-block node
 # gluster-block delete block-test/sample-block
-Deleted storage object sample-block.
-Deleted Target iqn.2016-12.org.gluster-block:6b60c53c-8ce0-4d8d-a42c-5b546bca3d09.
-
-Deleted storage object sample-block.
-Deleted Target iqn.2016-12.org.gluster-block:6b60c53c-8ce0-4d8d-a42c-5b546bca3d09.
-
-Deleted storage object sample-block.
-Deleted Target iqn.2016-12.org.gluster-block:6b60c53c-8ce0-4d8d-a42c-5b546bca3d09.
+SUCCESSFUL ON: 192.168.1.11 192.168.1.12 192.168.1.13
+RESULT: SUCCESS
 
+ +NOTE: gluster-block cannot track iSCSI targets created manually using targetcli. -- cgit