On Monday 28 November 2005 19:15, Jonas Mixter wrote: > Hi... It just struck me that it might be useful to know the output of > the test-command in btape from the old machine. ;-) > > btape passes the "Write, rewind, and re-read test" but failes on the > "Write, rewind, and position test" > > === Write, rewind, and position test === > > I'm going to write 1000 records and an EOF > then write 1000 records and an EOF, then rewind, > and position to a few blocks and verify that it is correct. > > This is an *essential* feature ... > > btape: btape.c:869 Wrote 1000 blocks of 64412 bytes. > btape: btape.c:442 Wrote 1 EOF to /dev/nst0 > btape: btape.c:885 Wrote 1000 blocks of 64412 bytes. > btape: btape.c:442 Wrote 1 EOF to /dev/nst0 > btape: btape.c:894 Rewind OK. > Reposition to file:block 0:4 > btape: btape Error: block.c:266 Volume data error! Wanted block-id BB02, > got . Buffer discarded. > btape: btape.c:945 Read block failed! ERR=Input/output error > > Why is it that I can this old machine could do both backup and restore? > I find it quite strange that it doesn't fail when doing restores...
Probably because the restore didn't require any block level repositioning. By the way, in my previous email, I think I confused you with someone else having the same problem. So please read the end of the restore chapter even if I didn't previously ask you to do so ... > > Best regards, Jonas Mixter > > On 2005-11-28 17:25, Jonas Mixter wrote: > > Hi again... > > Thanks for your quick answer! I understand the details of my problem > > better now... > > I do have some more questions though. > > > >>>28-Nov 14:42 bscan: bscan Error: block.c:264 Volume data error at 0:1! > >>>Wanted ID: "BB02", got "". Buffer discarded. > >>> > >>>...and then bscan exits. > >> > >>You should try running the btape "test" command. > > > > I've tested my drive when installing this new machine, but ran the > > command again just to be sure. It says all is OK... > > > > I also ran the command on the old machine and it failed! > > I've been using this installation for over a year so I cannot recall > > if I ever ran the bscan test when installing (probably not I'm > > afraid). I can both backup and restore on the old machine though... > > (Tried to restore some files from one of the old tape a few minutes > > ago, all went fine.) > > > >>>All the old tapes are written using bacula 1.34.2 (or perhaps an even > >>>older version) and I'm now using 1.36.2 (shipped with Debian). > >>>Is there a difference in the format on the tapes? > >> > >>No, not that I am aware of. However, Bacula does set your tape drive to > >>variable block format if that is what your Device statement specifies, > >>whereas 1.34.2 does not do that. Depending on how your machine > >> initializes the tape drive, this could create some incompatibilities ... > >> The manual goes into these questions in more detail and suggests some > >> ways of dealing with it. > > > > I read http://bacula.org/rel-manual/Testing_Your_Tape_Drive.html and > > wonder if I could see if variable or fixed blocksize were used on the > > old machine. I also wonder if I could specify a fixed blocksize in > > bacula-sd.conf to be able to restore from the old tapes. > > I cannot change the bootstrap file as suggested since the volume is > > not in the catalog. I need to use bscan to get it into the catalog > > first... > > > > Are my old tapes useless or is there any way to use them on the new > > machine? > > > > If it's not possible to read the tapes on the new machine, is it a > > workable solution to use bcopy to get the data into a file on the old > > machine and then copy it all back to tape on the new machine? > > > > Best regards, Jonas Mixter -- Best regards, Kern ("> /\ V_V ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users