Re: [Bacula-users] Error block.c:995
2008-07-15 09:49:37
Javier Rodriguez wrote:
> Hello again.
>
> Yes,this is an autochanger.
> My bacula version is 2.2.8.
> The tape was loaded before the error message and worked previously the
> last backup.
>
> These were the previous messages:
>
> 14-jul 22:00 servfich-dir JobId 73: Start Backup JobId 73,
> Job=Backup_de_Trabajo_Diario.2008-07-14_22.00.40
> 14-jul 22:00 servfich-dir JobId 73: There are no more Jobs associated
> with Volume "A0000001". Marking it purged.
> 14-jul 22:00 servfich-dir JobId 73: All records pruned from Volume
> "A0000001"; marking it "Purged"
> 14-jul 22:00 servfich-dir JobId 73: Recycled volume "A0000001"
> 14-jul 22:00 servfich-sd JobId 73: 3307 Issuing autochanger "unload
> slot 5, drive 0" command.
> 14-jul 22:04 servfich-dir JobId 73: Using Device "Driver1"
> 14-jul 22:04 servfich-sd JobId 73: 3301 Issuing autochanger "loaded?
> drive 0" command.
> 14-jul 22:04 servfich-sd JobId 73: 3302 Autochanger "loaded? drive 0",
> result: nothing loaded.
> 14-jul 22:04 servfich-sd JobId 73: 3304 Issuing autochanger "load slot
> 1, drive 0" command.
> 14-jul 22:04 servfich-sd JobId 73: 3305 Autochanger "load slot 1,
> drive 0", status is OK.
> 14-jul 22:04 servfich-sd JobId 73: 3301 Issuing autochanger "loaded?
> drive 0" command.
> 14-jul 22:04 servfich-sd JobId 73: 3302 Autochanger "loaded? drive 0",
> result is Slot 1.
> 14-jul 22:04 servfich-sd JobId 73: Error: block.c:995 Read error on
> fd=6 at file:blk 0:0 on device "Driver1" (/dev/nst0). ERR=Input/output
> error.
> 14-jul 22:04 servfich-sd JobId 73: Error: block.c:995 Read error on
> fd=6 at file:blk 0:0 on device "Driver1" (/dev/nst0). ERR=Input/output
> error.
> 14-jul 22:04 servfich-sd JobId 73: Error: block.c:995 Read error on
> fd=6 at file:blk 0:0 on device "Driver1" (/dev/nst0). ERR=Input/output
> error.
> 14-jul 22:04 servfich-sd JobId 73: Error: block.c:995 Read error on
> fd=6 at file:blk 0:0 on device "Driver1" (/dev/nst0). ERR=Input/output
> error.
> 14-jul 22:04 servfich-sd JobId 73: Error: block.c:995 Read error on
> fd=6 at file:blk 0:0 on device "Driver1" (/dev/nst0). ERR=Input/output
> error.
> 14-jul 22:04 servfich-sd JobId 73: Please mount Volume "A0000001" or
> label a new one for:
> Job: Backup_de_Trabajo_Diario.2008-07-14_22.00.40
> Storage: "Driver1" (/dev/nst0)
> Pool: LunesPool
> Media type: VXA-X23
>
> Thanks
>
> --- El *mar, 15/7/08, John Drescher /<drescherjm AT gmail DOT com>/* escribió:
>
> De: John Drescher <drescherjm AT gmail DOT com>
> Asunto: Re: [Bacula-users] Error block.c:995
> Para: ungue79 AT yahoo DOT es, "baculausers"
> <Bacula-users AT lists.sourceforge DOT net>
> Fecha: martes, 15 julio, 2008 9:38
>
> On Tue, Jul 15, 2008 at 2:45 AM, Javier Rodriguez <ungue79 AT yahoo DOT
> es>
> wrote:
> > Hello.
> >
> > Im having the next errors some days a week when a backup job have to be
> > done.
> > ...
> > 14-jul 22:04 servfich-sd JobId 73: Error: block.c:995 Read error on fd=6
> at
> > file:blk 0:0 on device "Driver1" (/dev/nst0). ERR=Input/output
> error.
> > 14-jul 22:04 servfich-sd JobId 73: Please mount Volume
> "A0000001" or label a
> > new one for:
> > Job: Backup_de_Trabajo_Diario.2008-07-14_22.00.40
> > Storage: "Driver1" (/dev/nst0)
> > Pool: LunesPool
> > Media type: VXA-X23
> >
> > It get solved by typing unmount and next mount, in spite of the correct
> > volume is in the drive.
> >
> > I've
> reading a lot of posts, but anyone solves my problems.
> >
> > I need your help. Thanks in advance.
> >
> Is this an autochanger? What version of bacula are you using? Was
> A0000001 the tape loaded before the Error message? If so has this tape
> been used before?
>
> John
>
Sorry, I caught these out of order. It looks like you are using a VXA
drive. In another post someone said that Exabyte states that it can
take up to 20 minutes for a VXA drive to load a tape. I have personally
experienced around 10 minute loads This is what I did to fix my load
problems on Ubuntu with a VXA drive.
To fix the ubuntu problem
Change the case function in mtx-changer to (this should be in v2.4.1):
OS=`uname`
case ${OS} in
SunOS)
ready="No Additional Sense"
;;
FreeBSD)
ready="Current Driver State: at rest."
;;
Linux)
ready="ONLINE"
if test -f /etc/debian_version ; then
mt --version|grep "mt-st" >/dev/null 2>&1
if test $? -eq 1 ; then
ready="drive status"
fi
fi
;;
esac
To fix the vxa load time edit wait_for_drive to increase its timeout:
wait_for_drive() {
i=0
while [ $i -le 300 ]; do # Wait max 25 minutes
if mt -f $1 status 2>&1 | grep "${ready}" >/dev/null 2>&1; then
break
fi
debug "Device $1 - not ready, retrying...in 5 seconds"
sleep 5
i=`expr $i + 5`
done
}
In your sd.conf add the following to your tape Device:
Maximum Changer Wait = 1800 #30 minutes
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
|
|