This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
tsm:tsm_client_linux_systemctl [2021/01/01 21:25] 127.0.0.1 external edit |
tsm:tsm_client_linux_systemctl [2021/08/17 15:18] (current) manu |
||
---|---|---|---|
Line 35: | Line 35: | ||
1)There was a secondary failure where dsmcad could not open the dsmerror.log. As such the following "Environment" is added under the {Service] section of the Unit file: | 1)There was a secondary failure where dsmcad could not open the dsmerror.log. As such the following "Environment" is added under the {Service] section of the Unit file: | ||
- | Environment="DSM_LOG=/opt/tivoli/tsm/client/ba/bin" | + | Environment="DSM_LOG=/opt/tivoli/tsm/client/ba/bin" |
2) (optional if DP for VMware is in use) Per the "Data Protection for VMware Installation Guide" manual ("Appendix A. Advanced configuration tasks"), it is our documented requirement/behavior: | 2) (optional if DP for VMware is in use) Per the "Data Protection for VMware Installation Guide" manual ("Appendix A. Advanced configuration tasks"), it is our documented requirement/behavior: | ||
Line 41: | Line 41: | ||
With SUSE 12 SP1 it was found that this needed to be added to the environment in the Unit file "Service" section. | With SUSE 12 SP1 it was found that this needed to be added to the environment in the Unit file "Service" section. | ||
- | LD_LIBRARY_PATH=/opt/tivoli/tsm/client/ba/bin | + | LD_LIBRARY_PATH=/opt/tivoli/tsm/client/ba/bin |
3) These two environment settings need to be on a single line else this has been seen to fail. | 3) These two environment settings need to be on a single line else this has been seen to fail. | ||
+ | **Example for a scheduler** | ||
+ | <cli prompt='#'> | ||
+ | [root@datamover]/etc/systemd/system # cat /etc/systemd/system/dsmsched_datamover.service | ||
+ | [Unit] | ||
+ | Description="Spectrum Protect Scheduler VM (dsmc sched)" | ||
+ | After=local-fs.target network-online.target | ||
+ | |||
+ | [Service] | ||
+ | Type=simple | ||
+ | GuessMainPID=no | ||
+ | Environment="DSM_LOG=/opt/tivoli/tsm/client/ba/bin" | ||
+ | Environment="JAVA_HOME=/opt/tivoli/tsm/tdpvmware/common/jre/jre" | ||
+ | Environment="LD_LIBRARY_PATH=/opt/tivoli/tsm/client/ba/bin:/opt/tivoli/tsm/tdpvmware/common/jre/jre/bin/classic" | ||
+ | Environment="PATH=/opt/tivoli/tsm/tdpvmware/common/jre/jre/bin:/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin" | ||
+ | Environment="LANG=en_US" | ||
+ | Environment="LC_ALL=en_US" | ||
+ | ExecStart=/opt/tivoli/tsm/client/ba/bin/dsmc sched -optfile=/opt/tivoli/tsm/client/ba/bin/dsm_datamover.opt | ||
+ | Restart=on-failure | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=multi-user.target | ||
+ | </cli> |