Bacula-users

Re: [Bacula-users] Move content of a volume to another volume

2017-01-06 02:51:15
Subject: Re: [Bacula-users] Move content of a volume to another volume
From: Uwe Schuerkamp <uwe.schuerkamp AT nionex DOT net>
To: Lukas Hejtmanek <xhejtman AT ics.muni DOT cz>
Date: Fri, 6 Jan 2017 08:49:49 +0100
On Thu, Jan 05, 2017 at 06:36:10PM +0100, Lukas Hejtmanek wrote:
> On Thu, Jan 05, 2017 at 05:14:38PM +0100, Uwe Schuerkamp wrote:
> > Hm, if you have an error on the tape, how are you going to recover the
> > data off of it? Or are you saying that you have a tape volume in
> > status "Error" within your bacula setup?
> 
> the tape has write error, so I suppose it is still readable..
> 
> -- 
> Lukáš Hejtmánek

If you have enough disk space you could try rescuing the data using dd
or cat and creating a replacement volume like this (tape in /dev/st0):

<stop bacula processes>

cat /dev/st0 > /big_file_system/tapedata.dat

mtx unload

<remove old tape>

<insert new tape>

mtx load <slot number>
mt -f /dev/st0 rewind
mt -f /dev/st0 weof # probably unnecessary for a new tape

cat /big_file_system/tapedata.dat >/dev/st0

I have no idea if this would work, but a verbatim copy of the data
on a new tape should be accepted by bacula just fine.

All the best, Uwe 



-- 
Uwe Schürkamp | email: <uwe.schuerkamp AT nionex DOT net>






------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users