2012年10月9日 星期二

tsm client for ubuntu 64

 1.get the TSM RPMs
    wget "ftp://ftp.software.ibm.com/storage/t...C-LinuxX86.tar"

 2.install ksh and ia32-libs、libstdc++5
    # apt-get install alien libstdc++5 ksh ia32-libs

  
 3.unpack the archive
    tar xvf 5.5.2.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.2/debian TIVsm-API-5.5.2/DEBIAN
    mv TIVsm-BA-5.5.2/debian TIVsm-BA-5.5.2/DEBIAN


 6.edit the control files
    vim TIVsm-API-5.5.2/DEBIAN/control
    -- remove blank line after "Maintainer:" line
    -- in "Architecture:" line change "i386" to "amd64"
    -- delete "${shlibs epends}" 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
    |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

    |
    -- save and exit

    vim TIVsm-BA-5.5.2/DEBIAN/control
    -- remove blank line after "Maintainer:" line
    -- in "Architecture:" line change "i386" to "amd64"
    -- delete "${shlibsepends}" 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
    |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

    |
    -- save and exit

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


 8.create /etc/ld.so.conf.d/tsm-api.conf with this one line:
    /opt/tivoli/tsm/client/api/bin

    ldconfig
 
 9.install *.deb packages
    dpkg -i TIVsm-API-5.5.2.deb
    dpkg -i TIVsm-BA-5.5.2.deb

10.create/modify TSM configuration files
    vim /opt/tivoli/tsm/client/ba/bin/dsm.opt
    | ServerName TSMServer
    | Domain ALL-LOCAL
    | DateFormat 3
    -- save and exit
 
11.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
12.ln -s /opt/tivoli/tsm/client/api/bin/libgpfs.so /lib32/
     ln -s /opt/tivoli/tsm/client/api/bin/libdmapi.so /lib32/
     ln -s /opt/tivoli/tsm/client/lang/en_US/ /opt/tivoli/tsm/client/ba/bin/

13. run an incremental backup
    dsmc incremental

14. create upstart script
    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
    -- save and exit

    start the TSM scheduler
    start dsm-sched

    verify the scheduler picked up its scheduletail /var/log/dsmsched.log

沒有留言: