Subject: bacula-sd config for NetBSD & LTO-1
To: None <email@example.com>
From: john heasley <firstname.lastname@example.org>
Date: 02/26/2006 16:31:17
Has anyone come-up with a bacula-sd recipe for a LTO-1 drive on NetBSD?
st0 at scsibus0 target 5 lun 0: <SEAGATE, ULTRIUM06242-XXX, 1608> tape removable
st0: density code 0, 512-byte blocks, write-enabled
st0: sync (50.00ns offset 16), 16-bit (40.000MB/s) transfers
Name = TAPE0
Drive Index = 0
Media Type = LTO-1
Archive Device = /dev/nrst0
AutomaticMount = yes; # look for bacula label after opening the device
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
AutoChanger = no;
# Enable the Alert command only if you have the mtx package loaded
#Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
# NetBSD Specific Settings
Offline On Unmount = no
Hardware End of Medium = no
Fast Forward Space File = yes
BSF at EOM = yes
TWO EOF = no
Backward Space Record = yes
Which differs from the manual's suggested FreeBSD config in these options:
#Backward Space Record = no
#Fast Forward Space File = no
#TWO EOF = yes
The first does not seem to be a problem, given the output below. I am not
sure about the following two [and bfill takes a _long_ time to run].
Anyway, btest succeeds, but bfill fails in trying to append a block after
the tape EOM. I admit to not understanding why it expects to be able to
write after the end of the tape.
25-Feb 19:09 btape: End of Volume "" at 106:7886 on device "TAPE0" (/dev/nrst0). Write of 64512 bytes got 0.
25-Feb 19:10 btape: Re-read of last block succeeded.
Write failed at block 1650886.
25-Feb 19:10 btape: Fatal Error at dev.c:1519 because:
dev.c:1518 Attempt to WEOF on non-appendable Volume
btape: btape.c:465 Bad status from weof -1. ERR=dev.c:1518 Attempt to WEOF on non-appendable Volume
btape: btape.c:438 Rewound "TAPE0" (/dev/nrst0)
Bacula status: file=0 block=0
Device status: file=0 block=0
btape: btape.c:1759 Device status: 1. ERR=dev.c:1518 Attempt to WEOF on non-appendable Volume