Whamcloud - gitweb
LU-14928 mgs: allow md target re-register
authorAlexander Zarochentsev <alexander.zarochentsev@hpe.com>
Sun, 30 May 2021 13:43:05 +0000 (16:43 +0300)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 7 Dec 2023 11:11:51 +0000 (11:11 +0000)
commit0fb850d17fb1aae393f8548a9b1a39a0c55a9c80
tree24abfea1c9d36b19b52085f2cef27f02cf30e1b5
parente1fc8896d037b836535ee42ad4f7d7333243bb44
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.

Lustre-change: https://review.whamcloud.com/44594
Lustre-commit: e4f3f47f04c762770bc36c1e3fa7e92e94a36704

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