Bacula-users

Re: [Bacula-users] Please mount volume

2008-12-09 17:59:43
Subject: Re: [Bacula-users] Please mount volume
From: kshatriyak AT gmail DOT com
To: bacula-users AT lists.sourceforge DOT net
Date: Tue, 9 Dec 2008 23:57:51 +0100
> Might be. Currently I try to restart everything every day before the
> backup is supposed to start, and I have the impression that it fails less
> likely.

Today I restarted my server completely and the tape didn't get mounted 
either.

I've tried (in bconsole) :

update slots
mount (then I choose Autochanger, then slot 1 (where the tape resides)):

       2: Autochanger
Select Storage resource (1-2): 2
Enter autochanger slot: 1
3001 OK mount. Device="AIT4-1" (/dev/nst0)

The tape remained in slot 1 (i've checked the status seperately with:

# mtx -f /dev/sg0 status

to be sure.

Then, on the command prompt, I manually entered the command:

# /usr/local/bacula/etc/mtx-changer /dev/sg0 load 1 /dev/nst0 0

The tape got loaded, I've tried the command 'mount' in Bacula again, and 
bacula started writing to the tape.

Before this command, the tape wasn't accessed or used at all so it can't 
be that the tape was busy. Also, in my mtx-changer script i've put sleep 
60 everywhere now to ensure that a busy drive can't make problems (which 
was my first thought).

So it looks there is a bug in Bacula, on some condition, Bacula doesn't 
execute the mtx-changer command. The only problem is to find on which 
condition, because sometimes the backup just runs fine...

The first thing I'll do now is to let the mtx-changer program write a 
timestamp to a file, so I know for sure the mtx-changer program doesn't 
get executed at all, before I post this to the bacula-bugs database.

K.



------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
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>