Bacula-users

Re: [Bacula-users] help with getting volumes in the catalog

2009-02-12 21:28:43
Subject: Re: [Bacula-users] help with getting volumes in the catalog
From: John Drescher <drescherjm AT gmail DOT com>
To: Steve Hood <scubasteve95123 AT gmail DOT com>
Date: Thu, 12 Feb 2009 21:26:20 -0500
On Thu, Feb 12, 2009 at 9:11 PM, Steve Hood <scubasteve95123 AT gmail DOT com> 
wrote:
> I'm no afraid of some work.
>
>>From memory there are two approaches to solve this (someone correct me
if I am wrong Please!).

In both options stop bacula-sd before proceeding and you can start it
again after this procedure completes.
The first is to wipe the label on each tape:

Basically use mtx or the autochanger controls to load each tape one by
one and do the following two commands to erase the label from the
tape:

mt -f /dev/st0 rewind
mt -f /dev/st0 weof

replace /dev/st0 with your tape device if it is different.

There is a discussion of this here:
http://www.mail-archive.com/bacula-users AT lists.sourceforge DOT 
net/msg16850.html

This method will erase the label so that label barcodes will be able
to put a new label on each tape.


Now the second is to scan the tapes and import them back into the catalog:

http://www.bacula.org/en/dev-manual/Volume_Utility_Tools.html#SECTION003970000000000000000

bscan -s -m -c bacula-sd.conf -v -V Vol001\|Vol002\|Vol003 /dev/nst0

And in your case the volumes will be B27715\|B27687\|B27684\|B27679

Dont forget the \ before the |


This will read all data that was written to these tapes so it can take
a long time.

With this option you do not want to label barcodes after it is done.

John

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users