1
0
mirror of https://github.com/gluster/gluster-block.git synced 2026-02-05 12:45:33 +01:00

23 Commits

Author SHA1 Message Date
Prasanna Kumar Kalever
d8fb2f2fa8 create: add tcmur_cmd_time_out option support
Set the tcmur_cmd_time_out=43s as default, which is larger than
each IO's timeout value(default is 30s) in the client/initiator side,
and at the same time it will be larger than 42s, the Gluster ping
timeout.

Reviewed-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Signed-off-by: Xiubo Li <xiubli@redhat.com>
2019-11-14 14:25:41 +05:30
Prasanna Kumar Kalever
61432ed617 reload: update man page and README
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2019-10-17 13:44:36 +05:30
Xiubo Li
c5bb230db4 ringbuffer: fix the max limited size to 1024M
The ringbuffer size for each target could up to the global limitation
which is 2GB, here we will allow it up to 1GB. This relevant kernel
patch has been updated into the same verions with the dynamic growth
and shrink patch set.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
2019-09-26 17:11:22 +05:30
Prasanna Kumar Kalever
e5e686b700 cleanup: remove unsupported code
Previously we had code which allows passing more than HA number of hosts to the
create command. But the future was incomplete and this code was left dead.

This PR removes it all, may be once we have self-healing, this sort of  feature
addition becomes more easy.

Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
2019-07-22 14:54:42 +05:30
Xiubo Li
b387d126b7 modify: clean the command options
The 'force' will only useful when resizing, so make it only optional
together with the size option.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2019-07-05 12:51:02 +05:30
Xiubo Li
698dbaced0 blksize: add hw block size setting support
This will still need to depend the taregetcli's saveconfig support,
the rtslib PR is open-iscsi/rtslib-fb#150.

When creating the BV with the 'block-size <SIZE>' option:

In case all the ha nodes have supported the rtslib-fb#150:
1) if local node support the block-size, but if there is any of
   the remote nodes is not, it will fail with the cap not match error.
2) if local node does not support the block-size, no matter whether
   the remote nodes support it or not, it will always ignore the
   block-size option due to the exist bug.

In case if there is any of the ha nodes does not support rtslib-fb#150:
3) if local node support the block-size, it will always fails with the
   cap not match error.
4) if local mode does not support the block-size, no matter whether
   the remote nodes support it or not, it will ignore the block-size
   option due to the exist bug.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2019-07-05 12:51:02 +05:30
Prasanna Kumar Kalever
b8504dbbed logrotate: rename logrotate config file
Problem:
-------
Build was failing with:
[root@localhost x86_64]# rpmlint gluster-block-0.4-1.x86_64.rpm
gluster-block.x86_64: E: incoherent-logrotate-file /etc/logrotate.d/gluster-blockd
1 packages and 0 specfiles checked; 1 errors.

Solution:
--------
incoherent-logrotate-file ?

Solution:- The log file or directory name should be the same as the
package name in lower case.

Hence renaming the logrotate filename back to gluster-block

Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
2019-05-03 17:10:17 +05:30
Prasanna Kumar Kalever
f1b066aca4 docs: update
- reorganize README
- updated INSTALL guide
- updated man pages

Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Amar Tumballi <amarts@redhat.com>
2019-04-26 19:05:38 +05:30
Xiubo Li
1eb150753b Docs: update to the latest
Problem:
-------
There are many new feature or fixing has been added, but forgot to
update the docs.

Resolution:
---------
Update them to the upstream latest.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2019-04-25 14:21:17 +05:30
Xiubo Li
149255f9f4 logger: add CRIT loglevel support
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Tested-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2019-04-03 18:32:11 +05:30
Prasanna Kumar Kalever
69f567a06a doc: update documentation about 'no-remote-rpc' option
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2018-10-16 13:53:47 +05:30
Xiubo Li
126e3a5fe6 doc: man page update
Fixes: #129
Reviewed-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Signed-off-by: Xiubo Li <xiubli@redhat.com>
2018-10-12 14:32:51 +05:30
Bhumika Goyal
3a64fff50e Help/man page update
With the introduction of new option 'storage' for the create command,
the field 'size' is rendered optional when that 'storage' option is given.
Update the man page and help commands to reflect this change.

Signed-off-by: Bhumika Goyal <bgoyal@redhat.com>
Reviewed-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2018-08-13 12:49:06 +05:30
Prasanna Kumar Kalever
861751ffc4 doc: man page update
Fixes: #65
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2018-04-09 15:25:07 +05:30
Prasanna Kumar Kalever
258f30c6d7 cli: defend on minimum block size
From,
$ targetcli /backstores/user:glfs/block get attribute
ATTRIBUTE CONFIG GROUP
======================
hw_block_size=512 [ro]
----------------------

Hence making the min acceptable size to be 1 sector/block i.e. 512 bytes

This patch also, explicitly mention in docs about bytes as default size units.

Change-Id: Iec8797082d02cc9ad51fc17e11f2ba3073aaeda0
Fixes: #35
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2017-10-09 13:54:57 +00:00
Michael Adam
9d76a57dc9 docs: fix error in gluster-blockd manpage
Examples used --glfs-cache-count instead of --glfs-lru-count.

Change-Id: Ia45cb32d91ff4f4490a64ab014212c0e7aa9fb7c
Signed-off-by: Michael Adam <obnox@redhat.com>
2017-09-15 12:03:07 +00:00
Prasanna Kumar Kalever
d723907c8e gluster-block: support force delete option
$ gluster-block help
gluster-block (0.2.1)
usage:
  gluster-block <command> <volname[/blockname]> [<args>] [--json*]

commands:
[...]
  delete  <volname/blockname> [force]
        delete block device.
[...]

Change-Id: I64ac01ec148e2e1d4d0ba0d4c5560df9334d58f5
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2017-08-08 15:44:32 +05:30
Prasanna Kumar Kalever
94c79620db block: add support to prealloc = full | no option
currently we allocate sparse files for block backends in the gluster
volume, with 'prealloc = full' option introduced by this patch we should
be able to fully preallocate the backend block file.

Change-Id: Ibf32df5f978f732a3fd248693170463da6d08268
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2017-06-22 16:30:46 +05:30
Prasanna Kumar Kalever
40d1fffb98 docs: add manual for gluster-blockd
Change-Id: Ic8a7d584274f48dcef5ea2356cf317352a3d48ef
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2017-06-06 17:20:05 +00:00
Prasanna Kumar Kalever
551168c387 docs: update readme and man page
Change-Id: If5f63d7cb711d18739782ebd83495f223f9db0da
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2017-05-05 12:32:11 +00:00
Prasanna Kumar Kalever
1ed7bd1430 modify: add support for one way authentication
This patch introduce or rather implement modify command for
enabling authentication for block devices.

The schematics of authentication setting, looks like

$ gluster-block modify block-test/sample-block auth enable --json-pretty
{
  "SUCCESSFUL ON":[
    "192.168.0.105"
  ],
  "IQN":"iqn.2016-12.org.gluster-block:8917def2-e90d-4406-8c9c-6d06b6851bbe",
  "USERNAME":"8917def2-e90d-4406-8c9c-6d06b6851bbe",
  "PASSWORD":"a3e75362-a446-45af-98d0-a1ed7e10d7f0",
  "RESULT":"SUCCESS"
}

As an effect it brings changes in 'info' command response, note PASSWORD

$ gluster-block info block-test/sample-block --json-pretty
{
  "NAME":"sample-block",
  "VOLUME":"block-test",
  "GBID":"8917def2-e90d-4406-8c9c-6d06b6851bbe",
  "SIZE":1073741824,
  "HA":1,
  "PASSWORD":"a3e75362-a446-45af-98d0-a1ed7e10d7f0",
  "BLOCK CONFIG NODE(S)":[
    "192.168.0.105"
  ]
}

The schematics of auth disabling, looks like
$ gluster-block modify block-test/sample-block auth disable --json-pretty
{
  "SUCCESSFUL ON":[
    "192.168.0.105"
  ],
  "IQN":"iqn.2016-12.org.gluster-block:add99c38-3c14-42d7-bf23-7d02f388e1e7",
  "RESULT":"SUCCESS"
}

Change-Id: I06d095b50401c131ac89cc142497f21d2205164a
Fixes: #5
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2017-05-02 15:08:51 +05:30
Prasanna Kumar Kalever
7e29a1a249 gluster-block: support json response
This is how cli response looks like, on supplying '--json*' flag to cmd-args:

$ gluster-block create block-test/sample-block1 ha 1 localhost.localdomain 1GiB --json
                                (or)
$ gluster-block create block-test/sample-block2 ha 1 localhost.localdomain 1GiB --json-spaced
{ "IQN": "iqn.2016-12.org.gluster-block:681af106-85f1-4a02-a122-57c80903458c", \
  "PORTAL(S)": [ "localhost.localdomain:3260" ], "RESULT": "SUCCESS" }

$ gluster-block create block-test/sample-block3 ha 1 localhost.localdomain 1GiB --json-plain
{"IQN":"iqn.2016-12.org.gluster-block:0fdf6647-57f2-477f-8dd4-54a3de06e410",\
  "PORTAL(S)":["localhost.localdomain:3260"],"RESULT":"SUCCESS"}

$ gluster-block create block-test/sample-block4 ha 1 localhost.localdomain 1GiB --json-pretty
{
  "IQN":"iqn.2016-12.org.gluster-block:e92ca4a0-5325-4c4b-a407-9e75790e4c7f",
  "PORTAL(S)":[
    "localhost.localdomain:3260"
  ],
  "RESULT":"SUCCESS"
}

Change-Id: Ie51039e3dee0b3357d2347b4087e0fbe299aa29e
Fixes: #3
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2017-04-28 11:43:02 +05:30
Prasanna Kumar Kalever
23c424c01b docs: add man page for gluster-block cli
Change-Id: Iff9d693ce4478582ddbbbe487b00d71f456929f8
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2017-02-27 04:03:12 -05:00