diff options
author | Prasanna Kumar Kalever <prasanna.kalever@redhat.com> | 2017-02-23 20:43:07 +0530 |
---|---|---|
committer | Prasanna Kumar Kalever <prasanna.kalever@redhat.com> | 2017-02-27 18:22:40 +0530 |
commit | 2445dd3403b3b6e2e903f6d476ed4076e9a51e29 (patch) | |
tree | 4b4ad6aed88f2e9c35019d7ae1ab01c9d1057a62 /README.md | |
parent | 15cdf7708b321fe883ada00b9624503c2aa00572 (diff) |
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 <prasanna.kalever@redhat.com>
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 40 |
1 files changed, 10 insertions, 30 deletions
@@ -53,7 +53,7 @@ managing the command ring buffers ### Install ------ <pre> -# 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 <pre> Create 1G gluster block storage with name 'sample-block' <b># gluster-block create block-test/sample-block ha 3 192.168.1.11,192.168.1.12,192.168.1.13 1GiB</b> -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 <b># gluster-block list block-test</b> 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 </pre> +<b>NOTE:</b> Block targets created using gluster-block utility will use TPG: 1 and LUN: 0. ##### On the Initiator machine <pre> @@ -157,12 +141,8 @@ On initiator node On the gluster-block node <b># gluster-block delete block-test/sample-block</b> -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 </pre> + +<b>NOTE:</b> gluster-block cannot track iSCSI targets created manually using targetcli. |