So maybe nobody does anything clever. I don’t either.
But it occurs to me that I could at least do a cronjob weekly (or whatever
frequency you need),
in case I forget to log in with at least that frequency, to do
mtx -f /dev/changer status
Then I would get an email, and would see when the current tape is nearing the
end of
the tapes in the library (the place where the numbers go discontiguous). You
would have
to know where your tape rota ends (the example below ends at 156 and 101
starts to get re-used).
This is a mock up:
If the current tape (as shown below) is 102 then there is only one more
usable tape
loaded, 103, before I run out of tapes.
Storage Changer /dev/changer:4 Drives, 48 Slots ( 0 Import/Export )
Data Transfer Element 0:Full (Storage Element 18 Loaded):VolumeTag = 102
Data Transfer Element 1:Empty
Data Transfer Element 2:Empty
Data Transfer Element 3:Empty
Storage Element 1:Full :VolumeTag=141
Storage Element 2:Full :VolumeTag=142
Storage Element 3:Full :VolumeTag=143
Storage Element 4:Full :VolumeTag=144
Storage Element 5:Full :VolumeTag=145
Storage Element 6:Full :VolumeTag=146
Storage Element 7:Full :VolumeTag=147
Storage Element 8:Full :VolumeTag=148
Storage Element 9:Full :VolumeTag=149
Storage Element 10:Full :VolumeTag=150
Storage Element 11:Full: VolumeTag=151
Storage Element 12:Full :VolumeTag=152
Storage Element 13:Full :VolumeTag=153
Storage Element 14:Full :VolumeTag=154
Storage Element 15:Full :VolumeTag=155
Storage Element 16:Full :VolumeTag=156 << NOT a
discontiguity; tape rota ends here
Storage Element 17:Full :VolumeTag=101
Storage Element 18:Empty
Storage Element 19:Full :VolumeTag=103 << numbers go
discontinuous; tapes need to be changed
Storage Element 20:Full :VolumeTag=120 it
should have been done much earlier
Storage Element 21:Full :VolumeTag=121 (and
would have; this is a mock up!!)
Storage Element 22:Full :VolumeTag=122
Storage Element 23:Full :VolumeTag=123
Storage Element 24:Full :VolumeTag=124
Storage Element 25:Full :VolumeTag=125
Storage Element 26:Full :VolumeTag=126
Storage Element 27:Full :VolumeTag=127
Storage Element 28:Full :VolumeTag=128
Storage Element 29:Full :VolumeTag=129
Storage Element 30:Full :VolumeTag=130
Storage Element 31:Full :VolumeTag=131
Storage Element 32:Full :VolumeTag=132
Storage Element 33:Full :VolumeTag=133
Storage Element 34:Full :VolumeTag=134
Storage Element 35:Full :VolumeTag=135
Storage Element 36:Full :VolumeTag=136
Storage Element 37:Full :VolumeTag=137
Storage Element 38:Full :VolumeTag=138
Storage Element 39:Full :VolumeTag=139
Storage Element 40:Full :VolumeTag=140
Is my example clear ?
All I’ve done is a status on the changer, and made you read the results.
But it might be helpful.
Deb Baddorf
Fermilab
On Feb 15, 2015, at 9:49 AM, Stefan G. Weichinger <[email protected]> wrote:
>
> How do you all handle refilling your library's magazines?
>
> It would helpful to be notified when the library holds less than N
> reusable tapes (or $tapes for N runs). Not every library holds all the
> tapes configured for one config and amanda shouldn't run out of reusable
> tapes on saturday ...
>
> Is there a clever way to do it with amanda's own tools or does it need a
> helper script?
>
> Thanks for any examples, Stefan