Bacula-users

Re: [Bacula-users] End of Tape errors with HP LTO-4 drive on Linux

2010-04-21 04:50:17
Subject: Re: [Bacula-users] End of Tape errors with HP LTO-4 drive on Linux
From: Robert Oschwald <roos AT symentis DOT com>
To: Norberto Meijome <numardbsd AT gmail DOT com>
Date: Wed, 21 Apr 2010 10:47:56 +0200

Norberto,

if we rewind manually, the same problem occurs.
Bacula was not writing during reboot (reboot was during the day, all backup jobs run during the night, duplicates occur approx. at 11PM)
Currently, the Drive only works if we leave the tape as_is during backups (we remove the tape weekly).
But if the tape is rewinded somhow (reboot or manually), bacula seems not to find the EOF marker.
As said, we already try with TWO EOF = yes, but this doesn't help.

Tape drive is a single HP StorageWorks Ultrium 1760 SAS drive.

This tape drive worked on BackupExec on the same hw without any problem, so I think it is a bacula-sd or config problem.
Here is the tape definition we use:

# LTO-4 tape drive
Device {
  Name = LTO-4
  Media Type = LTO-4
  Archive Device = /dev/nst0
  LabelMedia = yes;                   # let Bacula label unlabeled media
  RandomAccess = no;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = yes;
  # this avoids shoe shining
  Spool Directory = /B2D/bacula-spool
  # release tape if not used
  AlwaysOpen = no;
  Maximum File Size = 5GB
  # need to specify for Alert Command. Use sg1 as sg0 is Raid Controller
  Changer Device = /dev/sg1
  # AutoChanger = yes
  # Try for tape errors on reboot (eof marker not found). Bacula doc states this is for BSD Unix.
  TWO EOF = yes
  Alert Command = "sh -c 'smartctl -H -l error %c'"
}

Robert

Am 21.04.2010 um 10:33 schrieb Norberto Meijome:

On 14 April 2010 16:32, Robert Oschwald <roos AT symentis DOT com> wrote:
Bacula works perfectly so far.
The only serious problem I have is End of Tape detection.
E.g. if I need to reboot the backup server, the current tape will be rewinded.
The next backup job then seems not to find the end of the last backup and the tape will be set to Error state:

14-Apr 04:00 bacula-sd JobId 925: Volume "Weekly1" previously written, moving to end of data.
14-Apr 04:23 bacula-sd JobId 925: Error: Unable to position to end of data on device "LTO-4" (/dev/nst0): ERR=dev.c:954 ioctl MTEOM error on "LTO-4" (/dev/nst0). ERR=Input/output error.
14-Apr 04:23 bacula-sd JobId 925: Marking Volume "Weekly1" in Error in Catalog.


I already tried playing with  TWO EOF = yes/no with no luck.

Any ideas?

Robert,
did you solve this? What tape / library are you using? We are just about to start using a number of LTO4 drives,so this will be something we'd want to test.

btw, what happens if you rewind the tape manually? (ie, unmount @ bacula, mt -f /dev/nst0 rewind && mtx -f /dev/xxx unload x, then load in bacula again.

Is bacula writing while the reboot happens?

cheers,
B
_________________________
{Beto|Norberto|Numard} Meijome

"The only people that never change are the stupid and the dead"
 Jorge Luis Borges.

I speak for myself, not my employer. Contents may be hot. Slippery when wet.
Reading disclaimers makes you go blind. Writing them is worse. You have been
Warned.


------------------------------------------------------------------------------
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>