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

b=16551

i=Adilger
correct remote_[mds|ost] fn to work correctly on configuration with
several MDS/OSS nodes
parent 23628cd3
No related branches found
No related tags found
No related merge requests found
......@@ -1793,10 +1793,18 @@ osc_to_ost()
echo $ost
}
remote_node () {
local node=$1
[ "$node" != "$(hostname)" ]
}
remote_mds ()
{
local var=${SINGLEMDS}_HOST
[ "${!var}" != "$(hostname)" ]
local node
for node in $(mdts_nodes); do
remote_node $node && return 0
done
return 1
}
remote_mds_nodsh()
......@@ -1806,7 +1814,11 @@ remote_mds_nodsh()
remote_ost ()
{
[ "$ost_HOST" != "$(hostname)" ]
local node
for node in $(osts_nodes) ; do
remote_node $node && return 0
done
return 1
}
remote_ost_nodsh()
......
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