Whamcloud - gitweb
LU-11743 utils: allow lctl pool commands on separate MGS 10/34110/12
authorAndreas Dilger <adilger@whamcloud.com>
Wed, 12 Dec 2018 08:49:00 +0000 (16:49 +0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 15 Aug 2019 07:51:31 +0000 (07:51 +0000)
commit4a003a1f554602265630637080f65d9b4474f822
tree02edd20003bb0c3843b1879e6febb81c942f26a4
parent384cd84489c9a7aa3145560002eb7a053cf4b2db
LU-11743 utils: allow lctl pool commands on separate MGS

The current lctl code checks for the presence of configured pools on
the client and MDS via /proc or /sys files.  However, the MGS does
not parse the client/MDS configuration logs, so it does not create
the various files for the pools, which causes the pool commands to
fail verification.

Change lctl pool_new, pool_add, pool_remove and pool_destroy commands
to parse the configuration log directly when run on a standalone MGS
node.  This also allows the pool commands to be run when only the MGS
is started.

Test-Parameters: standalonemgs=true testlist=ost-pools.sh
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Signed-off-by: Emoly Liu <emoly@whamcloud.com>
Change-Id: Ib6fdb367c919f7b726fbf551dcfa6015593ebbe5
Reviewed-on: https://review.whamcloud.com/34110
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Li Xi <lixi@ddn.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/ost-pools.sh
lustre/tests/test-framework.sh
lustre/utils/obd.c