OS: FreeBSD-4.11
tape drive: Onstream ADR50 SCSI External

well I am having a really hard time finding an onstream configuration that
will work with my onstream Tape drive.  I upgraded my FreeBSD OS now so I am
running a new kernel to end all the pthreads hassles.

I start off with the recommended start FreeBSD configuration and btape results
with a failure.  Then I moved on to the Linux Onstream configuration but I get
 an error frmo btape.

I sent the initial tape drive setup urn from a shell specified for FreeBSD
which I would post but the bacula web link is not working.

--- snip ---

# A FreeBSD tape drive
#
Device {
  Name = Onstream
  Description = "Onstream on FreeBSD"
  Media Type = Onstream
  Archive Device = /dev/sa0
#  Minimum Block Size = 32768
#  Maximum Block Size = 32768
  AutomaticMount = yes;               # when device opened, read it
  AlwaysOpen = yes
  Offline On Unmount = no
  Hardware End of Medium = no
  BSF at EOM = yes
  Backward Space Record = no
  Fast Forward Space File = no
  TWO EOF = yes
}

--- snip ---

okay here is the btape failure:

--- snip ---

=== Forward space files test ===

...


18-Apr 08:05 btape: Fatal Error at dev.c:1195 because:
dev.c:1194 Attempt to WEOF on non-appendable Volume
btape: btape.c:462 Bad status from weof -1. ERR=dev.c:1194 Attempt to WEOF on
non-appendable Volume

btape: btape.c:435 Rewound /dev/sa0
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/sa0
btape: btape.c:1291 Now forward spacing 4 files.
We should be in file 4. I am at file 3. This is NOT correct!!!!

The forward space file test failed.
You must correct this error or Bacula will not work.

--- snip ---


bacula linux configuration:

--- snip ---

Device {
  Name = OnStream
  Description = "OnStream drive on FreeBSD"
  Media Type = OnStream
  Archive Device = /dev/sa0
  AutomaticMount = yes;               # when device opened, read it
  AlwaysOpen = yes
  Offline On Unmount = no
# The min/max blocksizes of 32768 are *required*
  Minimum Block Size = 32768
  Maximum Block Size = 32768
}

--- snip ---

and btape output

--- snip ---

=== 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/sa0
btape: btape.c:1505 Wrote one record of 32668 bytes.
btape: btape.c:1507 Wrote block to device.
btape: btape.c:465 Wrote 1 EOF to /dev/sa0
btape: btape.c:1505 Wrote one record of 32668 bytes.
btape: btape.c:1507 Wrote block to device.
btape: btape.c:1505 Wrote one record of 32668 bytes.
btape: btape.c:1507 Wrote block to device.
btape: btape.c:465 Wrote 1 EOF to /dev/sa0
btape: btape.c:1505 Wrote one record of 32668 bytes.
btape: btape.c:1507 Wrote block to device.
btape: btape.c:1505 Wrote one record of 32668 bytes.
btape: btape.c:1507 Wrote block to device.
btape: btape.c:1505 Wrote one record of 32668 bytes.
btape: btape.c:1507 Wrote block to device.
btape: btape.c:465 Wrote 1 EOF to /dev/sa0
btape: btape.c:335 open_dev /dev/sa0 OK
btape: btape.c:435 Rewound /dev/sa0
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 4. This is NOT correct!!!!


That appears *NOT* to have corrected the problem.

Append test failed.


!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Unable to correct the problem. You MUST fix this
problem before Bacula can use your tape drive correctly

Perhaps running Bacula in fixed block mode will work.
Do so by setting:

Minimum Block Size = nnn
Maximum Block Size = nnn

in your Storage daemon's Device definition.
nnn must match your tape driver's block size, which
can be determined by reading your tape manufacturers
information, and the information on your kernel dirver.
Fixed block sizes, however, are not normally an ideal solution.

--- snip ---


clues please?

cheers,

Noah



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to