All pastes #383546 Raw Edit

Untitled

public text v1 · immutable
·published 2007-03-06 13:34 UTC
rendered paste body
jericho kfullert # mt -f /dev/nst0 status
SCSI 2 tape drive:
File number=0, block number=0, partition=0.
Tape block size 0 bytes. Density code 0x41 (DLT 40GB).
Soft error count since last status=0
General status bits on (41010000):
 BOT ONLINE IM_REP_EN
jericho kfullert # btape -c /etc/bacula/bacula-sd.conf /dev/nst0
Tape block granularity is 1024 bytes.
btape: butil.c:286 Using device: "/dev/nst0" for writing.
btape: btape.c:368 open device "DLT80" (/dev/nst0): 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:825 Wrote 1000 blocks of 64412 bytes.
btape: btape.c:499 Wrote 1 EOF to "DLT80" (/dev/nst0)
btape: btape.c:841 Wrote 1000 blocks of 64412 bytes.
btape: btape.c:499 Wrote 1 EOF to "DLT80" (/dev/nst0)
btape: btape.c:850 Rewind OK.
06-Mar 13:33 btape: btape Error: block.c:317 Volume data error at 0:130!
Block checksum mismatch in block=130 len=64448: calc=4070e781 blk=622488fc
btape: btape.c:862 Read block 131 failed! ERR=Input/output error
*quit
jericho kfullert # mt -f /dev/nst0 status
SCSI 2 tape drive:
File number=0, block number=131, partition=0.
Tape block size 0 bytes. Density code 0x41 (DLT 40GB).
Soft error count since last status=0
General status bits on (1010000):
 ONLINE IM_REP_EN
jericho kfullert #