How big will tonight's dump be
Don Speck
mangler at csvax.caltech.edu
Thu Feb 9 05:44:11 AEST 1989
Bugs in your script to estimate dump sizes:
DENS should be *bytes* per inch, not bits.
"echo yes | /etc/dump" is meaningless, because dump doesn't read stdin;
it opens /dev/tty.
killing the first "dump" pid presented by "ps" may leave some
processes running (depending on the sort order of "ps"; all
but one "dump" process will be ignoring interrupts, and
there's a narrow window where ALL of them ignore interrupts)
or (worse) it may kill processes dumping another disk.
Try this instead:
set `(/etc/dump ${LEVEL}fds - $DENS $SIZE $FILSYS | exit) 2>&1 | grep estimate`
which causes dump to exit with a write error. $3 gets set to the number
of kilobytes, $7 is the number of tapes.
Either approach seems very crude, and leads me to wonder at the real goal
behind this. Are you trying to calculate how many filesystems fit on one
tape? The minimum dump level that will fit on one tape? Whether you have
enough tapes to proceed?
More information about the Comp.sys.sun
mailing list