Whamcloud - gitweb
LU-10384 mgs: replace_nids large string and failover support 96/34296/2
authorArtem Blagodarenko <artem.blagodarenko@seagate.com>
Mon, 18 Dec 2017 17:09:15 +0000 (20:09 +0300)
committerOleg Drokin <green@whamcloud.com>
Tue, 19 Mar 2019 06:00:25 +0000 (06:00 +0000)
commit97654820f8a60b1752b92b79cd6bc254a4e48958
treeabd39ff9555ab795243365c4f82502f3f732a497
parent6ceb90a2461e2724121a6c26434e11bcb31c9f43
LU-10384 mgs: replace_nids large string and failover support

Replace_nids uses nids list as new UUID. UUID string
length is limited by 38 symbols. So new nids list need
to be less then 38 symbols.

With this patch first nid in list string representation
is used for UUID as this done for failover nids.

Replace nids finds records for given device and regenerates
lines that contain old nids. add_uuid and add_conn lines for
failover used to be deleted during replace_nids which breaks
failover configuration.

This patch adds failover support to replace_nids command.
For example:

lctl replace_nids lustre-MDT0000 nid1,nid2:nid3,nid4:nid5,nid6

nid3,nid4 - nids from first failover node
nid5,nid6 - nids from second failover node

Lustre-change: https://review.whamcloud.com/30624
Lustre-commit: 09da1564d3794ca7b82e1c1791da253bee6178d4

Signed-off-by: Artem Blagodarenko <c17828@cray.com>
Cray-bug-id: MRP-4505
Change-Id: I4e9a35e8fa8781909ecbaa74785700f4ca04cf92
Reviewed-by: Vladimir Saveliev <c17830@cray.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Signed-off-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/34296
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
lustre/doc/lctl.8
lustre/mgs/mgs_llog.c
lustre/tests/conf-sanity.sh
lustre/utils/lctl.c