Bacula-users

[Bacula-users] Relabel steps due to block size change

2012-06-07 13:48:11
Subject: [Bacula-users] Relabel steps due to block size change
From: "Clark, Patricia A." <clarkpa AT ornl DOT gov>
To: "bacula-users AT lists.sourceforge DOT net" <bacula-users AT lists.sourceforge DOT net>
Date: Thu, 7 Jun 2012 13:46:10 -0400
There was a thread in January of 2012 discussing how to get tapes that are 
already labeled with a block size that is too small, usually the default 64K, 
to be relabeled in order to be the new block size set in bacula-sd.conf.  One 
of the recommendations was to erase the tape.  Since I had almost 200 LTO-5 
tapes already labeled and otherwise empty, the erase time per tape runs approx. 
3 hours.  No joy here.  I've worked it out and found the following bconsole 
commands to do the job and fairly quickly.  Relabel will not permit the use of 
the same label, so I just relabeled twice, removed the L5 designator the first 
time and reapplied it the second time.  If someone knows of a better approach, 
I'm all ears.  I just thought that I'd share something that does work.  I have 
not tried it with a tape containing data.

mount storage=changer drive=0 slot=170
update volume="076999L5" volstatus="Recycle"
relabel storage=changer oldvolume="076999L5" volume="076999" pool="Scratch" 
drive="0" slot=170
update volume="076999" volstatus="Recycle"
relabel storage=changer oldvolume="076999" volume="076999L5" pool="Scratch" 
drive="0" slot=170
unmount storage=changer drive=0

Patti Clark
Information International Associates, Inc.
Linux Administrator and subcontractor to:
Research and Development Systems Support Oak Ridge National Laboratory


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>