I would do the following (google for exact commands)
BTW I would personally relabel them, but I use encryption managed by bareos in
the tape drive. Also I think bareos tape labels are different than other
software, so the label on the media cannot be reused, (I think)
Shutdown the SD, to be safe eject any tapes you don’t want to be purged.
If your library understands mtx us it to get a list of slots.
Make a script that itterates over every tape (if you have two drives split
into two lists to speed up)
use mt to weof to each tape and just loop through them.
eg. (verify working from memory)
sg0 is the library
sg1 is the first drive (lsscsi -g) May want to use the /dev/nst* devices
instead.
for x in $(cat /tmp/slots)
do
echo “Loading slot $x"
mtx -f /dev/sg0 load $x 0
# write end of file at start of tape taking out old data/label
mt -f /dev/sg1 rewind
mt -f /dev/sg1 weof
mt -f /dev/sg1 rewind
echo “Ejecting drive 0 to slot $x
mtx -f /dev/sg0 unload 0 $x
done
Finally when all done in bareos
update slots
label pool=Scratch barcodes encrypt yes
Verify all my syntax/do a test run with a single tape, it will be slow but
should work.
Brock Palen
1 (989) 277-6075
[email protected]
www.mlds-networks.com
Websites, Linux, Hosting, Joomla, Consulting
> On Dec 3, 2019, at 5:45 AM, Adam Podstawka <[email protected]> wrote:
>
> Hi,
>
> i have a little problem, we build a new backup system and wanted to use
> our old tapes in it. But the tapes are all labeled already through the
> old system.
> An "label barcodes" doesn't add them to the pool, as they are already
> labeld.
> i can't get to work an "echo 'add pool=Scratch volumename=000001L6' |
> bconsole", but i don't want to mount all tapes and delete the
> label/empty them to be able to use them in the new system.
>
> Any hints? AS this are like 300 tapes, and doing "add" in bconsole by
> hand will take to long.
>
> Thanks
> Adam
>
> --
> Adam Podstawka
>
> --
> You received this message because you are subscribed to the Google Groups
> "bareos-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/bareos-users/0025900e-29cd-a635-dc6b-fa0e83748941%40dsmz.de.
--
You received this message because you are subscribed to the Google Groups
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/bareos-users/D112BEBC-EBC0-4991-8AC9-68432871AD9A%40mlds-networks.com.