ADSM-L

Re: Macro & Schedule

1996-06-13 13:36:39
Subject: Re: Macro & Schedule
From: Daniel GERLIC <GERLIC AT CC.IN2P3 DOT FR>
Date: Thu, 13 Jun 1996 17:36:39 SET
On Wed, 12 Jun 1996 09:36:08 PDT "Andrew M. Raibeck" said:
>Daniel Gerlic asks:
>
>>Is it possible to schedule a macro for ADMINISTRATIVE commands ??
>>
>>I don't see anything like this in the documentation (although
>>scheduling a macro for client commands does exist!).
>>I tried, but couldn't.
>>
>>My aim is to make periodic backups of the storage pools and of the
>>datebase. Writing and scheduling macros could help.
>
>No, you can not use the Admin scheduler to schedule a macro. Please see
>my post from earlier this morning on there, as I suggested a potential
>workaround to scheduling admin macros.
>
>IMPORTANT CAVEAT: I do not recommend trying to use macros to schedule
>backup of your storage pools and database. I would suggest executing
>these functions in the following order:
>
>   1) Back up you storage pools
>   2) Update the volumes to change the access to OFFSITE for your
>      newly-created copy storage pool volumes
>   3) Back up your database
>   4) Back up your devconfig and volume history files (external to
>      ADSM)
>
>These functions should run in sequence, not concurrently. If you tried to
>pack all of this in with your macro (excluding #4, which is external to
>ADSM), you'd have all the processes in #1 - 3 running at the same time.
>This is incorrect. So macros aren't the solution, anyway.
>
>I recommend you monitor the time it takes for these activities to run
>and schedule them accordingly, adding a little spare time between events
>(i.e. the "fudge factor").

  Andy,

  Thank you for the reply. I'll not use such macros, of course.
  Instead, I'll try to avoid any concurrence among the many actions.

  Suppose now I want a accurate monitoring of all those events:

   * what is the best way for an action to be executed only when it is
     time to, i.e. the preceding action has COMPLETED, with SUCCESS.
     For it seems to me that completion of an action may be hard to detect.

     For example: some actions may emit a message like
        'process nnn has started'
     but this process_number may not appear further to indicate completion
     or failure of the process.

     Or there is no message (except maybe in the activity log, or on the
     console, which are to be consulted) to give pertinent info, if some
     problem occurs.

     I can't understand why this number is not put systematically.
     And I think there is a lack of return codes or messages for the admin
     to manage.

   Thanks in advance, D.Gerlic

>
>Andy Raibeck
>ADSM Level 2 Support

                              Daniel GERLIC
+---------------------------------------------------------------------+
|CC_IN2P3, 27 Bld du 11 Novembre, F69622 VILLEURBANNE Cedex, FRANCE   |
|Tel +33 78 93 08 80   Fax +33 78 94 30 54   email:gerlic AT cc.in2p3 DOT fr |
+---------------------------------------------------------------------+
<Prev in Thread] Current Thread [Next in Thread>