Whamcloud - gitweb
LU-11743 utils: allow lctl pool commands on separate MGS 04/35804/5
authorAndreas Dilger <adilger@whamcloud.com>
Wed, 12 Dec 2018 08:49:00 +0000 (16:49 +0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 4 Oct 2019 20:30:13 +0000 (20:30 +0000)
commitef1a94ee7fd859ea5c3af6b3028df78e6acea8c7
treee715b6ef023bbc5d40ac9bbdda3654ca09684508
parenta0680feff23c063cd666a3c912b8f855e64efc7e
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.

Lustre-change: https://review.whamcloud.com/34110
Lustre-commit: 4a003a1f554602265630637080f65d9b4474f822

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-by: Li Xi <lixi@ddn.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/35804
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/ost-pools.sh
lustre/tests/test-framework.sh
lustre/utils/obd.c