Whamcloud - gitweb
LU-14928 mgs: allow md target re-register 94/44594/5
authorAlexander Zarochentsev <alexander.zarochentsev@hpe.com>
Sun, 30 May 2021 13:43:05 +0000 (16:43 +0300)
committerOleg Drokin <green@whamcloud.com>
Wed, 25 Aug 2021 06:23:43 +0000 (06:23 +0000)
commite4f3f47f04c762770bc36c1e3fa7e92e94a36704
tree64543c903e5f7fd950d1bf9126f25fa5121d8544
parent80447caf980699fd1b0118e8f7c11e48aead04ce
LU-14928 mgs: allow md target re-register

In a DNE system, it is not safe to do writeconf of
a MD target and attempt to mount (and re-register) it again,
as it creates a weird MDT-MDT osp devices like
fsname-MDT0001-osp-MDT0001" and makes the system non-functioning.
The fix doesn't allow creation of illegal devices.

HPE-bug-id: LUS-10098
Signed-off-by: Alexander Zarochentsev <alexander.zarochentsev@hpe.com>
Change-Id: I698ee6d70ac96f54eaec57b5c5fe553d130ba011
Reviewed-on: https://review.whamcloud.com/44594
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alexander Boyko <alexander.boyko@hpe.com>
Reviewed-by: Artem Blagodarenko <artem.blagodarenko@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mgs/mgs_llog.c
lustre/tests/conf-sanity.sh