[HOWTO] How To Install TSM Client 551 on Ubuntu 9.04/amd64

wkuballa

ADSM.ORG Member
Joined
Feb 4, 2009
Messages
5
Reaction score
4
Points
0
Installing TSM Client V5.5.1 on Ubuntu 9.04/amd64

Note: These instructions are based on the report "TSM-Client unter Debian/etch einrichten" at "https://wiki.gw.dg.de/index.php/TSM:debian"



1) get the RPMs
wget "ftp://ftp.software.ibm.com/storage/tivoli-storage-management/maintenance/client/v5r5/Linux/LinuxX86/v551/5.5.1.0-TIV-TSMBAC-LinuxX86.tar"

2) additional software that may be required (not sure if this is really required, but it works when these are installed)
apt-get install ksh libstdc++5

3) unpack the archive
tar xvf 5.5.1.0-TIV-TSMBAC-LinuxX86.tar

4) unpack the RPM archives (ignore warnings re scripts)
alien -g TIVsm-API.i386.rpm
alien -g TIVsm-BA.i386.rpm

5) change directory names
mv TIVsm-API-5.5.1/debian TIVsm-API-5.5.1/DEBIAN
mv TIVsm-BA-5.5.1/debian TIVsm-BA-5.5.1/DEBIAN

6) edit the control files
vim TIVsm-API-5.5.1/DEBIAN/control
-- 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.1"
-- delete last two lines " ." and " (Converted..."
-- append an empty line as last line
|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.1
|
-- save and exit

vim TIVsm-BA-5.5.1/DEBIAN/control
-- 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.1"
-- delete last two lines " ." and " (Converted..."
-- append an empty line as last line
|Source: tivsm-ba
|Section: alien
|Priority: extra
|Maintainer: who are you
|Package: tivsm-ba
|Architecture: amd64
|Depends:
|Description: the Backup Archive Client IBM Tivoli Storage Manager Client
|Version: 5.5.1
|
-- save and exit

7) create *.deb packages
dpkg -b TIVsm-API-5.5.1
dpkg -b TIVsm-BA-5.5.1

8) install *.deb packages
dpkg -i TIVsm-API-5.5.1.deb
dpkg -i TIVsm-BA-5.5.1.deb

9) create/modify TSM configuration files
vim /opt/tivoli/tsm/client/ba/bin/dsm.opt
| ServerName TSMServer
| Domain ALL-LOCAL
| DateFormat 3
-- save and exit

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
-- 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

10) run an incremental backup
dsmc incremental

11) create upstart script
vim /etc/event.d/dsm-sched
# dsm-sched

# This service starts the Tivoli Storage Manager "dsmc sched" backup process
# and respawns it as the scheduled backup happens or the dsmc process gets
# killed or dies.

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
-- save and exit

12) start the TSM scheduler
start dsm-sched

13) verify the scheduler picked up its schedule
tail /var/log/dsmsched.log

14) you are done...

Regards,
Werner



 
I tried this and I got the following error.

dsmc: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory

I installed libstdc++5, so I am at a loss as to why dsmc can't find it. Let me know if you have any suggestions.
 
Did an ldd on dsmc and got this.

# ldd /usr/bin/dsmc
linux-gate.so.1 => (0xf7f33000)
libcrypt.so.1 => /lib32/libcrypt.so.1 (0xf7ef0000)
libpthread.so.0 => /lib32/libpthread.so.0 (0xf7ed7000)
libdl.so.2 => /lib32/libdl.so.2 (0xf7ed2000)
libgpfs.so => /usr/lib/libgpfs.so (0xf7ec9000)
libdmapi.so => /usr/lib/libdmapi.so (0xf7ec3000)
librt.so.1 => /lib32/librt.so.1 (0xf7eba000)
libha_gs_r.so => /usr/lib/libha_gs_r.so (0xf7e9b000)
libstdc++.so.5 => not found
libm.so.6 => /lib32/libm.so.6 (0xf7e74000)
libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf7e65000)
libc.so.6 => /lib32/libc.so.6 (0xf7d07000)
/lib/ld-linux.so.2 (0xf7f34000)
libct_cu.so => /usr/lib/libct_cu.so (0xf7cbd000)


libstdc++.so.5 is not found however when I search for it I got the following

# find / -name libstdc++.so.5
/usr/lib/libstdc++.so.5

Meaning it is installed on the system and in a place that other libraries that dsmc can see are found. Any new ideas now with this new info?
 
Solved

Got it working for me. Had to install ia32-libs. After I did that dsmc started up.
 
Similiar issue

Any ideas?

root@lykurgos:/opt/tivoli/tsm/client/ba/bin# dsmc incremental
dsmc: error while loading shared libraries: libgpfs.so: cannot open shared object file: No such file or directory

root@lykurgos:/opt/tivoli/tsm/client/ba/bin# ldd /usr/bin/dsmc
linux-gate.so.1 => (0xffffe000)
libcrypt.so.1 => /lib32/libcrypt.so.1 (0xf7eaa000)
libpthread.so.0 => /lib32/libpthread.so.0 (0xf7e92000)
libdl.so.2 => /lib32/libdl.so.2 (0xf7e8d000)
libgpfs.so => not found
libdmapi.so => not found
librt.so.1 => /lib32/librt.so.1 (0xf7e84000)
libha_gs_r.so => not found
libstdc++.so.5 => /usr/lib32/libstdc++.so.5 (0xf7dc9000)
libm.so.6 => /lib32/libm.so.6 (0xf7da4000)
libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf7d99000)
libc.so.6 => /lib32/libc.so.6 (0xf7c4a000)
/lib/ld-linux.so.2 (0xf7eed000)

root@lykurgos:/opt/tivoli/tsm/client/ba/bin# find / -name "libgpfs.so" -print
/opt/tivoli/tsm/client/api/bin/libgpfs.so
/home/etchingsj/TIVsm-API-5.5.1/opt/tivoli/tsm/client/api/bin/libgpfs.so
/home/etchingsj/TIVsm-API-5.5.1.orig/opt/tivoli/tsm/client/api/bin/libgpfs.so


root@lykurgos:/opt/tivoli/tsm/client/ba/bin# uname -am
Linux lykurgos 2.6.24-19-generic #1 SMP Wed Jun 18 14:15:37 UTC 2008 x86_64 GNU/Linux
root@lykurgos:/opt/tivoli/tsm/client/ba/bin#
ia32-libs is already the newest version.
ia32-libs set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 246 not upgraded.
 
Seems like something went wacky in the install as I had to manually copy over all the missing libs and run ldconfig and then when I attempt to run the default lang file is missing.

Maybe I need to reinstall to repair.
 
Send the error. I think I may have seen it before.
 
ANS0101E Unable to open English message repository 'dsmclientV3.cat'.


root@lykurgos:/opt/tivoli/tsm/client# dsmc incremental
ANS0101E Unable to open English message repository 'dsmclientV3.cat'.
root@lykurgos:/opt/tivoli/tsm/client#


I also tried to run the install again but ended up with the same message.
Maybe on Monday I will try to uninstall everything and do it again.

I am sure I followed the instructions .

Thanks
 
http://www.adsm.org/forum/showthread.php?t=3809

This fixed it!

Made the sym link and all is good.
Thanks for the help!

root@lykurgos:/opt/tivoli/tsm/client/ba/bin# pwd
/opt/tivoli/tsm/client/ba/bin
root@lykurgos:/opt/tivoli/tsm/client/ba/bin# ln -s /opt/tivoli/tsm/client/lang/en_US/
root@lykurgos:/opt/tivoli/tsm/client/ba/bin# dsmadmc
IBM Tivoli Storage Manager
Command Line Administrative Interface - Version 5, Release 5, Level 1.0
(c) Copyright by IBM Corporation and other(s) 1990, 2008. All Rights Reserved.
 
upstart script issue

A couple things:

Ubuntu 9.10 amd64 decided to remove libstdc++5.so; this link has a workaround:

https://bugs.launchpad.net/ubuntu/+source/ia32-libs/+bug/431091

Second thing - for some reason I can't get the upstart script to work - I copied/pasted from the instructions directly into dsm-sched and when I run the command 'start dsm-sched' I get the following error:

start: Unknown job: dsm-sched

Anyone have any ideas?

Thanks!

~C
 
<thunk><thunk><thunk>

Wow, I started at the top of the TSM tree and hit every branch on the way down...

I ran into every issue here, thanks guys for clearing it all up and providing the answers! :up:
 
libstdc++.so.5 => not found

find / -name "libstdc++.so.5" -print
/usr/lib/libstdc++.so.5

And /usr/lib/ is under /etc/ld.so.conf


ldconfig -p | grep libstdc++.so.5
libstdc++.so.5 (libc6,x86-64) => /usr/lib/libstdc++.so.5


Any idea what i could try?
 
Last edited:
simply follow the fix as explained below in response #11 from "cab"
 
Which of the fixes? Where more than one in the link and the few i tried i didnt get working.
 
You need to have the 32bit libstdc++ library. This is what I can see on my system:

wkuballa@wkuballa-desktop:~$ locate libstdc++.so.5
/usr/lib/libstdc++.so.5
/usr/lib/libstdc++.so.5.0.7
/usr/lib32/libstdc++.so.5
/usr/lib32/libstdc++.so.5.0.7
wkuballa@wkuballa-desktop:~$

The link in #11/cab points to the workaround in ...launchpad...
 
Anyone know why IBM has not put out a client package that supports Ubuntu? I'm using the Mint distro and would love to have an easier install process.
 
Back
Top