Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
eos-docker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eos
eos-docker
Commits
52e6634c
Commit
52e6634c
authored
6 years ago
by
Mihai Patrascoiu
Browse files
Options
Downloads
Patches
Plain Diff
Allow passing filesystem parameters in eos_fst_setup script
parent
cb7dccfb
No related branches found
No related tags found
No related merge requests found
Pipeline
#531121
skipped
Stage: build
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
image_scripts/eos_fst_setup.sh
+24
-3
24 additions, 3 deletions
image_scripts/eos_fst_setup.sh
scripts/start_services.sh
+2
-2
2 additions, 2 deletions
scripts/start_services.sh
with
26 additions
and
5 deletions
image_scripts/eos_fst_setup.sh
+
24
−
3
View file @
52e6634c
#!/usr/bin/env bash
#!/usr/bin/env bash
if
[[
$#
-eq
0
]]
;
then
echo
"Usage:
$0
<id> [-u <uuid>] [-d <mountpoint>] [-s <space>] [-c <configstatus>]"
exit
1
fi
id
=
$1
id
=
$1
shift
UUID
=
fst
${
id
}
DATADIR
=
/home/data/eos
${
id
}
SPACE
=
default
CONFIG
=
rw
while
getopts
'u:d:s:c:'
flag
;
do
case
"
${
flag
}
"
in
u
)
UUID
=
"
${
OPTARG
}
"
;;
d
)
DATADIR
=
"
${
OPTARG
}
"
;;
s
)
SPACE
=
"
${
OPTARG
}
"
;;
c
)
CONFIG
=
"
${
OPTARG
}
"
;;
*
)
echo
"Unexpected option
${
flag
}
"
;;
esac
done
FSTHOSTNAME
=
$(
hostname
-f
)
FSTHOSTNAME
=
$(
hostname
-f
)
source
/etc/sysconfig/eos
source
/etc/sysconfig/eos
export
EOS_MGM_URL
=
root://eos-mgm-test.eoscluster.cern.ch//
export
EOS_MGM_URL
=
root://eos-mgm-test.eoscluster.cern.ch//
...
@@ -8,12 +30,11 @@ export EOS_MGM_URL=root://eos-mgm-test.eoscluster.cern.ch//
...
@@ -8,12 +30,11 @@ export EOS_MGM_URL=root://eos-mgm-test.eoscluster.cern.ch//
echo
"Starting fst
${
id
}
..."
echo
"Starting fst
${
id
}
..."
/usr/bin/xrootd
-n
fst
${
id
}
-c
/etc/xrd.cf.fst
-l
/var/log/eos/xrdlog.fst
-b
-Rdaemon
/usr/bin/xrootd
-n
fst
${
id
}
-c
/etc/xrd.cf.fst
-l
/var/log/eos/xrdlog.fst
-b
-Rdaemon
echo
"Configuring fst
${
id
}
..."
echo
"Configuring fst
${
id
}
..."
UUID
=
fst
${
id
}
DATADIR
=
/home/data/eos
${
id
}
mkdir
-p
$DATADIR
mkdir
-p
$DATADIR
echo
"
$UUID
"
>
$DATADIR
/.eosfsuuid
echo
"
$UUID
"
>
$DATADIR
/.eosfsuuid
echo
"
${
id
}
"
>
$DATADIR
/.eosfsid
echo
"
${
id
}
"
>
$DATADIR
/.eosfsid
chown
-R
daemon:daemon
$DATADIR
chown
-R
daemon:daemon
$DATADIR
eos
-b
fs add
-m
${
id
}
$UUID
$FSTHOSTNAME
:1095
$DATADIR
default rw
eos
-b
fs add
-m
${
id
}
$UUID
$FSTHOSTNAME
:1095
$DATADIR
$SPACE
$CONFIG
eos
-b
node
set
$FSTHOSTNAME
:1095 on
eos
-b
node
set
$FSTHOSTNAME
:1095 on
echo
"Configuration done for fst
${
id
}
"
echo
"Configuration done for fst
${
id
}
"
This diff is collapsed.
Click to expand it.
scripts/start_services.sh
+
2
−
2
View file @
52e6634c
...
@@ -66,7 +66,7 @@ for PID in ${PIDS}; do
...
@@ -66,7 +66,7 @@ for PID in ${PIDS}; do
done
done
if
[
"
${
FAILURE
}
"
==
"1"
]
;
then
if
[
"
${
FAILURE
}
"
==
"1"
]
;
then
echo
"Failed to start one of the
fst
s"
;
echo
"Failed to start one of the
FST
s"
;
exit
1
exit
1
fi
fi
...
@@ -84,7 +84,7 @@ for PID in ${PIDS}; do
...
@@ -84,7 +84,7 @@ for PID in ${PIDS}; do
done
done
if
[
"
${
FAILURE
}
"
==
"1"
]
;
then
if
[
"
${
FAILURE
}
"
==
"1"
]
;
then
echo
"Failed to configure one of the
fst
s"
echo
"Failed to configure one of the
FST
s"
exit
1
exit
1
fi
fi
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment