Press return when the prompt appears.

On Wednesday 24 August 2005 22:06, Jeremy Melanson wrote:
> Hello all.
>
> I'm trying to run a btape "fill" test, and keep getting the same
> message.
>
> The message returned is something similar to the following:
> Warning: Requested Volume "TestVolume1" on /dev/st0 is not a Bacula
> labeled Volume, because: ERR=block.c:793 Read zero bytes at 0:0 on
> device /dev/st0.
> 24-Aug 09:04 btape: btape Error: mount.c:485 Hey!!!!! WroteVol
> non-zero !!!!!
>
> It then prompts me to insert a blank volume.
>
> I have tried using different tapes, as well as performing an 'mt erase'
> on them prior to testing, with no change.
>
> I have an Exabyte VXA-2 1x10 PacketLoader, attached to an Adaptec 2940UW
> card. The machine is running Linux kernel version 2.6.11.10 on a
> Debian/Testing installation, with Bacula 1.36.3 (installed from
> Debian-repository packages - 1.36.3-1). I've verified both the changer
> and drive work properly with a couple commercial packages, and using tar
> to read and write to the tape works as well.
>
> Has anyone seen this before, or something similar? Am I doing something
> wrong? I've searched the archives for btape issues, but have come up
> empty-handed in relation to this particular problem.
>
> I've attached the output of my btape session, as well as info
> from /proc/scsi/scsi and the Device section of my bacula-sd.conf below.
>
> I appreciate all the help I can get! :-)
>
> -----
> Jeremy
>
>
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> btape -c ./bacula-sd.conf /dev/st0:
>
> Tape block granularity is 1024 bytes.
> btape: butil.c:258 Using device: "/dev/st0" for writing.
> btape: btape.c:335 open_dev /dev/st0 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/st0
> btape: btape.c:802 Wrote 1000 blocks of 64412 bytes.
> btape: btape.c:465 Wrote 1 EOF to /dev/st0
> 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/st0
> btape: btape.c:914 Wrote 1000 blocks of 64412 bytes.
> btape: btape.c:465 Wrote 1 EOF to /dev/st0
> 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/st0
> 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/st0
> 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/st0
> 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/st0
> btape: btape.c:335 open_dev /dev/st0 OK
> btape: btape.c:435 Rewound /dev/st0
> 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/st0
> btape: btape.c:435 Rewound /dev/st0
> 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/st0
> 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/st0
> 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/st0
> 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/st0
> 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/st0
> 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/st0
> 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/st0
> 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/st0
> btape: btape.c:435 Rewound /dev/st0
> 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/st0
> 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): n
>
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>
> *fill
>
> This command simulates Bacula writing to a tape.
> It requires either one or two blank tapes, which it
> will label and write.
>
> If you have an autochanger configured, it will use
> the tapes that are in slots 1 and 2, otherwise, you will
> be prompted to insert the tapes when necessary.
>
> It will print a status approximately
> every 322 MB, and write an EOF every 3.2 GB.  If you have
> selected the simple test option, after writing the first tape
> it will rewind it and re-read the last block written.
>
> If you have selected the multiple tape test, when the first tape
> fills, it will ask for a second, and after writing a few more
> blocks, it will stop.  Then it will begin re-reading the
> two tapes.
>
> This may take a long time -- hours! ...
>
> Do you want to run the simplified test (s) with one tape
> or the complete multiple tape (m) test: (s/m) m
> Multiple tape test selected.
> 24-Aug 09:04 btape: btape Warning: Requested Volume "TestVolume1"
> on /dev/st0 is not a Bacula labeled Volume, because: ERR=block.c:793
> Read zero bytes at 0:0 on device /dev/st0.
> 24-Aug 09:04 btape: btape Error: mount.c:485 Hey!!!!! WroteVol
> non-zero !!!!!
> Mount blank Volume on device /dev/st0 and press return when ready:
>
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> cat /proc/scsi/scsi:
>
> Attached devices:
> Host: scsi2 Channel: 00 Id: 00 Lun: 00
>   Vendor: EXABYTE  Model: VXA 1x10 1U      Rev: A108
>   Type:   Medium Changer                   ANSI SCSI revision: 04
> Host: scsi2 Channel: 00 Id: 01 Lun: 00
>   Vendor: EXABYTE  Model: VXA-2            Rev: 2104
>   Type:   Sequential-Access                ANSI SCSI revision: 02
>
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> bacula-sd.conf Device:
>
> Device {
> Name = "Exabyte_Library"
> Media Type = "VXA2"
> Archive Device = /dev/st0
> Random Access = no
> Changer Device = /dev/sg2
> uChanger Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
> Alert Command = "sh -c 'tapeinfo -f %c | grep TapeAlert|cat'"
> Spool Directory = /var/spool/bacula
> Maximum Spool Size = 5G
> Maximum Job Spool Size = 1G
> AutoChanger = yes
> Label Media = no
> Automatic Mount = yes
> Always Open = yes
> Removable Media = yes
> }
>
>
>
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
Best regards,

Kern

  (">
  /\
  V_V


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to