ADSM-L

Re: Putting ADSM config files in a separate directory / running 2 servers

2001-01-11 05:53:29
Subject: Re: Putting ADSM config files in a separate directory / running 2 servers
From: Sheelagh Treweek <sheelagh.treweek AT COMPUTING-SERVICES.OXFORD.AC DOT UK>
Date: Thu, 11 Jan 2001 10:54:34 +0000
Hi Gerhard,

Yes to both.  We are running two TSM 3740 servers on a single
machine.  We run both out of root uid (I think Cornell use an
alternative uid - please ask Paul Zarnowski about that) and it
works very well.

Files in each directory are as you expected but including the .lic
files; it does expect to find them there too.  We link the core
file to a much larger space and get the dump elsewhere.

ls -l /dsmservers/SERVER_A
total 20944
-r-xr-xr-x   1 root     sys           696 Aug  3 14:10 10client.lic*
-r-xr-xr-x   1 root     sys           694 Aug  3 14:10 1client.lic*
-r-xr-xr-x   1 root     sys           694 Aug  3 14:10 1client.lic*
-r-xr-xr-x   1 root     sys           696 Aug  3 14:10 50client.lic*
-r-xr-xr-x   1 root     sys           696 Aug  3 14:10 50client.lic*
-r-xr-xr-x   1 root     sys           695 Aug  3 14:10 5client.lic*
-r-xr-xr-x   1 root     sys           695 Aug  3 14:10 5client.lic*
-rw-r--r--   1 root     sys            58 Jan  4 14:36 adsmserv.lock
-rw-r--r--   1 root     sys            58 Jan  4 14:36 adsmserv.lock
-r-xr-xr-x   1 root     sys           705 Aug  3 14:10 advdev.lic*
-r-xr-xr-x   1 root     sys           705 Aug  3 14:10 advdev.lic*
lrwxrwxrwx   1 root     sys            21 Jul 28 17:49 core ->
lrwxrwxrwx   1 root     sys            21 Jul 28 17:49 core ->
/coredump/core.SERVER_A
-rw-r--r--   1 root     system        682 Jan 11 09:56 devconfig
-r-xr-xr-x   1 root     sys           698 Aug  3 14:10 domino.lic*
-r-xr-xr-x   1 root     sys           698 Aug  3 14:10 domino.lic*
-r-xr-xr-x   1 root     sys           696 Aug  3 14:10 drm.lic*
-r-xr-xr-x   1 root     sys           696 Aug  3 14:10 drm.lic*
-rw-r--r--   1 root     system     239507 Jan 11 10:30 dsmaccnt.log
-rw-r--r--   1 root     system     239507 Jan 11 10:30 dsmaccnt.log
-rw-r--r--   1 root     sys           868 Aug  3 14:10 dsmerror.log
-rw-r--r--   1 root     sys           868 Aug  3 14:10 dsmerror.log
-rwx--x--x   1 root     sys        687634 Aug  3 14:10 dsmlicense*
-rwx--x--x   1 root     sys        687634 Aug  3 14:10 dsmlicense*
-rw-r--r--   1 root     sys           169 Jan  4 14:36 dsmserv.dsk
-rw-r--r--   1 root     sys           169 Jan  4 14:36 dsmserv.dsk
-rw-r--r--   1 root     sys          1043 Sep  8 10:13 dsmserv.opt
-rw-r--r--   1 root     sys          1043 Sep  8 10:13 dsmserv.opt
-rwxr-xr--   1 root     sys           678 Aug  4 16:45 dsmstart.SERVER_A
-rwxr-xr--   1 root     sys           678 Aug  4 16:45 dsmstart.SERVER_A
-r-xr-xr-x   1 root     sys           702 Aug  3 14:10 informix.lic*
-r-xr-xr-x   1 root     sys           702 Aug  3 14:10 informix.lic*
-r-xr-xr-x   1 root     sys           705 Aug  3 14:10 lnotes.lic*
-r-xr-xr-x   1 root     sys           705 Aug  3 14:10 lnotes.lic*
drwxrwx---   2 root     system        512 Jul 18 11:58 lost+found/
drwxrwx---   2 root     system        512 Jul 18 11:58 lost+found/
-rw-r--r--   1 root     sys           666 Aug  3 14:10 monitor.log
-r-xr-xr-x   1 root     sys           705 Aug  3 14:10 msexch.lic*
-r-xr-xr-x   1 root     sys           705 Aug  3 14:10 msexch.lic*
-r-xr-xr-x   1 root     sys           700 Aug  3 14:10 mssql.lic*
-r-xr-xr-x   1 root     sys           700 Aug  3 14:10 mssql.lic*
-r-xr-xr-x   1 root     sys           693 Aug  3 14:10 network.lic*
-r-xr-xr-x   1 root     sys           693 Aug  3 14:10 network.lic*
-rw-r--r--   1 root     sys          1513 Aug  3 15:06 nodelock
-rw-r--r--   1 root     sys          1513 Aug  3 15:06 nodelock
-r-xr-xr-x   1 root     sys           698 Aug  3 14:10 opensys.lic*
-r-xr-xr-x   1 root     sys           698 Aug  3 14:10 opensys.lic*
-r-xr-xr-x   1 root     sys           700 Aug  3 14:10 oracle.lic*
-r-xr-xr-x   1 root     sys           700 Aug  3 14:10 oracle.lic*
-r-xr-xr-x   1 root     sys           701 Aug  3 14:10 sapr3.lic*
-r-xr-xr-x   1 root     sys           701 Aug  3 14:10 sapr3.lic*
-r-xr-xr-x   1 root     sys           706 Aug  3 14:10 spacemgr.lic*
-r-xr-xr-x   1 root     sys           706 Aug  3 14:10 spacemgr.lic*
-rw-r-----   1 root     system      29483 Jan 11 06:13 volumehistory
-rw-r-----   1 root     system      29483 Jan 11 06:13 volumehistory
Sample script to start a server in foreground :
Sample script to start a server in foreground :


#!/bin/ksh -x
#
# start up ADSM server in foreground
#
DSMSERV_DIR=/dsmservers/SERVER_A
DSMCODE_DIR=/usr/tivoli/tsm/server/bin
export DSMSERV_DIR
cd $DSMSERV_DIR
$DSMCODE_DIR/dsmserv.SERVER_A


Sample for background (dsmstart.SERVER_A) :

#!/bin/ksh
#
# start up ADSM server
#
DSMSERV_DIR=/dsmservers/SERVER_A
#
DSMCODE_DIR=/usr/tivoli/tsm/server/bin
DSMLOGFILE=/var/adm/syslog/SERVER_A.dsmserv.log.$(date +%d-%b-%Y)
export DSMSERV_DIR
cd $DSMSERV_DIR
ulimit -c unlimited
ulimit -d unlimited
ulimit -s unlimited

if [ -f /etc/nodsm.SERVER_A ]; then
  sleep 60
else
  ( sleep 5 ;
    if ps -eo comm|grep xmservd > /dev/null; then
      # xmservd is already running, so give it a HUP
      kill -1 `ps -eo comm,pid | awk '$1 == "xmservd" { print $2 }'`
    else
      # got to kick xmservd to start it
      xmpeek -l >/dev/null
    fi
  ) &

$DSMCODE_DIR/dsmserv.SERVER_A quiet
fi
sleep 120
exit 0

(this procedure runs all the time and autoatically restarts server
if it falls over - providing the file /etc/... does not exist; we've
run this for years, more or less as it is now.  we start it in inittab
as respawn)

In the install directory you need to make some links :

% ls -l /usr/tivoli/tsm/server/bin/dsmserv*

/usr/tivoli/tsm/server/bin/dsmserv
lrwxrwxrwx   1 root     system          7 Oct 25 08:46
/usr/tivoli/tsm/server/bin/dsmserv.SERVER_A -> dsmserv*
lrwxrwxrwx   1 root     system          7 Oct 25 08:46
/usr/tivoli/tsm/server/bin/dsmserv.SERVER_B -> dsmserv*

If you do this, linking to give two names to the server code, then
when you do a ps you can distinguish which instance is which (so you
can kill the correct one, should this be so needed ...).

I hope this helps and that I haven't missed any more out.

If you are still running ADSM rather than TSM you can still do it but
you need a lot more in the server config directories; I have deleted
all knowledge of that list I am afraid.

Regards, Sheelagh
<Prev in Thread] Current Thread [Next in Thread>
  • Re: Putting ADSM config files in a separate directory / running 2 servers, Sheelagh Treweek <=