Previous topic

Debian/Ubuntu installation

Next topic

EOS admin configuration

This Page

EOS client configuration

You need to setup two variables in your environment to direct the eos CLI to connect to a given EOS instance.

export EOS_MGM_URL="root://<mgm hostname>"
export EOS_HOME="<home dir in eos space>"

For example for MGM at eosfoo.ch and home directory in EOS for user bar /eos/foo/users/b/bar/

export EOS_MGM_URL="root://eosfoo.ch"
export EOS_HOME="/eos/foo/users/b/bar/"

and now we can invoce the CLI

me@myhost.ch ~ $ eos
# ---------------------------------------------------------------------------
# EOS  Copyright (C) 2018 CERN/Switzerland
# This program comes with ABSOLUTELY NO WARRANTY; for details type `license'.
# This is free software, and you are welcome to redistribute it
# under certain conditions; type `license' for details.
# ---------------------------------------------------------------------------
EOS_INSTANCE=eosfoo.ch
EOS_SERVER_VERSION=4.2.18 EOS_SERVER_RELEASE=1
EOS_CLIENT_VERSION=4.2.18 EOS_CLIENT_RELEASE=3
EOS Console [root://eosfoo.ch] |/> cd
EOS Console [root://eosfoo.ch] |/eos/foo/users/b/bar/>

And now you are ready to use any command in EOS. E.G. find all files under the /eos/foo/users/b/bar/ directory

EOS Console [root://eosfoo.ch] |/> find -f /eos/foo/users/b/bar/
/eos/foo/users/b/bar/test.txt

You can also mount EOS using FUSE mount from eosfoo.ch. First you need to install the eos-fuse RPM and edit /etc/sysconfig/eos[_env] on your client machine

Note

To install eos-fuse follow instruction at RPM installation

root@lx001.saske.sk ~ $ cat /etc/sysconfig/eos
# ------------------------------------------------------------------
# FUSE Configuration
# ------------------------------------------------------------------
# The mount directory for 'eosd'
export EOS_FUSE_MOUNTDIR=/eos/
# The MGM host from where to do the inital mount
export EOS_FUSE_MGM_ALIAS=eosfoo.ch

You can start the mount as the eosd service

# in sl5 and sl6
service eosd start
# in CentOS 7 or in fedora 18 and above
systemclt start eosd