Hodžův blog

15 Čvn

HowTo install TSM Backup client in Debian Squeeze (Ubuntu) 64bit

1. Update Debian system and install required packages
# aptitude update
# aptitude full-upgrade
# aptitude install alien libstdc++6 ksh ia32-libs

2. Go to directory /usr/src/ and download latest package from IBM web site. After download unpack archive.
# cd /usr/src/
# wget "ftp://service.boulder.ibm.com/storage/tivoli-storage-management/maintenance/client/v6r2/Linux/LinuxX86/v622/6.2.2.0-TIV-TSMBAC-LinuxX86.tar"
# tar -xvf 6.2.2.0-TIV-TSMBAC-LinuxX86.tar

3. Unpack RPM files
# alien -g -c TIVsm-API.i386.rpm
# alien -g -c TIVsm-API64.i386.rpm
# alien -g -c TIVsm-BA.i386.rpm
# alien -g -c gskcrypt32-8.0.13.4.linux.x86.rpm
# alien -g -c gskcrypt64-8.0.13.4.linux.x86_64.rpm
# alien -g -c gskssl32-8.0.13.4.linux.x86.rpm
# alien -g -c gskssl64-8.0.13.4.linux.x86_64.rpm

4. Make a correct path for debian build script
# mv TIVsm-API-6.2.2/debian TIVsm-API-6.2.2/DEBIAN
# mv TIVsm-API64-6.2.2/debian TIVsm-API64-6.2.2/DEBIAN
# mv TIVsm-BA-6.2.2/debian TIVsm-BA-6.2.2/DEBIAN
# mv gskcrypt32-8.0/debian gskcrypt32-8.0/DEBIAN
# mv gskcrypt64-8.0/debian gskcrypt64-8.0/DEBIAN
# mv gskssl32-8.0/debian gskssl32-8.0/DEBIAN
# mv gskssl64-8.0/debian gskssl64-8.0/DEBIAN

5. Make a correct file permissions for debian build script
# chmod 755 TIVsm-API-6.2.2/DEBIAN/{postinst,prerm}
# chmod 755 TIVsm-API64-6.2.2/DEBIAN/{postinst,prerm}
# chmod 755 TIVsm-BA-6.2.2/DEBIAN/{postinst,prerm}
# chmod 755 gskcrypt32-8.0/DEBIAN/postinst
# chmod 755 gskcrypt64-8.0/DEBIAN/postinst
# chmod 755 gskssl32-8.0/DEBIAN/{postinst,prerm}
# chmod 755 gskssl64-8.0/DEBIAN/{postinst,prerm}

6. Edit control files for each package
# vi TIVsm-API-6.2.2/DEBIAN/control
Package: tivsm-api
Version: 6.2.2
Architecture: amd64
Maintainer: Milan Kozak <hodza@hodza.net>
Section: alien
Priority: extra
Description: IBM Tivoli Storage Manager API

# vi TIVsm-API64-6.2.2/DEBIAN/control
Package: tivsm-api64
Version: 6.2.2
Architecture: amd64
Maintainer: Milan Kozak <hodza@hodza.net>
Section: alien
Priority: extra
Description: IBM Tivoli Storage Manager API

# vi TIVsm-BA-6.2.2/DEBIAN/control
Package: tivsm-ba
Version: 6.2.2
Architecture: amd64
Maintainer: Milan Kozak <hodza@hodza.net>
Section: alien
Priority: extra
Description: IBM Tivoli Storage Manager Client

# vi gskcrypt32-8.0/DEBIAN/control
Package: gskcrypt32
Version: 8.0
Architecture: amd64
Maintainer: Milan Kozak <hodza@hodza.net>
Section: alien
Priority: extra
Description: IBM GSKit Cryptography Runtime

# vi gskcrypt64-8.0/DEBIAN/control
Package: gskcrypt64
Version: 8.0.13.4
Architecture: amd64
Maintainer: Milan Kozak <hodza@hodza.net>
Section: alien
Priority: extra
Description: IBM GSKit Cryptography Runtime

# vi gskssl32-8.0/DEBIAN/control
Package: gskssl32
Version: 8.0.13.4
Architecture: amd64
Maintainer: Milan Kozak <hodza@hodza.net>
Section: alien
Priority: extra
Description: IBM GSKit SSL Runtime With Acme Toolkit

# vi gskssl64-8.0/DEBIAN/control
Package: gskssl64
Version: 8.0.13.4
Architecture: amd64
Maintainer: Milan Kozak <hodza@hodza.net>
Section: alien
Priority: extra
Description: IBM GSKit SSL Runtime With Acme Toolkit

7. Build deb packages
# dpkg -b TIVsm-API-6.2.2
# dpkg -b TIVsm-API64-6.2.2
# dpkg -b TIVsm-BA-6.2.2
# dpkg -b gskcrypt32-8.0
# dpkg -b gskcrypt64-8.0
# dpkg -b gskssl32-8.0
# dpkg -b gskssl64-8.0

8. Install all deb packages
# dpkg -i TIVsm-API-6.2.2.deb
# dpkg -i TIVsm-API64-6.2.2.deb
# dpkg -i TIVsm-BA-6.2.2.deb
# dpkg -i gskcrypt32-8.0.deb
# dpkg -i gskcrypt64-8.0.deb
# dpkg -i gskssl32-8.0.deb
# dpkg -i gskssl64-8.0.deb

9. Create missing symlinks
# ln -s /opt/tivoli/tsm/client/api/bin/libgpfs.so /lib32/
# ln -s /opt/tivoli/tsm/client/api/bin/libdmapi.so /lib32/
# ln -s /usr/lib/libgsk8cms.so /lib32/
# ln -s /usr/lib/libgsk8ssl.so /lib32/
# ln -s /usr/lib/libgsk8sys.so /lib32/
# ln -s /usr/lib/libgsk8iccs.so /lib32/

10. Test TSM Client
# dsmc

9 Responses to “HowTo install TSM Backup client in Debian Squeeze (Ubuntu) 64bit”

  1. 1
    lzap Says:

    Joke: Or install the RPMs on RHEL 5 or 6 😉

    That had to be challenging. Nice work.

  2. 2
    Alex Says:

    The most great explanation and the most helpful one.
    Thanks a lot !!!

  3. 3
    Patrick K. Says:

    …or get IBM to supply DEBs.

    Thanks a lot!
    Patrick

  4. 4
    shrek Says:

    The content is as clear and accurate as it should be.

    thanks a lot!

  5. 5
    daniel Says:

    Great explanation! Works like a charm. Thanks a lot!

  6. 6
    Daniele Albrizio Says:

    To complete:

    1. create a file /etc/ld.so.conf.d/tsm.conf
    2. put the following two lines in the file:
    /opt/tivoli/tsm/client/api/bin
    /usr/local/ibm/gsk8/lib
    3. run sudo ldconfig

    to connect from remote:
    ssh -X unprivilegeduser@backupclient.fqdn
    unprivilegeduser@backupclient.fqdn:$ gksudo /opt/tivoli/tsm/client/ba/bin/dsmj

  7. 7
    kero Says:

    great thanx

  8. 8
    phillip montemayor Says:

    will these instructions work on wheezy non-ubuntu?

  9. 9
    federico Says:

    Hi,

    I got some Debian servers. A per uname -m this are 32 bits. This intructions are made for this kind of too.

Leave a Reply

Hodžův blog is is proudly powered by Wordpress and the Magellan Theme