-------- Original-Nachricht -------- Betreff: Re: [Bacula-users] How to read a writeprotected Tape ? Datum: Fri, 22 Apr 2005 09:33:29 +0200 Von: Marc Brueckner <[EMAIL PROTECTED]> An: Martin Simmons <[EMAIL PROTECTED]> Referenzen: <[EMAIL PROTECTED]>
Martin Simmons schrieb:
Hi Martin. Thank you for your advise but bcopy also refuses to read from a write protected media.On Thu, 21 Apr 2005 17:04:27 +0200, Marc Brueckner <[EMAIL PROTECTED]> said:
Marc> Hi there,
Marc> I am running Bacula in a productive environment for almost two year now Marc> and I am totally happy with it.
Marc> Now I have a little problem an perhaps one of you can help me.
Marc> (For now this is a hypothetical question.) Marc> I need to restore a backup from a write protected tape. Marc> Bacula won't mount a write protected tape. bextract or bscan neither.
Marc> "So switch off the write protect of your tape !" some one would say.
Marc> The answer is " I can't" because the hardware protects the tape from Marc> being written.
Marc> The tape was written by a DLT VS80 Streamer, now I ve upgraded to a DLT Marc> VS160.
Marc> If I insert a VS80 written tape its automaticly read-only. So if my VS80 Marc> streamer dies on day I have no chance
Marc> to read the tapes by Bacula.
Marc> I already tryed to dd if=/dev/st0 of=/tmp/tape.dump and tryed to Marc> bextract from the filedevice.
Marc> btape then is able to read the label but bextract terminates with errors.
Marc> Backup:/etc/bacula # bextract /tmp/ISLBHV_Woche_0 /restore
Marc> bextract: butil.c:151 Using device: /tmp for reading.
Marc> bextract: Ready to read from volume "ISLBHV_Woche_0" on device /tmp.
Marc> bextract: bextract Error: block.c:248 Expected block-id BB01 or BB02, Marc> got . Buffer discarded.
Marc> bextract: bextract Error: block.c:248 Expected block-id BB01 or BB02, Marc> got . Buffer discarded.
Marc> bextract: bextract Error: Read error on Record Header /tmp: Success
Marc> 0 files restored.
Marc> I would be happy to have a solution because if my VS80 dies I will need it.
You need to use bcopy to copy from a Bacula tape to disk.
bscan: butil.c:151 Using device: /dev/nst0 for reading.
bscan: Fatal Error at dev.c:267 because:
dev.c:261 stored: unable to open device /dev/nst0: ERR=Read-only file system
bscan: Fatal Error at device.c:275 because:
dev open failed: dev.c:261 stored: unable to open device /dev/nst0: ERR=Read-only file system
bscan: bcopy Fatal error: butil.c:105 Cannot open /dev/nst0
I will try out Kerns advice
Greetings Marc
__Martin
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users