Bacula-users

Re: [Bacula-users] The famous "ERR=Input/output error"

2011-08-23 14:34:15
Subject: Re: [Bacula-users] The famous "ERR=Input/output error"
From: Martin Simmons <martin AT lispworks DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Tue, 23 Aug 2011 19:31:47 +0100
>>>>> On Tue, 23 Aug 2011 10:48:39 -0300, Rodrigo Ferraz said:
> 
> Hi everyone
> 
> We have been facing this issue for a long time, so any help or insight will 
> be greatly appreciated.
> 
> Bacula seem to be working just fine, with the exception of these two 
> situations below:
> 
> 1) Bacula cannot reposition the tape and continue using it after it is 
> unmounted. If the tape stays mounted for the whole week, for example, all 
> daily backups work fine.
> 2) Restore jobs work ok, but always with the "ERR=Input/output" error (log 
> below)

Do the commands below work without errors when a Bacula tape is in the drive?
(stop the bacula-sd first)

mt -f /dev/nst0 rewind
mt -f /dev/nst0 fsf 32768
mt -f /dev/nst0 rewind
mt -f /dev/nst0 eod



> I'm mentioning these situations because they are certainly related to how 
> bacula-sd is configured. There must be something wrong with our 
> bacula-sd.conf file, but I can assure you that we are using exactly as 
> suggested by btape test. Here it is:
> 
> Device {
>   Name = LTO-3
>   Drive Index = 0
>   Autochanger = no
>   Archive Device = /dev/nst0
>   Maximum Changer Wait = 3d
>   AutomaticMount = yes
>   AlwaysOpen = yes
>   Media Type = LTO-3
>   RemovableMedia = yes
>   Offline On Unmount = no
>   Spool Directory = /var/lib/bacula/spool
>   Maximum Spool Size = 35gb
>   RandomAccess = no
>   LabelMedia = yes
>   #Hardware End of Medium = No
>   #Fast Forward Space File = No
>   Two EOF = no
>   BSF at EOM = no
> }
> 
> And here is the restore job log showing the problem:
> 
> 23-Aug 10:14 br01 JobId 1396: Start Restore Job 
> RestoreFiles.2011-08-23_10.14.27_36
> 23-Aug 10:14 br01 JobId 1396: Using Device "LTO-3"
> 23-Aug 10:14 br01 JobId 1396: Ready to read from volume "M082011" on device 
> "LTO-3" (/dev/nst0).
> 23-Aug 10:14 br01 JobId 1396: Forward spacing Volume "M082011" to file:block 
> 289:0.
> -->23-Aug 10:16 br01 JobId 1396: Error: block.c:1002 Read error on fd=5 at 
> file:blk 290:0 on device "LTO-3" (/dev/nst0). ERR=Input/output error.
> 23-Aug 10:16 br01 JobId 1396: End of Volume at file 290 on device "LTO-3" 
> (/dev/nst0), Volume "M082011"
> 23-Aug 10:16 br01 JobId 1396: End of all volumes.

Is file 290 the expected end of this backup (look in the jobmedia for the
original jobid).

__Martin

------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users