>>>>> On Tue, 10 Oct 2006 00:35:30 +0200, Clement Hermann (nodens) said:
> 
> Hi,
> 
> I'm running an old installation of bacula 1.34 on a server.
> 
> I need to get data from old tapes. I tried with bscan and bls, but I can
> only list jobs with bls, not files, and bscan fails to read the tape.
> 
> I tried a more recent version of bacula (1.38) but the results are similar.
> 
> Here are the output I gather from both versions of bls and bscan :
> 
> bscan 1.34 :
> 
> bscan -h localhost -n bacula_restore_7 -P'***' -h localhost -s -v -V
> "PV-122T.001" /dev/nst0
> bscan: butil.c:147 Using device: /dev/nst0 for reading.
> bscan: Ready to read from volume "PV-122T.002" on device /dev/nst0.
> bscan: bscan.c:255 Using Database: bacula_restore_7, User: bacula
> bscan: bscan.c:357 Pool record for Default found in DB.
> bscan: bscan.c:371 Pool type "Backup" is OK.
> bscan: bscan.c:773 Created Media record for Volume: PV-122T.002
> bscan: bscan.c:398 Media type "LTO-2" is OK.
> bscan: bscan.c:408 VOL_LABEL: OK for Volume: PV-122T.002
> bscan: bscan.c:835 Created Client record for Client: studiocanal-fd
> bscan: bscan.c:918 Created new JobId=721 record for original JobId=73
> bscan: bscan Fatal error: Error scanning attributes:
> bscan: ERROR TERMINATION at bscan.c:577
> Cannot continue.
> 
> 
> 
> bscan 1.38 :
> 
> /root/bacula/bacula-1.38.11/src/stored/bscan -h localhost -n
> bacula_restore -P'****' -h localhost -s -v -V "PV-122T.001" /dev/nst0
> bscan: butil.c:269 Using device: "/dev/nst0" for reading.
> 09-Oct 23:58 bscan: 3301 Issuing autochanger "loaded drive 0" command.
> 09-Oct 23:58 bscan: 3302 Autochanger "loaded drive 0", result is Slot 3.
> 09-Oct 23:58 bscan: Ready to read from volume "PV-122T.002" on device
> "PV-122T" (/dev/nst0).
> bscan: acquire.c:200 jcr->dcr=0x8167b08
> bscan: bscan.c:281 Using Database: bacula_restore, User: bacula
> bscan: bscan.c:418 Pool record for Default found in DB.
> bscan: bscan.c:432 Pool type "Backup" is OK.
> bscan: bscan.c:850 Created Media record for Volume: PV-122T.002
> bscan: bscan.c:460 Media type "LTO-2" is OK.
> bscan: bscan.c:469 VOL_LABEL: OK for Volume: PV-122T.002
> bscan: bscan.c:912 Created Client record for Client: studiocanal-fd
> bscan: bscan.c:995 Created new JobId=721 record for original JobId=73
> 09-Oct 23:58 bscan: ERROR TERMINATION at bscan.c:652
> Record header file index 1 not equal record index 0
> 
> bls 1.34 :
> 
> # bls -V "PV-122T.001" /dev/nst0
> bls: butil.c:146 Using device: /dev/nst0 for reading.
> bls: Ready to read from volume "PV-122T.001" on device /dev/nst0.
> bls: bls Fatal error: Error scanning attributes:
> bls: ERROR TERMINATION at bls.c:356
> Cannot continue.
> 
> bls 1.38 :
> 
> # /root/bacula/bacula-1.38.11/src/stored/bls -V "PV-122T.001" /dev/nst0
> bls: butil.c:269 Using device: "/dev/nst0" for reading.
> 09-Oct 23:02 bls: 3301 Issuing autochanger "loaded drive 0" command.
> 09-Oct 23:02 bls: 3302 Autochanger "loaded drive 0", result is Slot 2.
> 09-Oct 23:02 bls: Ready to read from volume "PV-122T.001" on device
> "PV-122T" (/dev/nst0).
> bls: acquire.c:200 jcr->dcr=0x813a120
> 09-Oct 23:02 bls: ERROR TERMINATION at bls.c:372
> Record header file index 1 not equal record index 0
> 
> any clue ?

You could try running bls with the -d 200 option to get some debugging into,
but it looks like the data was not written correctly on the tape.

__Martin

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to