[net.wanted.sources] something better than "dump W"?

sundar@mit-hermes.ARPA ((Hand Hacker)) (07/21/85)

Hi:
I would like to know if someone has a program to remind administrators
when dumps are due. I know about "dump W", which can be run via
crontab every night, but I am looking for something slightly more
intelligent than that. (Something which has the Tower of Hanoi
algorithm programmed in it, so that the reminder would contain dump
levels needed on that day for the different file systems). Is there
something like this available ?
Thanks in advance.
_Sundar(sundar@mit-hermes.arpa)
p.s I would prefer if the program were customizable.. or better yet,
a completely automatic dump program.. but then....

rlr@avsdS.UUCP (Rhode L. Roberts) (07/24/85)

> I would like to know if someone has a program to remind administrators
> when dumps are due.  (Something which has the Tower of Hanoi
> algorithm programmed in it, so that the reminder would contain dump
> levels needed on that day for the different file systems).
> something like this available ?
>
> _Sundar(sundar@mit-hermes.arpa)
> p.s I would prefer if the program were customizable.. or better yet,
> a completely automatic dump program.. but then....

We run a modified Tower of Hanoi dump "script" every day.
It knows what level dump to perform and also which sets of
tape(s) to use.  Following are excerpts from the man page;

admp \- automatic dump scheduler
/etc/admp

Admp calculates which level, and which set of tape(s) should be
dumped for any given day, then calls the dump (8) command.

Admp maintains a record of which tape sets of any given level
dump will be used, in the /etc/admp_array file.  This file
passes information to admp every time admp is called.

The schedule implemented calls for a level "0" dump on the
first monday of any month.  All other monday's of the month
will dump at level "1."  Tuesday's through Friday's are dumped
at levels 3,2,5 and 4 respectivley.

Admp is will detect if any of the level "0" or "1" dumps have
been skipped, ( due to holidays, or neglect ), and will perform a
level "0" dump if one has not been done this month, or perform a
level "1" dump if one has not been done this week, providing that
a level "0" dump has been done this month.

Here is a graghic layout of the present dump schedule when done
every day. The series of tapes for levels "1" through "5" rotate
every week.  Level "0" series of tapes rotate every month.

+---------------------------------------------------------------------+
|        |  1st   |any other| tuesday | wednesday | thursday | friday |
|  day   | monday | monday  |  every  |  every    |  every   |  every |
|        |of month|of month |  week   |  week     |  week    |  week  |
|--------|--------|---------|---------|-----------|----------|--------|
| level  |   0    |   1     |    3    |     2     |    5     |   4    |
|--------|--------|---------|---------|-----------|----------|--------|
| series | 1 to 3 | 1 to 7  |  1 to 3 |   1 to 3  |  1 to 3  | 1 to 3 |
+---------------------------------------------------------------------+

Admp prompts the operator with a question to whether calculations for
tape usage should be done.  This is recommended for level "1" dumps,
and may vary according to disc usage for the lesser level dumps.

Admp calculates actual tape usage via dump to /dev/null, by grepping
for the actual blocks that dumped.  The method used for arriving at
the tape usage is much more acurate than the one used by dump for
estimating usage.

Calculating tape usage is as "cpu intensive" as is the dump, but,
shows the actual usage rather than an estimate.  Also, calculating
tape usage does not take into consideration "inter-record gaps".

----

The script can be varied for the devices and or levels to be dumped.
It can be hacked to run run crontab, but we prefer to oversee it
just in case Murphy drops in.  It serves us fairly well.

If you mail to me I will send you the script and the man page.


	R.L. Roberts
	...{ucbvax}!atd!rlr@avsdS
	Ampex Corporation   (One of the Signal Companies)
	Audio Video Systems Division
	Redwood City, Calif.

liberte@uiucdcs.Uiuc.ARPA (07/25/85)

This may not be what you wanted, but I have a script to direct remote
incremental dumps automatically.  Called by cron on one machine with
a large, empty partition, it figures out which of several machines
need a weekly incremental dump and which were missed last time around.
Then it starts a remote dump on those machines.  After the weeklies,
all machines get a daily incremental dump.  Another script called
by an operator in the morning copies the dumps to tape.  Errors of most
kinds are caught and mailed to the administrator.

Dan LaLiberte
liberte@uiucdcs.Uiuc.ARPA
ihnp4!uiucdcs!liberte
{ A dump a day keeps the dumpster away }