Kern Sibbald wrote:
> Below are a few guesses. They are a large part guesses because you didn't 
> specify enough information: please see the Support page on the web site.

My mistake.

System Information:

Server:    Dell PowerEdge 2650
OS:        CentOS 3.6 (fully updated)
SCSI Card: LSI Logic / Symbios Logic LSI8952U
Tape Unit: Dell PowerVault 132T with LTO-2 drive
Bacula:    1.36.3 (RHEL3 SQLite RPM built by D. Scott Barninger)

Tapeinfo output:

what: /etc/bacula $ tapeinfo -f /dev/sg4
Product Type: Tape Drive
Vendor ID: 'IBM     '
Product ID: 'ULTRIUM-TD2     '
Revision: '333K'
Attached Changer: No
SerialNumber: '1110010956'
MinBlock:1
MaxBlock:16777215
SCSI ID: 3
SCSI LUN: 0
Ready: yes
BufferedMode: yes
Medium Type: 0x18
Density Code: 0x40
BlockSize: 0
DataCompEnabled: yes
DataCompCapable: yes
DataDeCompEnabled: yes
CompType: 0x1
DeCompType: 0x1
Block Position: 2

Tape stoptions settings:

st1: Mode 0 options: buffer writes: 1, async writes: 1, read ahead: 1
st1:    can bsr: 0, two FMs: 0, fast mteom: 0, auto lock: 0,
st1:    defs for wr: 0, no block limits: 0, partitions: 0, s2 log: 0
st1:    sysv: 0 nowait: 0


> I suspect that perhaps you forgot to run the btape test command before using 
> your tape or perhaps you are using an old Bacula that didn't perform the 
> append test.

I did not forget.  I ran the btape test successfully on this drive
before putting it into production.  I just re-ran it and include the
output at the end of this message.

> The mismatch appears to be because your Device resource is not 
> suitable for your drive.  

It has worked for several days, switching tapes and appending jobs
nightly to back up data to two different tape pools.  I was also able to
successfully restore files from the Monthly-0004 volume yesterday.

> The output from bscan indicates quite a number of 
> problems as well, so the usefulness of the tape is questionable.

*nod*  I saw those.  Perhaps the tape itself is failing.

--[Lance]


Ouput of  'btape /dev/nst1':

what:/etc/bacula $ btape /dev/nst1
Tape block granularity is 1024 bytes.
btape: butil.c:258 Using device: "/dev/nst1" for writing.
btape: btape.c:335 open_dev /dev/nst1 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/nst1
btape: btape.c:802 Wrote 1000 blocks of 64412 bytes.
btape: btape.c:465 Wrote 1 EOF to /dev/nst1
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/nst1
btape: btape.c:914 Wrote 1000 blocks of 64412 bytes.
btape: btape.c:465 Wrote 1 EOF to /dev/nst1
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/nst1
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/nst1
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/nst1
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/nst1
btape: btape.c:335 open_dev /dev/nst1 OK
btape: btape.c:435 Rewound /dev/nst1
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/nst1
btape: btape.c:435 Rewound /dev/nst1
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.


=== Write, backup, and re-read test ===

I'm going to write three records and an EOF
then backup over the EOF and re-read the last record.
Bacula does this after writing the last block on the
tape to verify that the block was written correctly.

This is not an *essential* feature ...

btape: btape.c:435 Rewound /dev/nst1
btape: btape.c:665 Wrote first record of 64412 bytes.
btape: btape.c:676 Wrote second record of 64412 bytes.
btape: btape.c:687 Wrote third record of 64412 bytes.
btape: btape.c:465 Wrote 1 EOF to /dev/nst1
btape: btape.c:703 Backspaced over EOF OK.
btape: btape.c:708 Backspace record OK.
btape: btape.c:726
Block re-read correct. Test succeeded!
=== End Write, backup, and re-read test ===



=== 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/nst1
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/nst1
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/nst1
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/nst1
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/nst1
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/nst1
btape: btape.c:435 Rewound /dev/nst1
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/nst1
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 ===


Ah, I see you have an autochanger configured.
To test the autochanger you must have a blank tape
 that I can write on in Slot 1.

Do you wish to continue with the Autochanger test? (y/n): y


=== Autochanger test ===

3301 Issuing autochanger "loaded" command.
Slot 7 loaded. I am going to unload it.
3302 Issuing autochanger "unload 7 0" command.
unload status=OK 0
3303 Issuing autochanger "load slot 1 0" command.
3303 Autochanger "load slot 1 0" status is OK.
btape: btape.c:335 open_dev /dev/nst1 OK
btape: btape.c:1196 Rewound /dev/nst1
btape: btape.c:1203 Wrote EOF to /dev/nst1

The test autochanger worked!!

*quit


-- 
Lance A. Brown
Senior Systems Programmer
ISDS, Duke University


-------------------------------------------------------
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://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to