Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
eos
eos-docker
Commits
64491d70
Commit
64491d70
authored
Oct 22, 2019
by
Elvin Sindrilaru
Browse files
Add sleep after starting the FST daemon and before registering it with the MGM
parent
c4d4fda7
Changes
1
Hide whitespace changes
Inline
Side-by-side
image_scripts/eos_fst_setup.sh
View file @
64491d70
...
...
@@ -35,7 +35,7 @@ while getopts 'u:d:s:c:g:' flag; do
c
)
CONFIG
=
"
${
OPTARG
}
"
;;
g
)
GEOTAG
=
"
${
OPTARG
}
"
;;
*
)
usage
exit
1
;;
exit
1
;;
esac
done
...
...
@@ -45,7 +45,7 @@ done
source
/etc/sysconfig/eos
export
EOS_MGM_URL
=
root://eos-mgm1.eoscluster.cern.ch//
if
[
-e
/opt/eos/xrootd/bin/xrootd
]
;
then
if
[
-e
/opt/eos/xrootd/bin/xrootd
]
;
then
XROOTDEXE
=
"/opt/eos/xrootd//bin/xrootd"
else
XROOTDEXE
=
"/usr/bin/xrootd"
...
...
@@ -54,12 +54,13 @@ fi
echo
"Starting fst
${
id
}
..."
${
XROOTDEXE
}
-n
fst
${
id
}
-c
/etc/xrd.cf.fst
-l
/var/log/eos/xrdlog.fst
-b
-Rdaemon
echo
"Configuring fst
${
id
}
..."
echo
"Configuration start for fst
${
id
}
..."
mkdir
-p
$DATADIR
echo
"
$UUID
"
>
$DATADIR
/.eosfsuuid
echo
"
${
id
}
"
>
$DATADIR
/.eosfsid
chown
-R
daemon:daemon
$DATADIR
# Give some time to the FST to start and then register with the MGM
sleep
1
eos
-b
fs add
-m
${
id
}
$UUID
$FSTHOSTNAME
:1095
$DATADIR
$SPACE
$CONFIG
eos
-b
node
set
$FSTHOSTNAME
:1095 on
echo
"Configuration done for fst
${
id
}
"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment