Hello,

On 2/22/2007 2:05 PM, Mair Wolfgang-awm013 wrote:
> Yes it is opensuse 10.2
> 
> And strangely it is working again. I executed the debug command as you
> suggested. With this command everything worked again. Then I tried to
> start it as usual with the start scripts and it worked as well. :-S
> 
> So what to do with this???

Move slowly, don't talk loud, in general do everything to not disturbe 
your backup system ;-)

> The problem came up, while I was restoring, the daily incremental backup
> started. 
> 
> The backup failed with the message:
> Fatal error: job.c:1752 Bad response to Append Data command. Wanted 3000
> OK data , got 3903 Error append data
> 
> The restore was still running but at a slow rate. Half of the incr
> backup ran fine. Then everything stuck. I am using File as storage
> device. What happens if a backup and restore runs at the same time?
> Could this cause an issue?

Definitely.

> Today I tried it again. This time it did not hang but all incr backups
> failed with the above error message as long as the restore ran. 

You run 2.0.2, right?

There should not be such issues - at least here, the device reservation 
does work correctly. But then, I don't think I had a restore running 
when a scheduled backup job started for a very long time, definitely not 
since 2.0 is released.

 From your description in your last mail, everything looks like the 
concurrent backup and restore are the key to understanding what happens.

You should be aware that Bacula can NOT access a volume for reading and 
writing at the same time; while it's possible for disk based volumes, it 
is impossible for tapes, and for Bacula, all volumes behave like tapes 
(kind of).

Normally, Bacula would notice that a volume or storage device is used 
for reading and will not try to write to it. Instead, the new jobs 
should be queued and appear with a status of "waiting for device" or 
similar.

Can you show  us the 'status storage' and 'status dir' output from a 
time where a restore runs and a backup is scheduled, and when the 
restore runs, the scheduled backup has been started, and everything 
seems to hang?

Arno

> Wolfgang
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Arno
> Lehmann
> Sent: Wednesday, February 21, 2007 21:06
> To: bacula-users@lists.sourceforge.net
> Subject: Re: [Bacula-users] Jobs hang at waiting on max Storage jobs
> 
> Hi,
> 
> On 2/21/2007 8:47 PM, Mair Wolfgang-awm013 wrote:
> 
>>Hi,
>>
>>Got another isse.
>>
>>Openlinux 10.2
> 
> 
> Probably OpenSUSE, right? But that's not important now, I think. IIRC,
> that OS version should be most reliable because Kern developed on it :-)
> 
> 
>>and bacula 2.0.2. I'm using files as storage device. And this config 
>>was already running for a few days.
>>
>>Storage daemon suddenly stopped working during an incremental backup.
>>Now the console gives me a 'waiting on max Storage jobs' 
>>
>>After restarting storag, director and even rebooting the systems. It 
>>still came up with that hung jobs. Then I canceled them. And started a
> 
> 
>>new job. Which resulted in the same result. It hangs waiting for the 
>>storage.
> 
> 
> Interesting.
> 
> 
>>This is very strange, while a status director gives me that 'waiting 
>>on max Storage jobs', the storage daemon is idle:
> 
> 
> If that happens after restarting all deamons, or even the system,
> something's broken.
> 
> Try running the daemons with debug output enabled and captured (like
> 'bacula-dir -d 400 -c /etc/... >> /var/log/bacula-dir.log') and try to
> reproduce it. Also, creating a backtrace of the programs could help the
> developers. If you're unfamiliar with gdb (like me) you can use the
> btraceback script.
> 
> If you can reproduce this probem, it should be reported at
> bugs.bacula.org, I think.
> 
> Arno
> 
> 
>>*stat dir
>>ford-dir Version: 2.0.2 (28 January 2007) i686-pc-linux-gnu suse 10.2 
>>Daemon started 21-Feb-07 19:34, 48 Jobs run since started.
>> Heap: bytes=220,881 max_bytes=15,092,481 bufs=1,143 max_bufs=1,631
>>
>>Scheduled Jobs:
>>Level          Type     Pri  Scheduled          Name
>>Volume
>>======================================================================
>>==
>>===========
>>Full           Backup    11  21-Feb-07 23:10    BackupCatalog
>>full-21-2-2007.23
>>Incremental    Backup    10  22-Feb-07 20:00    prinz
>>incr-19-2-2007.12
>>====
>>
>>Running Jobs:
>> JobId Level   Name                       Status
>>======================================================================
>>   195 Increme  rover.2007-02-21_20.40.45 is waiting on max Storage 
>>jobs ==== .
>>.
>>.
>>
>>
>>
>>*stat stor
>>Automatically selected Storage: File
>>Connecting to Storage daemon File at prinz:9103
>>
>>prinz-sd Version: 2.0.2 (28 January 2007) i686-pc-linux-gnu suse 10.2 
>>Daemon started 21-Feb-07 20:32, 0 Jobs run since started.
>> Heap: bytes=11,970 max_bytes=75,816 bufs=60 max_bufs=62
>>
>>Running Jobs:
>>No Jobs running.
>>====
>>
>>Jobs waiting to reserve a drive:
>>====
>>
>>Terminated Jobs:
>> JobId  Level    Files      Bytes   Status   Finished        Name 
>>===================================================================
>>   173  Incr         14    318.7 K  OK       21-Feb-07 20:06 dragon
>>   169  Incr         23    143.0 K  OK       21-Feb-07 20:07 benetton
>>====
>>
>>Device status:
>>Device "FileStorage" (/export/bacula-dump) is not open.
>>====
>>
>>In Use Volume status:
>>====
>>
>>*
>>
>>----------------------------------------------------------------------
>>--- Take Surveys. Earn Cash. Influence the Future of IT Join 
>>SourceForge.net's Techsay panel and you'll get the chance to share 
>>your opinions on IT & business topics through brief surveys-and earn 
>>cash 
>>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEV
>>DEV _______________________________________________
>>Bacula-users mailing list
>>Bacula-users@lists.sourceforge.net
>>https://lists.sourceforge.net/lists/listinfo/bacula-users
> 
> 

-- 
IT-Service Lehmann                    [EMAIL PROTECTED]
Arno Lehmann                  http://www.its-lehmann.de

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to