From 6fbe6ea2233f947a40257749fe85a18ffa0eed6c Mon Sep 17 00:00:00 2001 From: Prasanna Kumar Kalever Date: Tue, 6 Jun 2017 18:23:02 +0530 Subject: docs: update ReadMe with gluster-blockd options Change-Id: I7c78ab124705d77c8dc5edbf7ca7829dbf0f07b2 Signed-off-by: Prasanna Kumar Kalever --- README.md | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9ced6c6..ad0b6ae 100644 --- a/README.md +++ b/README.md @@ -62,11 +62,38 @@ managing the command ring buffers ------ **Prerequisites:** *this guide assume we already have* - [x] *A gluster volume with name 'block-test'* -- [x] *In all nodes gluster-blockd.service is running* - [x] *Open 24007(for glusterd) 24006(gluster-blockd) 3260(iscsi targets) 111(rpcbind) ports and glusterfs service in your firewall* +Daemon: run gluster-blockd on all the nodes ```script -# gluster-block (0.2) +# gluster-blockd --help +gluster-blockd (0.2) +usage: + gluster-blockd [--glfs-lru-count ] [--log-level ] + +commands: + --glfs-lru-count + glfs objects cache capacity [max: 512] [default: 5] + --log-level + Logging severity. Valid options are, + TRACE, DEBUG, INFO, WARNING, ERROR and NONE [default: INFO] + --help + show this message and exit. + --version + show version info and exit. +``` + +You can run gluster-blockd as systemd service, note '/etc/sysconfig/gluster-blockd' is the configuration file where you can choose to edit various options, while systemd will take care of parsing them all and supply to daemon. +
+# cat /etc/sysconfig/gluster-blockd
+# systemctl daemon-reload
+# systemctl restart gluster-blockd
+
+ +CLI: you can choose to run gluster-block(cli) from any node which has gluster-blockd running +```script +# gluster-block --help +gluster-block (0.2) usage: gluster-block [] [--json*] -- cgit