From: David K. <xd...@li...> - 2005-11-03 13:10:46
|
> Could you send the output anyway? Your problem is not making sense unless you > missed messages from Bacula that say that it is recycling your Volume and > that all prior data will be lost. This is something that should be in your > job reports, and if it isn't, it means something is going wrong with tape > positioning. Here is a typical job output: 30-Oct 01:05 web-dir: Start Backup JobId 331, Job=web.natur.cuni.cz.2005-10-30_01.05.00 30-Oct 01:16 web-dir: Bacula 1.36.3 (22Apr05): 30-Oct-2005 01:16:12 JobId: 331 Job: web.natur.cuni.cz.2005-10-30_01.05.00 Backup Level: Differential, since=2005-10-02 01:05:02 Client: web-fd FileSet: "Full Set" 2005-05-18 10:51:45 Pool: "Default" Storage: "DDS-4" Start time: 30-Oct-2005 01:05:02 End time: 30-Oct-2005 01:16:12 FD Files Written: 29,584 SD Files Written: 29,584 FD Bytes Written: 3,925,107,707 SD Bytes Written: 3,929,386,130 Rate: 5858.4 KB/s Software Compression: None Volume name(s): web Volume Session Id: 7 Volume Session Time: 1130324993 Last Volume Bytes: 114,692,476,979 Non-fatal FD errors: 0 SD Errors: 0 FD termination status: OK SD termination status: OK Termination: Backup OK 30-Oct 01:16 web-dir: Begin pruning Jobs. 30-Oct 01:16 web-dir: No Jobs found to prune. 30-Oct 01:16 web-dir: Begin pruning Files. 30-Oct 01:16 web-dir: Pruned 316 Files from 2 Jobs for client web-fd from catalog. 30-Oct 01:16 web-dir: End auto prune. There was never anything about recycling volumes, but there is variable number of pruned files. Does it mean something in this context ? And here follows the output from "btape /dev/nsa0" command, issuing "test": # btape /dev/nsa0 Tape block granularity is 1024 bytes. btape: butil.c:258 Using device: "/dev/nsa0" for writing. btape: btape.c:335 open_dev /dev/nsa0 OK *test === Write, rewind, and re-read test === I'm going to write 1000 records and an EOF then write 1000 records and an EOF, then rewind, and re-read the data to verify that it is correct. This is an *essential* feature ... btape: btape.c:786 Wrote 1000 blocks of 64412 bytes. btape: btape.c:465 Wrote 1 EOF to /dev/nsa0 btape: btape.c:802 Wrote 1000 blocks of 64412 bytes. btape: btape.c:465 Wrote 1 EOF to /dev/nsa0 btape: btape.c:465 Wrote 1 EOF to /dev/nsa0 btape: btape.c:811 Rewind OK. 1000 blocks re-read correctly. Got EOF on tape. 1000 blocks re-read correctly. === Test Succeeded. End Write, rewind, and re-read 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:898 Wrote 1000 blocks of 64412 bytes. btape: btape.c:465 Wrote 1 EOF to /dev/nsa0 btape: btape.c:914 Wrote 1000 blocks of 64412 bytes. btape: btape.c:465 Wrote 1 EOF to /dev/nsa0 btape: btape.c:465 Wrote 1 EOF to /dev/nsa0 btape: btape.c:923 Rewind OK. Reposition to file:block 0:4 Block 5 re-read correctly. Reposition to file:block 0:200 Block 201 re-read correctly. Reposition to file:block 0:999 Block 1000 re-read correctly. Reposition to file:block 1:0 Block 1001 re-read correctly. Reposition to file:block 1:600 Block 1601 re-read correctly. Reposition to file:block 1:999 Block 2000 re-read correctly. === Test Succeeded. End Write, rewind, and re-read test === === Append files test === This test is essential to Bacula. I'm going to write one record in file 0, two records in file 1, and three records in file 2 btape: btape.c:435 Rewound /dev/nsa0 btape: btape.c:1505 Wrote one record of 64412 bytes. btape: btape.c:1507 Wrote block to device. btape: btape.c:465 Wrote 1 EOF to /dev/nsa0 btape: btape.c:1505 Wrote one record of 64412 bytes. btape: btape.c:1507 Wrote block to device. btape: btape.c:1505 Wrote one record of 64412 bytes. btape: btape.c:1507 Wrote block to device. btape: btape.c:465 Wrote 1 EOF to /dev/nsa0 btape: btape.c:1505 Wrote one record of 64412 bytes. btape: btape.c:1507 Wrote block to device. btape: btape.c:1505 Wrote one record of 64412 bytes. btape: btape.c:1507 Wrote block to device. btape: btape.c:1505 Wrote one record of 64412 bytes. btape: btape.c:1507 Wrote block to device. btape: btape.c:465 Wrote 1 EOF to /dev/nsa0 btape: btape.c:465 Wrote 1 EOF to /dev/nsa0 btape: btape.c:335 open_dev /dev/nsa0 OK btape: btape.c:435 Rewound /dev/nsa0 btape: btape.c:1052 Now moving to end of medium. btape: btape.c:482 Moved to end of medium. We should be in file 3. I am at file 3. This is correct! Now the important part, I am going to attempt to append to the tape. btape: btape.c:1505 Wrote one record of 64412 bytes. btape: btape.c:1507 Wrote block to device. btape: btape.c:465 Wrote 1 EOF to /dev/nsa0 btape: btape.c:465 Wrote 1 EOF to /dev/nsa0 btape: btape.c:435 Rewound /dev/nsa0 Done appending, there should be no I/O errors Doing Bacula scan of blocks: 1 block of 64448 bytes in file 1 End of File mark. 2 blocks of 64448 bytes in file 2 End of File mark. 3 blocks of 64448 bytes in file 3 End of File mark. 1 block of 64448 bytes in file 4 End of File mark. Total files=4, blocks=7, bytes = 451,136 End scanning the tape. We should be in file 4. I am at file 4. This is correct! The above Bacula scan should have output identical to what follows. Please double check it ... === Sample correct output === 1 block of 64448 bytes in file 1 End of File mark. 2 blocks of 64448 bytes in file 2 End of File mark. 3 blocks of 64448 bytes in file 3 End of File mark. 1 block of 64448 bytes in file 4 End of File mark. Total files=4, blocks=7, bytes = 451,136 === End sample correct output === If the above scan output is not identical to the sample output, you MUST correct the problem or Bacula will not be able to write multiple Jobs to the tape. Skipping read backwards test because BSR turned off. === Forward space files test === This test is essential to Bacula. I'm going to write five files then test forward spacing btape: btape.c:435 Rewound /dev/nsa0 btape: btape.c:1505 Wrote one record of 64412 bytes. btape: btape.c:1507 Wrote block to device. btape: btape.c:465 Wrote 1 EOF to /dev/nsa0 btape: btape.c:1505 Wrote one record of 64412 bytes. btape: btape.c:1507 Wrote block to device. btape: btape.c:1505 Wrote one record of 64412 bytes. btape: btape.c:1507 Wrote block to device. btape: btape.c:465 Wrote 1 EOF to /dev/nsa0 btape: btape.c:1505 Wrote one record of 64412 bytes. btape: btape.c:1507 Wrote block to device. btape: btape.c:1505 Wrote one record of 64412 bytes. btape: btape.c:1507 Wrote block to device. btape: btape.c:1505 Wrote one record of 64412 bytes. btape: btape.c:1507 Wrote block to device. btape: btape.c:465 Wrote 1 EOF to /dev/nsa0 btape: btape.c:1505 Wrote one record of 64412 bytes. btape: btape.c:1507 Wrote block to device. btape: btape.c:1505 Wrote one record of 64412 bytes. btape: btape.c:1507 Wrote block to device. btape: btape.c:465 Wrote 1 EOF to /dev/nsa0 btape: btape.c:1505 Wrote one record of 64412 bytes. btape: btape.c:1507 Wrote block to device. btape: btape.c:465 Wrote 1 EOF to /dev/nsa0 btape: btape.c:465 Wrote 1 EOF to /dev/nsa0 btape: btape.c:435 Rewound /dev/nsa0 btape: btape.c:1266 Now forward spacing 1 file. We should be in file 1. I am at file 1. This is correct! btape: btape.c:1278 Now forward spacing 2 files. We should be in file 3. I am at file 3. This is correct! btape: btape.c:435 Rewound /dev/nsa0 btape: btape.c:1291 Now forward spacing 4 files. We should be in file 4. I am at file 4. This is correct! btape: btape.c:1309 Now forward spacing 1 more file. We should be in file 5. I am at file 5. This is correct! === End Forward space files test === * So what I should do yet ? Do you mind if I send you my config files privately ? Thanks, David |