In the dcos environment, the default configuration file of the rexray service is /opt/mesosphere/etc/rexray.conf, and its service file is
/etc/systemd/system/dcos-rexray.service。
# vim /etc/systemd/system/dcos-rexray.service
[Unit]
Description=REX-Ray: A vendor agnostic storage orchestration engine
[Service]
StartLimitInterval=0
Restart=always
RestartSec=15
LimitNOFILE=16384
EnvironmentFile=/opt/mesosphere/environment
EnvironmentFile=/opt/mesosphere/etc/proxy.env
Environment=REXRAY_HOME=/
# REX-Ray fails to clean up stale lock files by itself.
ExecStartPre=/bin/rm -f /var/run/libstorage/lsx.lock
# Allow REX-Ray configuration to be changed during upgrade.
ExecStartPre=/bin/cp /opt/mesosphere/etc/rexray.conf /etc/rexray/config.yml
ExecStart=/opt/mesosphere/packages/rexray--da7f17f8a4b772c0bac3f8d289a08abd4ff272b4/bin/rexray start -f
According to the service file, its basic function is to copy /opt/mesosphere/etc/rexray.conf to the rexray configuration file /etc/rexray/config.yml, and then start the rexray service.
Start the rexray service:
# systemctl start dcos-rexray