ADSM-L

Re: Stoping the server through a script

2000-04-17 09:42:59
Subject: Re: Stoping the server through a script
From: Lindsay Morris <lmorris AT OPENMIC DOT COM>
Date: Mon, 17 Apr 2000 09:42:59 -0400
perhaps I'm naive, but...

I have frequently done a "halt" on the ADSM (TSM) server when it's
busy.  it
always comes back up, no problem, and picks up where it left off.

So what is the concern? i mean why do you need to carefully cancel
every process and every sesssion and unmount every tape
before you shut it down?

Scott Fluegge wrote:
>
> Question...
>
> I am trying to write a script that can be put in rc.shutdown that will
> gracefully bring down the adsm server.  That means I need to insure that there
> are no tapes mounted.  I can write a script that will chack for mounts and 
> even
> un-mount tapes.  The problem I am having is checking for processes running and
> then stoping them.  If I just unmount the tapes, and if something like
> reclemation is running, another tape will just be mounted.
>
> Does anyone know of a way to get the process numbers into a script?  There is 
> no
> unique entry on the process line (when "q pr" is used) that I can grep for as 
> I
> can with requests or mounts!
>
> Any help would be greatly appreciated!
>
> Thanks,
>
> Scott

--
Mr. Lindsay Morris
Mr. Lindsay Morris
Certified: AIX,ADSM, TSM, HACMP,SP
Gresham Enterprise Storage
lmorris AT openmic DOT com
606-253-8000