From 9f1c8a5ba49e7cad67b7ebf6e3e119eeb32a7ff0 Mon Sep 17 00:00:00 2001 From: Prasanna Kumar Kalever Date: Wed, 22 Feb 2017 14:49:55 +0530 Subject: cli: change in synopsis for gluster-block commands from now we will have fixed formats for commands. The new outfit will look like: $ gluster-block help gluster-block (3ba7ec5) usage: gluster-block [] commands: create [ha ] create block device. list list available block devices. info details about block device. delete delete block device. help show this message and exit. version show version info and exit. Example usage: $ gluster-block create volume/blockname 192.168.0.1 1GiB $ gluster-block create volume/blockname ha 2 192.168.0.1,192.168.0.2 1GiB $ gluster-block list volume $ gluster-block info volume/blockname $ gluster-block delete volume/blockname Change-Id: Idc6b55c26432ed1ac3f002c2a2b3dbb81b180ec2 Signed-off-by: Prasanna Kumar Kalever --- README.md | 47 ++++++++++++++++++++++++++--------------------- 1 file changed, 26 insertions(+), 21 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 19af201..c2a9aee 100644 --- a/README.md +++ b/README.md @@ -66,23 +66,28 @@ managing the command ring buffers - [x] *In all nodes gluster-blockd.service is running* ```script -# gluster-block help -gluster-block (57f0509) +# gluster-block (3ba7ec5) usage: - gluster-block [] - -commands and arguments: - create create block device - size size in KiB|MiB|GiB|TiB.. - [mpath ] multipath requirement for high availability(default: 1) - servers servers in the pool where targets are exported - list list available block devices - info details about block device - modify modify metadata - delete delete block device - volume volume that hosts the block device - help show this message and exit - version show version info and exit + gluster-block [] + +commands: + create [ha ] + create block device. + + list + list available block devices. + + info + details about block device. + + delete + delete block device. + + help + show this message and exit. + + version + show version info and exit. ``` #### Example: @@ -94,8 +99,8 @@ Create a gluster volume by pooling 3 nodes (192.168.1.11, 192.168.1.12 and 192.1 Read More on how to [create a gluster volume](https://access.redhat.com/documentation/en-US/Red_Hat_Storage/2.1/html/Administration_Guide/sect-User_Guide-Setting_Volumes-Replicated.html)*
-Create 1G gluster block storage
-# gluster-block create sample-block volume block-test size 1GiB mpath 3 servers 192.168.1.11,192.168.1.12,192.168.1.13
+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.
@@ -117,10 +122,10 @@ Created LUN 0.
 Using default IP port 3260
 Created network portal 192.168.1.13:3260.
 
-# gluster-block list volume block-test
+# gluster-block list block-test
 sample-block
 
-#  gluster-block info sample-block volume block-test
+#  gluster-block info block-test/sample-block
 NAME: sample-block
 VOLUME: block-test
 GBID: 6b60c53c-8ce0-4d8d-a42c-5b546bca3d09
@@ -151,7 +156,7 @@ On initiator node
 # iscsiadm -m node -u
 
 On the gluster-block node
-# gluster-block delete sample-block volume block-test
+# 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.
 
-- 
cgit