Skip to content
Snippets Groups Projects
Commit 6f4335d9 authored by Elena Gryaznova's avatar Elena Gryaznova
Browse files

b=17853

i=Adilger
check_config fix for NETTYPE=ptl
parent 754c8504
No related branches found
No related tags found
No related merge requests found
...@@ -1052,13 +1052,18 @@ init_versions_vars () { ...@@ -1052,13 +1052,18 @@ init_versions_vars () {
check_config () { check_config () {
local mntpt=$1 local mntpt=$1
local myMGS_host=$mgs_HOST
if [ "$NETTYPE" = "ptl" ]; then
myMGS_host=$(h2ptl $mgs_HOST | sed -e s/@ptl//)
fi
echo Checking config lustre mounted on $mntpt echo Checking config lustre mounted on $mntpt
local mgshost=$(mount | grep " $mntpt " | awk -F@ '{print $1}') local mgshost=$(mount | grep " $mntpt " | awk -F@ '{print $1}')
mgshost=$(echo $mgshost | awk -F: '{print $1}') mgshost=$(echo $mgshost | awk -F: '{print $1}')
if [ "$mgshost" != "$mgs_HOST" ]; then
if [ "$mgshost" != "$myMGS_host" ]; then
FAIL_ON_ERROR=true \ FAIL_ON_ERROR=true \
error "Bad config file: lustre is mounted with mgs $mgshost, but mgs_HOST=$mgs_HOST error "Bad config file: lustre is mounted with mgs $mgshost, but mgs_HOST=$mgs_HOST, NETTYPE=$NETTYPE
Please use correct config or set mds_HOST correctly!" Please use correct config or set mds_HOST correctly!"
fi fi
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment