ADSM-L

Re: v5r3 on gentoo and need libgpfs.so

2005-10-18 10:22:05
Subject: Re: v5r3 on gentoo and need libgpfs.so
From: "Allen S. Rout" <asr AT UFL DOT EDU>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Tue, 18 Oct 2005 10:20:58 -0400
==> On Mon, 17 Oct 2005 12:46:50 -0500, Ryan P <ryanp AT HHSYS DOT ORG> said:


> This is my first time installing tivoli but I can read a set of
> instructions.  What I'm not understanding is this need of GPFS, and if I
> really do need it to for the backup client, then where do I get it?  I
> called tech support and he wasnt much help, found a little section on IBM
> knowledge base talking about havign to order the library.  Seems like v5r2
> doesnt need GPFS or anything special.


Here's the ebuild we use for TSM on Gentoo at the moment.  This is probably
bountifully unsupported; don't count on IBM being able to help you with it.


In addition to pulling down the publicly available clients, this ebuild makes
some assumptions about where you want things and what you want done.  For
example, we stick the password caches in /etc/tivoli and we stick the logs in
/var/log.  Take a look at it and make sure you agree with its' opinions.

We make a bunch of symlinks to take care of the libpath stuff.

If you don't know how to add this to your local portage tree and install it,
you need to look up local gentoo Portage trees.  I can't help you with it.




=== app-admin/tsm/tsm-5.3.0.ebuild


# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="Tivoli Storage Manager (TSM) Backup/Archive (B/A) Client and API"
HOMEPAGE="http://www.tivoli.com/";

MY_PV=${PV//./} # Converts '1.2.3' to '123'
BASE_URI="ftp://ftp.software.ibm.com/storage/tivoli-storage-management/maintenance/client/v5r3/Linux
/Linux86/v${MY_PV}/"
SRC_TAR="TSM${MY_PV}C_LINUX86.tar"
SRC_URI="${BASE_URI}${SRC_TAR}"

# package in download tarball
TSM_BA="TIVsm-BA.i386.rpm"
TSM_API="TIVsm-API.i386.rpm"
TSM_HSM="TIVsm-HSM.i386.rpm"

RESTRICT="nostrip" # Breaks libPiIMG.ss and libPiSNAP.so
LICENSE="as-is Apache-1.1 JDOM gSOAP"
SLOT="0" # There should only be one version installed at any give time.
KEYWORDS="x86"
IUSE=""
DEPEND="sys-libs/lib-compat app-arch/rpm"
RDEPEND="sys-libs/lib-compat" # Doesn't need rpm once it's installed
S="${WORKDIR}" # Different than the default of ${WORKDIR}/${P}

src_unpack() {
        unpack ${A}

        for x in ${TSM_BA} ${TSM_HSM} ${TSM_API}
        do
                einfo "Extracting: ${x}"
                rpm2cpio ${x} | cpio --extract --make-directories 
--unconditional
        done
}

src_install() {
        cp -a opt ${D}
        chmod -R go+rX ${D}/opt/tivoli # Allow all users to access TSM tools

        dodir /etc/tivoli
        keepdir /etc/tivoli

        cp -a ${S}/opt/tivoli/tsm/client/ba/bin/dsm.sys.smp 
${D}/etc/tivoli/dsm.sys
        echo '   PasswordDir "/etc/tivoli/"' >> ${D}/etc/tivoli/dsm.sys
        echo '   PasswordAccess generate' >> ${D}/etc/tivoli/dsm.sys
        # Added the hostname to be more friendly, the admin will need to edit 
this file anyway
        echo '   NodeName' `hostname` >> ${D}/etc/tivoli/dsm.sys
        echo '   ErrorLogName "/var/log/dsmerror.log"' >> 
${D}/etc/tivoli/dsm.sys
        echo '   SchedLogName "/var/log/dsmsched.log"' >> 
${D}/etc/tivoli/dsm.sys
        dosym /etc/tivoli/dsm.sys /opt/tivoli/tsm/client/ba/bin/dsm.sys

        cp -a ${S}/opt/tivoli/tsm/client/ba/bin/dsm.opt.smp 
${D}/etc/tivoli/dsm.opt
        dosym /etc/tivoli/dsm.opt /opt/tivoli/tsm/client/ba/bin/dsm.opt

        # This creates the symlinks for the API libs
        dodir /usr/lib
        dosym /opt/tivoli/tsm/client/api/bin/libct_cu.so /usr/lib/libct_cu.so
        dosym /opt/tivoli/tsm/client/api/bin/libdmapi.so /usr/lib/libdmapi.so
        dosym /opt/tivoli/tsm/client/api/bin/libgpfs.so /usr/lib/libgpfs.so
        dosym /opt/tivoli/tsm/client/api/bin/libha_gs_r.so 
/usr/lib/libha_gs_r.so
        dosym /opt/tivoli/tsm/client/api/bin/libApiDS.so /usr/lib/libApiDS.so

        # Setup the env
        dodir /etc/env.d
        ENV_FILE="${D}/etc/env.d/80tivoli"
        echo 'DSM_CONFIG="/etc/tivoli/dsm.opt"' >> ${ENV_FILE}
        echo 'DSM_DIR="/opt/tivoli/tsm/client/ba/bin"' >> ${ENV_FILE}
        echo 'DSM_LOG="/var/log"' >> ${ENV_FILE}
        echo 
'PATH="/opt/tivoli/tsm/client/admin/bin:/opt/tivoli/tsm/client/ba/bin"' >> 
${ENV_FILE}
        echo 
'ROOTPATH="/opt/tivoli/tsm/client/admin/bin:/opt/tivoli/tsm/client/ba/bin"' >> 
${ENV_FI
LE}

        insinto /etc/conf.d && newins ${FILESDIR}/dsmc.conf.d dsmc
        exeinto /etc/init.d && newexe ${FILESDIR}/dsmc.init.d dsmc
}

<Prev in Thread] Current Thread [Next in Thread>