Commit 55d30f6e authored by Steven Murray's avatar Steven Murray
Browse files

Removed the confusing diff output from the instructions to install EOS

parent 2f746d5d
......@@ -144,7 +144,7 @@ Here is an example list of succesfully installed EOS and \texttt{xrootd} rpms.
\subsection{Setup the EOS \texttt{sysconfig} file}
Create the \texttt{/etc/syconfig/eos} file based on the example installed by the
\texttt{eos-server} rpm:
.\texttt{eos-server} rpm:
\begin{verbatim}
sudo cp /etc/sysconfig/eos.example /etc/sysconfig/eos
\end{verbatim}
......@@ -153,69 +153,29 @@ Reduce the \texttt{xrootd} daemon roles to the bare minimum of just \texttt{mq},
\texttt{mgm} and \texttt{fst}. This means there will be a total of three
\texttt{xrootd} daemons running for EOS on the local development box.
\begin{verbatim}
sudo sed -i 's/^XRD_ROLES=.*/XRD_ROLES="mq mgm fst"/' eos
XRD_ROLES="mq mgm fst"
\end{verbatim}
Set the name of the EOS instance.
Set the name of the EOS instance, for example.
\begin{verbatim}
sudo sed -i 's/EOS_INSTANCE_NAME=.*/EOS_INSTANCE_NAME=eoscta/' /etc/sysconfig/eos
export EOS_INSTANCE_NAME=eoscta
\end{verbatim}
Replace all of the hostnames with the fully qualified hostname of the local
development box.
\begin{verbatim}
sudo sed -i 's/^XRD_ROLES=.*/XRD_ROLES="mq mgm fst"/' /etc/sysconfig/eos
sudo sed -i 's/localhost\|eos.*cern\.ch/devbox.cern.ch/' /etc/sysconfig/eos
\end{verbatim}
The differences between the example EOS \texttt{sysconfig} file and the newly
created one should look something like this.
\begin{verbatim}
diff /etc/sysconfig/eos.example /etc/sysconfig/eos
36c36
< XRD_ROLES="mq sync mgm fst fed global-mq"
---
> XRD_ROLES="mq mgm fst"
43c43
< export EOS_INSTANCE_NAME=eosdev
---
> export EOS_INSTANCE_NAME=eoscta
49c49
< export EOS_BROKER_URL=root://localhost:1097//eos/
---
> export EOS_BROKER_URL=root://devbox.cern.ch:1097//eos/
55c55
< export EOS_MGM_MASTER1=eosdevsrv1.cern.ch
---
> export EOS_MGM_MASTER1=devbox.cern.ch
58c58
< export EOS_MGM_MASTER2=eosdevsrv2.cern.ch
---
> export EOS_MGM_MASTER2=devbox.cern.ch
61c61
< export EOS_MGM_ALIAS=eosdev.cern.ch
---
> export EOS_MGM_ALIAS=devbox.cern.ch
87c87
< export EOS_FUSE_MGM_ALIAS=eosdev.cern.ch
---
> export EOS_FUSE_MGM_ALIAS=devbox.cern.ch
173c173
< export EOS_FED_MANAGER=eos.cern.ch:1094
---
> export EOS_FED_MANAGER=devbox.cern.ch:1094
198c198
< export EOS_TEST_REDIRECTOR=localhost
---
> export EOS_TEST_REDIRECTOR=devbox.cern.ch
213c213
< # export EOS_VST_BROKER_URL=root://eos.cern.ch:1099//eos/
---
> # export EOS_VST_BROKER_URL=root://devbox.cern.ch:1099//eos/
219c219
< # export EOS_VST_TRUSTED_HOST=eos.cern.ch
---
> # export EOS_VST_TRUSTED_HOST=devbox.cern.ch
development box. The resulting hostname entries should look something like
the following, where \texttt{devbox.cern.ch} should be replaced with the fully
qualified name of the development box where EOS is being installed.
\begin{verbatim}
export EOS_INSTANCE_NAME=eoscta
export EOS_BROKER_URL=root://devbox.cern.ch:1097//eos/
export EOS_MGM_MASTER1=devbox.cern.ch
export EOS_MGM_MASTER2=devbox.cern.ch
export EOS_MGM_ALIAS=devbox.cern.ch
export EOS_FUSE_MGM_ALIAS=devbox.cern.ch
export EOS_FED_MANAGER=devbox.cern.ch:1094
export EOS_TEST_REDIRECTOR=devbox.cern.ch
# export EOS_VST_BROKER_URL=root://devbox.cern.ch:1099//eos/
# export EOS_VST_TRUSTED_HOST=devbox.cern.ch
\end{verbatim}
\subsection{Create a simple shared secret \texttt{keytab} file}
......@@ -274,36 +234,14 @@ simple shared secret.
sudo sed -i 's/^# sec.protbind \*.*/sec.protbind only krb5 sss/'
\end{verbatim}
The differences between the orginal \texttt{xrd.cf.mgm} file and the newly
created one should look something like this.
\begin{verbatim}
diff /etc/xrd.cf.mgm_ORIGINAL /etc/xrd.cf.mgm
16c16
< sec.protocol unix
---
> #sec.protocol unix
21c21
< sec.protocol krb5 host/<host>@CERN.CH
---
> sec.protocol krb5 /etc/krb5.keytab.eos host/<host>@CERN.CH
26c26
< sec.protocol gsi -crl:0 -cert:/etc/grid-security/daemon/hostcert.pem
-key:/etc/grid-security/daemon/hostkey.pem -gridmap:/etc/grid-security/grid-mapfile
-d:0 -gmapopt:2 -vomsat:1 -moninfo:1
---
> #sec.protocol gsi -crl:0 -cert:/etc/grid-security/daemon/hostcert.pem
-key:/etc/grid-security/daemon/hostkey.pem -gridmap:/etc/grid-security/grid-mapfile
-d:0 -gmapopt:2 -vomsat:1 -moninfo:1
29,31c29
< sec.protbind localhost.localdomain unix sss
< sec.protbind localhost unix sss
< sec.protbind * only krb5 gsi sss unix
---
> sec.protbind * only krb5 sss
41c39
< mgmofs.broker root://localhost:1097//eos/
---
> mgmofs.broker root://devbox.cern.ch:1097//eos/
The protocol configuration lines in the newly created \texttt{xrd.cf.mgm} file
should look something like the following.
\begin{verbatim}
#sec.protocol unix
sec.protocol krb5 /etc/krb5.keytab.eos host/<host>@CERN.CH
#sec.protocol gsi -crl:0 -cert:/etc/grid-security/daemon/hostcert.pem -key:/etc/grid-security/daemon/hostkey.pem -gridmap:/etc/grid-security/gri
sec.protbind * only krb5 sss
mgmofs.broker root://devbox.cern.ch:1097//eos/
\end{verbatim}
\subsection{Setup the /etc/xrd.cf.fst configuration file}
......@@ -315,23 +253,13 @@ Backup the original \texttt{/etc/xrd.cf.fst} file installed by the
\end{verbatim}
Replace all of the hostnames with the fully qualified hostname of the local
development box.
\begin{verbatim}
sudo sed -i 's/localhost\|eos.*cern\.ch/devbox.cern.ch/' /etc/xrd.cf.fst
\end{verbatim}
The differences between the orginal \texttt{xrd.cd.fst} file and the newly
created one should look something like this:
development box. The hostname entries in the newly created \texttt{xrd.cd.fst}
file should look something like the following, where \texttt{devbox.cern.ch}
should be replaced with the fully qualified name of the development box where
EOS is being installed.
\begin{verbatim}
diff /etc/xrd.cf.fst_ORIGINAL /etc/xrd.cf.fst
18c18
< all.manager localhost 2131
---
> all.manager devbox.cern.ch 2131
27c27
< fstofs.broker root://localhost:1097//eos/
---
> fstofs.broker root://devbox.cern.ch:1097//eos/
all.manager devbox.cern.ch 2131
fstofs.broker root://devbox.cern.ch:1097//eos/
\end{verbatim}
\subsection{Set both the EOS \texttt{mgm} and the EOS \texttt{mq} to be masters}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment