On x86_64 system debian 6 some additionnal packages are required:
rpm
On the system for uncompressing rpm package, you need also:
alien
Download the TSM client for linux on IBM ftp site:
ftp://ftp.software.ibm.com/storage/tivoli-storage-management/patches/client/
If you have a 64 bit OS, the use the latest version (current 7.1.0.3), but for 32 bit OS, use the latest patch in the version 6.2.5.
Untar the downloaded file, it contain some rpm files not commonly used, like jbb (jounal based backup, only for big file servers), the cit rpm are used to report to TSM server informations about PVU (processor value unit, for TSM licensing)…
Use the following script to adapt your debian build (use 7.1.0 for 7.1.0.3):
for pkg in $(ls | grep rpm) do alien -v -g -c $pkg done for dir in $(ls | grep -v rpm | grep -v orig) do mv $dir/debian $dir/DEBIAN done for scr in $(ls */DEBIAN/p*) do chmod 755 $scr done for ctl in $(ls */DEBIAN/control) do cp $ctl $ctl.orig head -n -2 $ctl.orig | sed '/^$/d' | sed 's/\${shlibs:Depends}//g' > $ctl echo -e "Version: 7.1.0\n" >> $ctl done
rc.dsmcad
#!/bin/bash ######################################################################## ## This script is used to start/stop the dsmcad ## The original script was: start/stop mldonkey p2p client ## 2007 by Christoph Langner, published under the GPL v3 ## published on http://wiki.ubuntuusers.de/MLDonkey ## Changed the script to start/stop the dsmcad for ubuntu ## 2008 by Timo Scheller, published under the GPL v3 ## Modified, Feb. 2009 for Ubuntu Server 8.04.2 ## Modified, Feb. 2010, Fixed to change this ANS4042E: http://www-01.ibm.com/support/docview.wss?uid=swg21290640 ## No warranty, use it at your own risk! ####################################################################### ### BEGIN INIT INFO # Provides: dsmcad # Required-Start: $local_fs # Required-Stop: $local_fs # Should-Start: $syslog # Should-Stop: $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: TSM Client Acceptor Daemon (dsmcad) # Description: Start/Stop the TSM CAD Daemon ### END INIT INFO #PATH=/sbin:/bin:/usr/sbin:/usr/bin DESC="TSM Client Acceptor Daemon" NAME="dsmcad" DAEMON=/opt/tivoli/tsm/client/ba/bin/$NAME SCRIPTNAME="/etc/init.d/$NAME" #NC="/bin/nc" . /lib/lsb/init-functions export DSM_DIR=/opt/tivoli/tsm/client/ba/bin export DSM_CONFIG=/opt/tivoli/tsm/client/ba/bin/dsm.opt export DSM_LOG=/var/log/tsm # Fixed to change this ANS4042E: http://www-01.ibm.com/support/docview.wss?uid=swg21290640 export LANG=en_US.UTF-8 #export LC_ALL=en_US ## Functions # # Root-Check # rootcheck() { if [ $UID -ne 0 ] ; then echo "You must be a root user" 2>&1 exit 1 fi } # # Get PID of daemon # pidof_dsmcad() { PID=$(pidof $DAEMON) if [ ! $PID ]; then return 1 fi echo $PID } # # Start the dsmcad daemon # d_start () { rootcheck if [ ! $(pidof_dsmcad) ]; then $DAEMON > /dev/null 2>&1 fi } # # Stop dsmcad daemon # d_stop () { rootcheck pkill -f $DAEMON for process in $(ps -ef | grep dsmcad | grep -v grep | grep -v 'init.d' | awk '{print $2}') do kill -9 $process done } # # Get Status of dsmcad # d_status() { if [ $(pidof_dsmcad) ]; then echo "$DESC is running" else echo "$DESC is not running" fi } # # init-script # case $1 in start) log_daemon_msg "Starting" $DESC $DAEMON d_start sleep 3 if [ $(pidof dsmcad) ]; then log_end_msg 0 else log_end_msg 1 fi ;; stop) log_daemon_msg "Stopping" $DESC $DAEMON d_stop sleep 2 if [ $(pidof $DAEMON) ]; then log_end_msg 1 else log_end_msg 0 fi ;; status) d_status ;; restart) $0 stop sleep 1 $0 start ;; *) echo "Usage: /etc/init.d/dsmcad {start|stop|restart|status}" ;; esac
chmod 744 rc.dsmcad
dsm.sys
************************************************************************ * Tivoli Storage Manager * * * * Sample Client System Options file for UNIX (dsm.sys.smp) * ************************************************************************ * This file contains the minimum options required to get started * using TSM. Copy dsm.sys.smp to dsm.sys. In the dsm.sys file, * enter the appropriate values for each option listed below and * remove the leading asterisk (*) for each one. * If your client node communicates with multiple TSM servers, be * sure to add a stanza, beginning with the SERVERNAME option, for * each additional server. ************************************************************************ SErvername tsmprod COMMmethod TCPip TCPPort 1500 TCPServeraddress tsmsrv1 NODENAME debian7 INCLEXCL /opt/tivoli/tsm/client/ba/bin/dsm.inclexcl PASSWORDACCESS GENERATE SCHEDLOGNAME /var/log/tsm/dsmsched.log ERRORLOGNAME /var/log/tsm/dsmerror.log SCHEDLOGRETENTION 10 D ERRORLOGRETENTION 10 D SCHEDMODE PROMPT *SCHEDMODE POLLING *QUERYSCHEDPERIOD 1 RESOURCEUTILIZATION 2 MANAGEDSERVICES SCHEDULE WEBPORTS 1501 1502 COMPRESSION No
dsm.opt
************************************************************************ * Tivoli Storage Manager * * * * Sample Client User Options file for UNIX (dsm.opt.smp) * ************************************************************************ * This file contains an option you can use to specify the TSM * server to contact if more than one is defined in your client * system options file (dsm.sys). Copy dsm.opt.smp to dsm.opt. * If you enter a server name for the option below, remove the * leading asterisk (*). ************************************************************************ SErvername tsmprod SUBDIR YES QUIET DOMAIN ALL-LOCAL
dsm.inclexcl
exclude.dir /cdrom exclude.dir /var/log/tsm exclude.fs /proc exclude.dir /etc/ssl/certs exclude.dir /usr/share/ca-certificates/mozilla
root@debian:/tmp/tsm/TIVsm-BA-7.1.0/debian# vi postinst
............ # create links for messages cd $CLIENTDIR/ba/bin #ln -sf -t . ../../lang/??_?? 2>/dev/null ln -sf -t . ../../lang/EN_US 2>/dev/null mkdir -p /var/log/tsm 2>/dev/null # Add Libraries if [ ! -e /etc/ld.so.conf.d/tsm.conf ] then echo "/opt/tivoli/tsm/client/api/bin" > /etc/ld.so.conf.d/tsm.conf echo "/opt/tivoli/tsm/client/api/bin64" >> /etc/ld.so.conf.d/tsm.conf echo "/usr/local/ibm/gsk8_64/lib64" >> /etc/ld.so.conf.d/tsm.conf fi ldconfig -v update-rc.d dsmcad defaults exit 0
Now you are ready to create the .deb packages:
for dir in $(ls | grep -v rpm | grep -v orig) do dpkg -b $dir done
http://wiki.gwdg.de/index.php/TSM_Client_unter_Ubuntu_Server_64-Bit_installieren
http://wiki.gwdg.de/index.php/TSM_Client_unter_Ubuntu_Debian
http://wiki.gwdg.de/index.php/Tsm_client_6.2.2_unter_debian_squeeze_64bit
http://wiki.gwdg.de/index.php/TSM:debian
http://www-01.ibm.com/support/docview.wss?uid=swg21598369
http://www.cms.hu-berlin.de/dl/systemservice/fileservice/tsm/client64_ubuntu_debian