Whamcloud - gitweb
LU-7668 utils: add lctl del_ost
authorStephane Thiell <sthiell@stanford.edu>
Tue, 9 Feb 2021 06:47:31 +0000 (22:47 -0800)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 26 May 2023 10:25:49 +0000 (10:25 +0000)
commit7f7235d9991751ec77cc9d3e1191d65749dd6678
tree5ec643b86c307de63dfc8dc12d3e73ee3a865e79
parent8238c4e7fe0b9b2135f0932f93bbcd6a9be0d897
LU-7668 utils: add lctl del_ost

Add helper command:

   lctl del_ost [--dryrun] --target fsname-OSTxxxx

Permanently disable an OST by altering the client and MDT llog
catalogs on MGS. The command finds all catalog records related to the
specified OST and cancel them. A --dryrun option is provided so that
the system administrator can see which records would have been
cancelled, but without actually cancelling them.

Lustre-change: https://review.whamcloud.com/41449
Lustre-commit: 1121816c4a4e1bb2ef097c4a9802362181c43800

LU-7668 tests: skip conf-sanity test_33a for old MGS

Skip del_ost test for MGS versions that do not have this command.

Lustre-change: https://review.whamcloud.com/50221
Lustre-commit: ba5346b050fb395844252a706d4dba2ef0e0d8dc

Signed-off-by: Stephane Thiell <sthiell@stanford.edu>
Change-Id: I58c4f10fa0f7164a40231e807698eb224cccf062
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/50923
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/doc/Makefile.am
lustre/doc/lctl-del_ost.8 [new file with mode: 0644]
lustre/tests/conf-sanity.sh
lustre/utils/lctl.c
lustre/utils/obd.c
lustre/utils/obdctl.h