I am battling a consistent error when attempting to write multiple jobs to a single tape drive, no autochanger. Most of the jobs are migrations from primary disk backup to archival tape. New tapes work fine. Appending to a tape that has not been unmounted works fine. Where I run into problems is if I unmount a tape that has space available and then remount it. I always get this error:
Tape1-SD JobId 66012: Error: Unable to position to end of data on device "Tape1" (/dev/nst0): ERR=backends/generic_tape_device.cc:223 ioctl MTIOCGET error on "Tape1" (/dev/nst0). ERR=Success.
Not a huge deal but I am wasting alot of tape space if I have to put in a new tape. The tape drives are HP LTO-6. I am assuming I have a device configuration issue, but I am not sure where to look. Below is my Tape config.
Any suggestions would be appreciated.
Device {
Name = Tape1
Media Type = LTO-6
Archive Device = /dev/nst0
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
AutoChanger = no;
Minimum block size = 1048576;
Maximum block size = 4M;
Maximum File Size = 20GB;
LabelMedia = yes; # lets Bareos label unlabeled media
Random Access = no;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = yes;
AlwaysOpen = yes;
Maximum Spool Size = 150GB;
Description = "Tape Drive #1."
}