[HOWTO] How To Install TSM Client 552 on Ubuntu 10.04/amd64

wkuballa

ADSM.ORG Member
Joined
Feb 4, 2009
Messages
5
Reaction score
4
Points
0
[FONT=Nimbus Roman No9 L, serif]My last post covered TSM 551 and Ubuntu 9.04. However, the new Ubuntu release required some modifications. Time for an update. Below instructions worked for me. I hope they also work for you.[/FONT]
[FONT=Nimbus Roman No9 L, serif]Please note: In the text below I used the vertical bar sign "|" to indicate the beginning of a line when referring to lines in a file.[/FONT]
[FONT=Nimbus Roman No9 L, serif]
[/FONT]

  1. [FONT=Nimbus Roman No9 L, serif]get the TSM RPMs
    [FONT=Nimbus Mono L, monospace]wget "ftp://ftp.software.ibm.com/storage/...LinuxX86/v552/5.5.2.0-TIV-TSMBAC-LinuxX86.tar"[/FONT]
    [/FONT]
  2. [FONT=Nimbus Roman No9 L, serif]install 'ksh' and “ia32-libs”
    [FONT=Nimbus Mono L, monospace]apt-get install ksh ia32-libs[/FONT]
    [/FONT]
  3. [FONT=Nimbus Roman No9 L, serif]install 'libstdc++5'
    This package is no longer maintained in 10.04 and must be imported from an older release. Note: the first 'dpkg' drops the libraries into the 64-bit directory; these must be moved to the 32-bit directory before the second 'dpkg' overwrites the libraries in the 64-bit directory.
    [FONT=Nimbus Mono L, monospace]wget http://mirrors.us.kernel.org/ubuntu/pool/universe/g/gcc-3.3/libstdc++5_3.3.6-17ubuntu1_i386.deb
    dpkg -i --force-architecture \ libstdc++5_3.3.6-17ubuntu1_i386.deb
    mv /usr/lib/libstdc++.so.5* /usr/lib32/
    wget http://mirrors.us.kernel.org/ubuntu/pool/universe/g/gcc-3.3/libstdc++5_3.3.6-17ubuntu1_amd64.deb
    dpkg -i libstdc++5_3.3.6-17ubuntu1_amd64.deb[/FONT]
    [/FONT]
  4. [FONT=Nimbus Roman No9 L, serif]unpack the archive
    [FONT=Nimbus Mono L, monospace]tar xvf 5.5.2.0-TIV-TSMBAC-LinuxX86.tar[/FONT]
    [/FONT]
  5. [FONT=Nimbus Roman No9 L, serif]unpack the RPM archives (ignore warnings re scripts)
    [FONT=Nimbus Mono L, monospace]alien -g TIVsm-API.i386.rpm
    alien -g TIVsm-BA.i386.rpm[/FONT]
    [/FONT]
  6. [FONT=Nimbus Roman No9 L, serif]change directory names
    [FONT=Nimbus Mono L, monospace]mv TIVsm-API-5.5.2/debian TIVsm-API-5.5.2/DEBIAN
    mv TIVsm-BA-5.5.2/debian TIVsm-BA-5.5.2/DEBIAN[/FONT]
    [/FONT]
  7. [FONT=Nimbus Roman No9 L, serif]edit the control files
    [FONT=Nimbus Mono L, monospace]vim TIVsm-API-5.5.2/DEBIAN/control[/FONT]
    -- remove blank line after "Maintainer:" line
    -- in "Architecture:" line change "i386" to "amd64"
    -- delete "${shlibs:Depends}" in "Depends:" line
    -- joing two "Description:" lines into one line
    -- insert line "Version: 5.5.2"
    -- delete last two lines " ." and " (Converted..."
    -- append an empty line as last line
    [FONT=Nimbus Mono L, monospace]|Source: tivsm-api
    |Section: alien
    |Priority: extra
    |Maintainer: who are you
    |Package: tivsm-api
    |Architecture: amd64
    |Depends:
    |Description: the API IBM Tivoli Storage Manager API
    |Version: 5.5.2
    |[/FONT]
    -- save and exit

    [FONT=Nimbus Mono L, monospace]vim TIVsm-BA-5.5.2/DEBIAN/control[/FONT]
    -- remove blank line after "Maintainer:" line
    -- in "Architecture:" line change "i386" to "amd64"
    -- delete "${shlibs:Depends}" in "Depends:" line
    -- joing two "Description:" lines into one line
    -- insert line "Version: 5.5.2"
    -- delete last two lines " ." and " (Converted..."
    -- append an empty line as last line
    [FONT=Nimbus Mono L, monospace]|Source: tivsm-ba
    |Section: alien
    |Priority: extra
    |Maintainer: who are you
    |Package: tivsm-ba
    |Architecture: amd64
    |Depends:
    |Description: the Backup Archive Client IBM TSM Client
    |Version: 5.5.2
    |[/FONT]
    -- save and exit
    [/FONT]
  8. [FONT=Nimbus Roman No9 L, serif]create *.deb packages
    [FONT=Nimbus Mono L, monospace]dpkg -b TIVsm-API-5.5.2
    dpkg -b TIVsm-BA-5.5.2[/FONT]
    [/FONT]
  9. [FONT=Nimbus Roman No9 L, serif]create /etc/ld.so.conf.d/tsm-api.conf with this one line:
    [FONT=Nimbus Mono L, monospace]/opt/tivoli/tsm/client/api/bin[/FONT]
    [/FONT]
  10. [FONT=Nimbus Mono L, monospace]ldconfig[/FONT]
  11. [FONT=Nimbus Roman No9 L, serif]install *.deb packages
    [FONT=Nimbus Mono L, monospace]dpkg -i TIVsm-API-5.5.2.deb
    dpkg -i TIVsm-BA-5.5.2.deb[/FONT]
    [/FONT]
  12. [FONT=Nimbus Roman No9 L, serif]create/modify TSM configuration files
    [FONT=Nimbus Mono L, monospace]vim /opt/tivoli/tsm/client/ba/bin/dsm.opt
    | ServerName TSMServer
    | Domain ALL-LOCAL
    | DateFormat 3[/FONT]
    -- save and exit

    [FONT=Nimbus Mono L, monospace]vim /opt/tivoli/tsm/client/ba/bin/dsm.sys
    | ServerName TSMServer
    | CommMethod TCPip
    | TcpPort 1500
    | TcpServerAddress tsmserver.your.domain.com
    | NodeName registered-name-for-this-system
    | PasswordAccess generate
    | Compression On
    | ErrorLogName /var/log/dsmerror.log
    | ErrorLogRetention 5 D
    | SchedLogName /var/log/dsmsched.log
    | SchedLogRetention 5 D
    |* InclExcl /opt/tivoli/tsm/client/ba/bin/dsm.inclexcl[/FONT]
    -- set the TcpServerAddress to the fully qualified name of the TSM Server
    -- set the NodeName to the node name as registered with the TSM Server
    -- save and exit
    [/FONT]
  13. [FONT=Nimbus Mono L, monospace]ln -s ../../lang/en_US in “/opt/tivoli/tsm/client/ba/bin”[/FONT]
  14. [FONT=Nimbus Roman No9 L, serif]run an incremental backup
    d[FONT=Nimbus Mono L, monospace]smc incremental[/FONT]

    [/FONT]

  15. [FONT=Nimbus Roman No9 L, serif]create upstart script
    [FONT=Nimbus Mono L, monospace]vim /etc/init/dsm-sched.conf
    # dsm-sched

    # This service starts the TSM "dsmc sched" backup process
    # and respawns it when the dsmc process gets
    # killed or dies.

    Description “start the Tivoli Storage Manager scheduler”

    start on runlevel 2
    start on runlevel 3
    start on runlevel 4
    start on runlevel 5

    stop on runlevel 0
    stop on runlevel 1
    stop on runlevel 6

    respawn
    exec /usr/bin/dsmc sched >>/tmp/dsm-sched.log 2>&1

    # end of dsm-sched[/FONT]
    -- save and exit
    [/FONT]
  16. [FONT=Nimbus Roman No9 L, serif]start the TSM scheduler
    [FONT=Nimbus Mono L, monospace]start dsm-sched[/FONT]
    [/FONT]
  17. [FONT=Nimbus Roman No9 L, serif]verify the scheduler picked up its scheduletail /var/log/dsmsched.log[/FONT]
  18. [FONT=Nimbus Roman No9 L, serif]you are done...[/FONT]



[FONT=Nimbus Roman No9 L, serif]Regards,[/FONT]
[FONT=Nimbus Roman No9 L, serif]Werner[/FONT]
 
[FONT=Nimbus Roman No9 L, serif][FONT=Nimbus Mono L, monospace]Hey Werner,
thanks a lot for your post, it was very helpful since I never before worked with TSM :)

Regards,
Rebecca
[/FONT]
[/FONT]
 
Troubles with TSM client 552/553 on Ubuntu10.04/amd64

Hello,

I've tried this with 5.5.0 - 5.5.3, and each incarnation does the same:

root@sec-2:~# dsmcad
-su: /usr/bin/dsmcad: cannot execute binary file

root@sec-2:~# !ldd
ldd /opt/tivoli/tsm/client/ba/bin/dsmc
not a dynamic executable

root@sec-2:~# file /opt/tivoli/tsm/client/ba/bin/dsmc
/opt/tivoli/tsm/client/ba/bin/dsmc: ELF 64-bit LSB executable, IA-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.4.1, not stripped

root@sec-2:~# ldconfig -p | grep tivoli
libxmlutil-5.5.0.0.so (libc6,x86-64) => /opt/tivoli/tsm/client/api/bin64/libxmlutil-5.5.0.0.so
libxerces-c1_6_0.so (libc6,x86-64) => /opt/tivoli/tsm/client/api/bin64/libxerces-c1_6_0.so
libApiTSM64.so (libc6,x86-64) => /opt/tivoli/tsm/client/api/bin64/libApiTSM64.so

i've symlinked bin64 -> bin:
root@sec-2:/opt/tivoli/tsm/client# ls -alF api/ | grep bin
lrwxrwxrwx 1 root root 5 2010-07-30 16:07 bin -> bin64/
drwxr-xr-x 3 leif leif 4096 2010-07-30 15:57 bin64/


not sure what is going on here....

Any ideas?
root@sec-2:/opt/tivoli/tsm/client# uname -a
Linux sec-2 2.6.34 #2 SMP Fri Jul 2 22:49:58 AKDT 2010 x86_64 GNU/Linux
 
Hello lsawyer

It seems you are trying to install the IA64 TSM client on a x86_64 computer. Please note that IA-64 is the "Intel Itanium" architecture and this is incompatible with the "Intel x86" architecture. You need to download the "x86" architecture - this is for 32bit and 64bit Intel/AMD systems. Here is some of my system output for comparison:

wkuballa@wkuballa-desktop:~$ uname -a
Linux wkuballa-desktop 2.6.32-24-generic #39-Ubuntu SMP Wed Jul 28 05:14:15 UTC 2010 x86_64 GNU/Linux

wkuballa@wkuballa-desktop:~$ file /opt/tivoli/tsm/client/ba/bin/dsmc
/opt/tivoli/tsm/client/ba/bin/dsmc: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.2.5, not stripped

wkuballa@wkuballa-desktop:~$ ldd /opt/tivoli/tsm/client/ba/bin/dsmc
linux-gate.so.1 => (0xf7754000)
libcrypt.so.1 => /lib32/libcrypt.so.1 (0xf7706000)
libpthread.so.0 => /lib32/libpthread.so.0 (0xf76ed000)
libdl.so.2 => /lib32/libdl.so.2 (0xf76e8000)
libgpfs.so => /opt/tivoli/tsm/client/api/bin/libgpfs.so (0xf76df000)
libdmapi.so => /opt/tivoli/tsm/client/api/bin/libdmapi.so (0xf76d9000)
librt.so.1 => /lib32/librt.so.1 (0xf76d0000)
libha_gs_r.so => /opt/tivoli/tsm/client/api/bin/libha_gs_r.so (0xf76b1000)
libstdc++.so.5 => /usr/lib32/libstdc++.so.5 (0xf75f6000)
libm.so.6 => /lib32/libm.so.6 (0xf75d0000)
libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf75b1000)
libc.so.6 => /lib32/libc.so.6 (0xf7457000)
/lib/ld-linux.so.2 (0xf7755000)
libct_cu.so => /opt/tivoli/tsm/client/api/bin/libct_cu.so (0xf740d000)


cheers,
Werner



Hello,

I've tried this with 5.5.0 - 5.5.3, and each incarnation does the same:

root@sec-2:~# dsmcad
-su: /usr/bin/dsmcad: cannot execute binary file

root@sec-2:~# !ldd
ldd /opt/tivoli/tsm/client/ba/bin/dsmc
not a dynamic executable

root@sec-2:~# file /opt/tivoli/tsm/client/ba/bin/dsmc
/opt/tivoli/tsm/client/ba/bin/dsmc: ELF 64-bit LSB executable, IA-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.4.1, not stripped

root@sec-2:~# ldconfig -p | grep tivoli
libxmlutil-5.5.0.0.so (libc6,x86-64) => /opt/tivoli/tsm/client/api/bin64/libxmlutil-5.5.0.0.so
libxerces-c1_6_0.so (libc6,x86-64) => /opt/tivoli/tsm/client/api/bin64/libxerces-c1_6_0.so
libApiTSM64.so (libc6,x86-64) => /opt/tivoli/tsm/client/api/bin64/libApiTSM64.so

i've symlinked bin64 -> bin:
root@sec-2:/opt/tivoli/tsm/client# ls -alF api/ | grep bin
lrwxrwxrwx 1 root root 5 2010-07-30 16:07 bin -> bin64/
drwxr-xr-x 3 leif leif 4096 2010-07-30 15:57 bin64/


not sure what is going on here....

Any ideas?
root@sec-2:/opt/tivoli/tsm/client# uname -a
Linux sec-2 2.6.34 #2 SMP Fri Jul 2 22:49:58 AKDT 2010 x86_64 GNU/Linux
 
Back
Top