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

36 Commits

Author SHA1 Message Date
Prasanna Kumar Kalever
ca7a44ff67 doc: update about maintenance only status
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2021-07-05 12:06:51 +05:30
Prasanna Kumar Kalever
e680065553 README: add how to use vagrant environment documentation
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2020-03-27 12:58:20 +05:30
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
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
fff3fb266b NEWS: update
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Reviewed-by: Amar Tumballi <amarts@redhat.com>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
2019-05-03 17:10:25 +05:30
Prasanna Kumar Kalever
e625aa6cad doc: update README
- add glusterfs-server to the install list
- add MAINTAINER FILE details to the ReadME
- add community contact details to README
- defend multipath.conf based on tcmu-runner version
- add initiator side commands for resize block

Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Reviewed-by: Amar Tumballi <amarts@redhat.com>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
2019-05-02 18:23:54 +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
Prasanna Kumar Kalever
48a7048463 readme: add libtirpc-devel rpcgen as perrequesites
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Reviewed-by: Amar Tumballi <amarts@redhat.com>
2019-04-16 11:26:47 +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
e9faa8ec58 create: turn 'prealloc full' by default
As of now prealloc is off by default.
This patch change the default prealloc to full.

Fixes: #149
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Reviewed-by: Amar Tumballi <amarts@redhat.com>
2019-04-02 09:43:18 +05:30
Prasanna Kumar Kalever
08be8c95f4 README: add a simple demo
Simple 2 node setup demo:

* on server node:
  - runs glusterd (glusterfs-server) and gluster-blockd daemon
  - where we create a block hosting volume and then create a block volume on it

* on client node:
  - runs iscsid daemon
  - where we login to previously created block volume and perform some IO

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-02 09:33:02 +05:30
Xiubo Li
cd602b5749 README: update the multipath.conf detail for load-balance support
Reviewed-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Signed-off-by: Xiubo Li <xiubli@redhat.com>
2018-11-02 12:12:06 +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
ac199e6445 README: update the doc for helper
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
7c2d73893b Edit README
Using cat and ctrl^C leads to confusion, so replace the cat command
with an instruction to add configuration in /etc/multipath.conf and
remove ctrl^C.

Signed-off-by: Bhumika Goyal <bgoyal@redhat.com>
Reviewed-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Reviewed-by: Pranith Kumar K <pkarampu@redhat.com>
2018-08-13 14:54:25 +05:30
sankarshan
dd90341970 minor changes to README
minor updates to the file with a few fixes and rephrasing
2018-08-13 11:53:55 +05:30
Prasanna Kumar Kalever
66b4672a8c doc: update README about starting Open-iSCSI service
Change-Id: Ifc02424dd5009be8303d75fabc0292fa68b27dc7
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2018-03-05 14:50:52 +05:30
Prasanna Kumar Kalever
91d9da62ce rpc: use port 24010 for all gluster-blockd management
It looks like 24006 port is already registered by some other service,
and from [1] it looks like 24007 - 24241 are unassigned.

Currently,
24007 -> glusterd (tcp)
24008 -> glusterd (rdma)
24009 -> glustereventsd

so for gluster-blockd communications lets choose port 24010

[1] https://goo.gl/B2A4RU

Change-Id: I7d9f14b9897e479cececd2271ebf8a975d26ef71
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2017-08-24 12:13:39 +05:30
Prasanna Kumar Kalever
a9d9be9774 README: update initiator dependency list
added 'device-mapper-multipath' package in the initiator install dependency list,
which provides 'mpathconf'

Change-Id: I8ff5ed1e10cb3cac93511afa2eec51c9401bd32f
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2017-06-22 11:10:20 +00:00
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
f632a4b124 info: show size in human readable format
Also s/BLOCK CONFIG NODE(S)/EXPORTED NODE(S)/ in the info output

$ gluster-block info sample/block
NAME: block
VOLUME: sample
GBID: 6bd70984-be2c-43ac-9e9d-bad04010e42f
SIZE: 1.0 GiB
HA: 1
PASSWORD:
EXPORTED NODE(S): 192.168.0.105

Change-Id: I473b854b939c96b99be8e0b172ac6957b8bc6006
Fixes: #23
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
2017-06-13 06:28:42 +00:00
Prasanna Kumar Kalever
6fbe6ea223 docs: update ReadMe with gluster-blockd options
Change-Id: I7c78ab124705d77c8dc5edbf7ca7829dbf0f07b2
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2017-06-06 18:23:02 +05:30
Michael Adam
8169bb6a4f README: refer to upstream documentation instead of downstream...
Change-Id: I8c8cf5f179d0cacb2dc9ffbdc6ed6c5bbcc04abb
Signed-off-by: Michael Adam <obnox@redhat.com>
2017-06-06 14:06:17 +05:30
Michael Adam
da37b3c619 README: reformat and rearrange the start of the example section slightly
Change-Id: Ib3e865c171558a1aa81223b7d63c362159cbb53c
Signed-off-by: Michael Adam <obnox@redhat.com>
2017-06-06 14:06:03 +05:30
Michael Adam
dbf928747a README: remove extra ==== characters.
Change-Id: I3641174aaff35406cd74eb088267d76091eb0b03
Signed-off-by: Michael Adam <obnox@redhat.com>
2017-06-06 14:05:50 +05:30
Prasanna Kumar Kalever
bb8f0e3273 README: add recommended multipath configuration
Change-Id: Ia571462b4d94b3cb3855aa699c1b4303283134ef
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2017-05-20 09:47:17 +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
2445dd3403 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>
2017-02-27 18:22:40 +05:30
Prasanna Kumar Kalever
9f1c8a5ba4 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 <command> <volname[/blockname]> [<args>]

commands:
  create  <volname/blockname> [ha <count>] <host1[,host2,...]> <size>
        create block device.

  list    <volname>
        list available block devices.

  info    <volname/blockname>
        details about block device.

  delete  <volname/blockname>
        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 <prasanna.kalever@redhat.com>
2017-02-24 14:58:50 +05:30
Nigel Babu
b160d10dbf Fix line space in readme
Change-Id: I3680cc30356d843a48fd9bc41a104acab2ac2d76
Signed-off-by: Nigel Babu <nigelb@redhat.com>
2017-02-21 08:06:26 +05:30
Prasanna Kumar Kalever
245ee93f27 gluster-block: refactor return values
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2017-02-19 14:40:51 +05:30
Prasanna Kumar Kalever
eb77f631c6 docs: Update README.md
cli changes updated.
2017-02-17 13:31:19 +05:30
Prasanna Kumar Kalever
bcea2a6f26 Add README doc 2016-12-26 18:34:06 +05:30