Bacula-users

Re: [Bacula-users] Multi client multy storaje multy job configuration

2012-03-24 12:33:26
Subject: Re: [Bacula-users] Multi client multy storaje multy job configuration
From: Adrian Reyer <bacula-lists AT lihas DOT de>
To: Anton Nikiforov <anton AT nikiforov DOT ru>
Date: Sat, 24 Mar 2012 17:30:41 +0100
On Sat, Mar 24, 2012 at 12:08:36PM +0400, Anton Nikiforov wrote:
> (all 4 storages have different adresses and run on different machines)
> Each client should be backed up on each storage. So i have jobs for that
> like this:

May I ask why? Just for distributed backup Data?

> When i decrease number of concurrent jobs on the client to 1 or 2 - i
> reach situation when all jobs are "is waiting on max Client jobs" and
> some of them are "is waiting on Storage storeage1" (or storage2, or
> storage3 or storage4). And server hangs forever waiting jobs to finish.

What about reducingnumber of jobs on client, raising concurrent jobs on
storage and enable spooling?

Another possibility is to add 'locking' to the client with before and
after jobs. Something like (typed by heart, not tested):
before-job:
#!/bin/bash
MYPID=$$
LOCKFILE=/var/lib/bacula/already-running
while [ -e ${LOCKFILE} ] || [ $MYPID -ne $(cat ${LOCKFILE}) ]; do
  while [ -e ${LOCKFILE} ]; do
    sleep 10
  done
  echo $MYPID > ${LOCKFILE}
done

after-job:
#!/bin/bash
LOCKFILE=/var/lib/bacula/already-running
rm -f ${LOCKFILE}

However, this only prevents more than one job running on the client, it
won't prevent the storage waiting for some time unless you activate
spooling.

Regards,
        Adrian
-- 
LiHAS - Adrian Reyer - Hessenwiesenstraße 10 - D-70565 Stuttgart
Fon: +49 (7 11) 78 28 50 90 - Fax:  +49 (7 11) 78 28 50 91
Mail: lihas AT lihas DOT de - Web: http://lihas.de
Linux, Netzwerke, Consulting & Support - USt-ID: DE 227 816 626 Stuttgart

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users