From bb8f0e32734b4e430e9a0a490d7c35061f2fb072 Mon Sep 17 00:00:00 2001 From: Prasanna Kumar Kalever Date: Fri, 19 May 2017 14:21:40 +0530 Subject: README: add recommended multipath configuration Change-Id: Ia571462b4d94b3cb3855aa699c1b4303283134ef Signed-off-by: Prasanna Kumar Kalever --- README.md | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index d68d50b..12f5e95 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ managing the command ring buffers # git clone https://github.com/gluster/gluster-block.git # cd gluster-block/ # dnf install autoconf automake libtool libuuid-devel json-c-devel glusterfs-api-devel tcmu-runner targetcli (on fedora) -# make -j install +# ./autogen.sh && ./configure && make -j install ### Usage @@ -138,7 +138,27 @@ BLOCK CONFIG NODE(S): 192.168.1.11 192.168.1.12 192.168.1.13 # dnf install iscsi-initiator-utils # lsblk (note the available devices) -Make sure you have multipathd running and configured in Active/Passive mode +You can skip configuring multipath, if you choose not to enable mpath. +Below we set mapth in Active/Passive mode; Note currently Active/Active is not supported. +# modprobe dm_multipath +# mpathconf --enable +# cat >> /etc/multipath.conf +# LIO iSCSI +devices { + device { + vendor "LIO-ORG" + user_friendly_names "yes" # names like mpatha + path_grouping_policy "failover" # one path per group + path_selector "round-robin 0" + failback immediate + path_checker "tur" + prio "const" + no_path_retry 120 + rr_weight "uniform" + } +} +Ctrl^C +# systemctl restart multipathd Discovery ... # iscsiadm -m discovery -t st -p 192.168.1.11 -- cgit