Because netBackup will assign out of the scratch pool into any pool that
needs it, you can use the scratch_pool as the "low water mark". The
previous administrator here had modified the available_media script in
goodies under 3.2GA to provide a summary of all pools. I've just tried the
same thing on a test basis in our 3.4.1 environment and it still works. (He
was also bugged by how slow it ran so he added some code to cache the output
better. I haven't done anything with that yet :-)
Basically near the end of the available_media script, add a section like:
...
/bin/echo "" >>/tmp/avail_media_sorted_output
fi
done
# ------------ Section added to add summary info GBO Sept 20, 2002
/bin/echo "Summary:"
/bin/echo ""
/bin/echo "#Media Pool Type State"
/bin/echo "------ ---------- ---------- -----"
/usr/bin/nawk '{
if ( $2 == "pool" ) pool = substr($1" ",1,10)
if ( NF == 9 ) s[pool" "substr($2" ",1,10)" "$9]++
}
END {
for (state in s)
printf("%6d %s\n",s[state],state)
}' /tmp/avail_media_sorted_output | sort +1
# ------------ End of Section added to add summary info GBO Sept 20, 2002
/bin/echo
"media${TAB}media${TAB}robot${TAB}robot${TAB}robot${TAB}side/${TAB}ret
size${TAB}status"
...
I copied a few of the existing lines so you know where it can be inserted.
We have a Solaris environment, your mileage may vary, your next upgrade will
overwrite this script etc.
If you graph the number of tapes in the scratch_pool you'll get a steadily
decreasing line. (At best flat, since NetBackup never puts any tapes back in
:-)
But one thing is different here: Our shop doesn't keep ANY images forever
:-)
I hope this helps....Gerrit
"Weber, Philip" wrote:
> > Dear all,
> >
> > Is there a way in which I can see how much space I have left across the
> > tapes within my robot. Since we have started keeping some backups for
> > ever, and also adding in some new servers, we have started getting 96's
> > (out of tapes) far too regularly (not surprising really). We can
> > reactively swap in some new tapes but it would be nice to get advance
> > warning ...
> >
> thanks, Phil
>
> > Phil Weber
> > IT Infrastructure Unix Systems Engineer
> >
> > Phone: 01384 26 4136
> > Mobile: n/a
> >
> >
>
> This private and confidential e-mail has been sent to you by Egg.
> The Egg group of companies includes Egg Banking plc
> (registered no. 2999842), Egg Financial Products Ltd (registered
> no. 3319027) and Egg Investments Ltd (registered no. 3403963) which
> carries out investment business on behalf of Egg and is regulated
> by the Financial Services Authority.
> Registered in England and Wales. Registered offices: 1 Waterhouse Square,
> 138-142 Holborn, London EC1N 2NA.
> If you are not the intended recipient of this e-mail and have
> received it in error, please notify the sender by replying with
> 'received in error' as the subject and then delete it from your
> mailbox.
>
> _______________________________________________
> Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
> http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
|