Error: No XRD_ROLES variable declared in "/etc/sysconf/eos_env"

We install new EOS storage system with 2 mgm and 7 fst. We run the eos-deploy.v7 (http://alien.web.cern.ch/sites/alien.web.cern.ch/files/eos-deploy.v7) script in mgm server. After running the script, eosd is ok but eos is fail. I try to start the eos service manually in mgm, it gives error message i.e.

[root@eos-mgm eos-citrine]# systemctl status eos
● eos.service - EOS All Services
Loaded: loaded (/usr/lib/systemd/system/eos.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2018-09-06 22:48:31 IST; 10h ago
Process: 21859 ExecStartPre=/bin/sh -c /usr/sbin/eos_start_pre.sh eos-all (code=exited, status=1/FAILURE)

Sep 06 22:48:31 eos-mgm systemd[1]: Starting EOS All Services…
Sep 06 22:48:31 eos-mgm sh[21859]: /usr/sbin/eos_start_pre.sh: line 25: /etc/sysconfig/eos_env: No such file or directory
Sep 06 22:48:31 eos-mgm sh[21859]: Error: No XRD_ROLES variable declared in “/etc/sysconf/eos_env”
Sep 06 22:48:31 eos-mgm systemd[1]: eos.service: control process exited, code=exited status=1
Sep 06 22:48:31 eos-mgm systemd[1]: Failed to start EOS All Services.
Sep 06 22:48:31 eos-mgm systemd[1]: Unit eos.service entered failed state.
Sep 06 22:48:31 eos-mgm systemd[1]: eos.service failed.

I also run eos_start_pre.sh manually, but it’s give error i.e. /etc/sysconfig/eos_env: No such file or directory

[root@eos-mgm eos-citrine]# /usr/sbin/eos_start_pre.sh
/usr/sbin/eos_start_pre.sh: line 25: /etc/sysconfig/eos_env: No such file or directory
[root@eos-mgm eos-citrine]#

OS flavor of Server - CERN CentOS7.5 (64Bits).

Please help .

Hi @prasun,

I don’t know the deploy script you are using, but maybe there is a /etc/sysconf/eos_env.example file that you can copy and edit for your use.
XRD_ROLES variable should be "mq sync mgm" for the MGM nodes and "fst" for the fst nodes.

Thank Franck. I copy the eoa_env.example to eos.mgm, eos.fst and eos_env. Then, change the parameter as per XRD_ROLES and mgm requirement. Now, it’s run sucessfully. eos-deploy.v7 script is not helpful.