How to install TSM BA Client on Ubuntu OS and run automatic dsmcad service during system startup


IBM doesn't provide the TSM BA client software package for the Ubuntu Operating System but we have the work around for it. If you want to install BA client on Ubuntu systems and schedule a backup follow the below steps. In this post I will share the steps to install TSM BAclient software and then steps to start automatic dsmcad service during system startup. It is recommended to first check it on a test machine and then go for production.

Procedure to install TSM BA client software on Ubuntu Systems

  • Since ubuntu is one of the Linux flavor, we have to download the suitable BA client software for Linux (32 bit or 64 bit). Download them and copy them into one folder.
  • Next, we have to install alien (rpm2deb converter tool) packages by running the below command. For this we need to have internet connection with firewall disabled. This tool is used to convert the Linux RPM packages to Ubuntu Debian package.
          apt-get install alien libstdc++5 ia32-libs

  • Now, we have to create the .deb install packages by converting .rpm to .deb packages. Use the --scripts to convert the inbuilt scripts into .deb package. Please double check the package names you have downloaded, they might have different names.
         alien -k --scripts gskcrypt64-8.0.14.14.linux.x86_64.rpm
         alien -k --scripts gskssl64-8.0.14.14.linux.x86_64.rpm
         alien -k --scripts TIVsm-API64.x86_64.rpm
         alien -k --scripts TIVsm-BA.x86_64.rpm
  • Now you can check by using ls -ltr comand if they are successfully converted to .deb   package.
Also Read: Installation & Configuration of IBM Spectrum Protect (TSM) Server
  • Now we have to finally install all the .deb packages. You can install the packages one by one or all together by using the below command.
          dpkg -i *.deb

         The above command will install all the .deb packages in that particular directory
  • Finally, we have to manually link the Libraries to the right places as shown below so that the TSM client can find them. These linking process is automatically done on the Linux systems. Here we have to do it manually.       
ln -s /opt/tivoli/tsm/client/api/bin64/libgpfs.so /lib/ 
ln -s /opt/tivoli/tsm/client/api/bin64/libdmapi.so /lib/ 
ln -s /usr/local/ibm/gsk8_64/lib64/libgsk8cms_64.so /lib/ 
ln -s /usr/local/ibm/gsk8_64/lib64/libgsk8ssl_64.so /lib/ 
ln -s /usr/local/ibm/gsk8_64/lib64/libgsk8sys_64.so /lib/ 
ln -s /usr/local/ibm/gsk8_64/lib64/libgsk8iccs_64.so /lib/
ln -s /opt/tivoli/tsm/client/lang/EN_US /opt/tivoli/tsm/client/ba/bin/
  • From this step you can use the same procedure as we use to configure the linux clients. Configure dsm.sys and dsm.opt files and you can start taking the backup.

How to make automatic dsmcad service startup during Ubuntu system starttup

Generally on linux machines, we use /etc/init.d/dsmcad script to enable automatic dsmcad service during system startup. But this script doesn't work in Ubuntu machines. The work around for this is shown below.

Also Read: Types of TSM BA Client Interfaces - Video Tutorials

1) First, create /etc/event.d/dsmcad or /etc/init/dsmcad.conf  with the following content:

$ vi dsmcad.conf 
     # dsmcad
    # This service starts the Tivoli Storage Manager "dsmcad"
    start on runlevel [2345]
    stop on runlevel [!2345]
    script
            export LANG=en_US
            export LC_MESSAGES=en_US
            export LC_CTYPE=de_DE
    exec /opt/tivoli/tsm/client/ba/bin/dsmcad  >/dev/null 2>&1
    end script
    # end of dsmcad

2) If you did not gave errorlogname parameter in dsm.sys file, dsmcad service will not run. make sure you update dsm.sys file with 
errorlogname=/opt/tivoli/tsm/client/ba/bin/dsmerror.log

3) Now You can start the dsmcad service with following command
    $ start dsmcad




What Others are Reading Now...

0 Comment to "How to install TSM BA Client on Ubuntu OS and run automatic dsmcad service during system startup"

Post a Comment