Re: [Bacula-users] RunAfter job problem

2005-12-18 Thread Natxo Asenjo
On Sat, 17  Dec  2005,  09:54:28PM +0100¨, Arno Lehmann said:
 17-Dec 20:26 tux-dir: RunAfter: root
 17-Dec 20:26 tux-dir: RunAfter: + /etc/bacula/delete_catalog_backup
 17-Dec 20:26 tux-dir: RunAfter: + mt rewind
 17-Dec 20:26 tux-dir: RunAfter: mt: /dev/tape: Permission denied
 17-Dec 20:26 tux-dir: RunAfter: + mt eject
 17-Dec 20:26 tux-dir: RunAfter: mt: /dev/tape: Permission denied
 17-Dec 20:26 tux-dir: RunAfter: + exit 0
 
 Hmm. Are you using a debian linux system? I think I remember something...

yes, debian stable but bacula from sources.

The problem is (well, for me in this case) that the jobs run as user
bacula (this is good, do not get me wrong). The user bacula in debian
systems (I used first the *.debs but then compiled) get a /bin/false
shell. I changed that to /bin/bash. Then I edited the sudoers file and
granted bacula access to /bin/mt as root without password. That did it.
It is not beautiful but it works, and this machine is not a safety
problem anyway.
-- 
Groeten,
J.I.Asenjo


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula auto Recyle

2005-12-18 Thread Arno Lehmann

Still at work at this time?

Anyway...

On 12/18/2005 1:57 PM, Dihor, Viktor wrote:


Hello OSS Friends,

I use  Bacula 1.38.2 it runs ok. so far.
Just the Process of the auto Recyling dosen't work.

Bucula purges the volumes as desired, but doesnt recylce them.
My Pool Def. in the Dir config looks as folows:



What I see makes me think that everything's working correctly.

Tapes are purged, and that's what you want. The status Recycled is 
only applied if a tape is actually selected for reuse, i.e. in the short 
time between the DIR selecting which tape to use next and, in this 
process, possibly pruning volumes, and the notification from the SD that 
this tape is actually in use again.


Usually, you see this stae in the catalog in two cases only:
- You have to manually change tapes, and for whatever reason you feed a 
tape to Bacula that is not the same one it requested. That's not a 
problem, by the way. The same can happen when you change magazines and 
you load another magazine than the one with the already recycled tape.

In both cases, Bacula will simply select another volume to work with.
- When, for whatever reason, Bacula stops working during tape change 
operations.


In any case, a tape with VolStatus Recycled will be the best choice when 
Bacula needs a new tape.


Arno





The Bacula DB:




Any hints why it doesent work.



happy Hacking,

Viktor



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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula auto Recyle

2005-12-18 Thread Dihor, Viktor




Hello Arno,

the maijor problem is, that bacula asks for a appendable Volume, istead of reusing a purged Volume.



Am Sonntag, den 18.12.2005, 14:50 +0100 schrieb Arno Lehmann:


Still at work at this time?

Anyway...

On 12/18/2005 1:57 PM, Dihor, Viktor wrote:
 
 Hello OSS Friends,
 
 I use  Bacula 1.38.2 it runs ok. so far.
 Just the Process of the auto Recyling dosen't work.
 
 Bucula purges the volumes as desired, but doesnt recylce them.
 My Pool Def. in the Dir config looks as folows:
 

What I see makes me think that everything's working correctly.

Tapes are purged, and that's what you want. The status Recycled is 
only applied if a tape is actually selected for reuse, i.e. in the short 
time between the DIR selecting which tape to use next and, in this 
process, possibly pruning volumes, and the notification from the SD that 
this tape is actually in use again.

Usually, you see this stae in the catalog in two cases only:
- You have to manually change tapes, and for whatever reason you feed a 
tape to Bacula that is not the same one it requested. That's not a 
problem, by the way. The same can happen when you change magazines and 
you load another magazine than the one with the already recycled tape.
In both cases, Bacula will simply select another volume to work with.
- When, for whatever reason, Bacula stops working during tape change 
operations.

In any case, a tape with VolStatus Recycled will be the best choice when 
Bacula needs a new tape.

Arno


 
 
 The Bacula DB:
 
 
 
 
 Any hints why it doesent work.
 
 
 
 happy Hacking,
 
 Viktor
 






Mit freundlichen Gren,
Viktor Dihor









Re: [Bacula-users] Bacula auto Recyle

2005-12-18 Thread Harondel J. Sibble


On 18 Dec 2005 at 19:39, Dihor, Viktor wrote:

 the maijor problem is, that bacula asks for a appendable Volume, istead
 of reusing a purged Volume.


Try this

 What you need is this 
 
 Volume Use Duration = 
 
 added to your pool definition where the duration is equal to or less than
 your Volume Retention setting, in my case the relevant lines are
 
 Volume Retention = 6d
 Volume Use Duration = 6d
 
 With this setup, Bacula FINALLY works like I expect and how pretty much
 any other backup software I've used on Windows or Unix works.  It will
 overwrite the tape in the drive, assuming 6 days has passed, it marks the
 tape as used and then recycles it, however it only does that at the
 beginning of the next job, so the recycling happens at the start of the
 current job.


Note, you'll have to run the update command as follows


 You have to use the update command to first update the pool parameters
 from the config file and the use update again to update the volume
 parameters from the pool:
 
   update - pool from resource
 
   update - volume parameters - select pool - select any media -
 all volumes from pool
 
 Not exactly intuitive because for the latter you have to first select a
 volume to reach the all volumes option.

-- 
Harondel J. Sibble 
Sibble Computer Consulting
Creating solutions for the small business and home computer user.
[EMAIL PROTECTED] (use pgp keyid 0x3AD5C11D) http://www.pdscc.com
(604) 739-3709 (voice/fax)  (604) 686-2253 (pager)




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula auto Recyle

2005-12-18 Thread Arno Lehmann

Hi again, Viktor -

On 12/18/2005 7:39 PM, Dihor, Viktor wrote:

  Hello Arno,

the maijor problem is, that bacula asks for a appendable Volume, istead 
of reusing a purged Volume.


I looked at your first post again, obviously more careful this time... I 
can't quote your list volumes output because it's graphical, but I 
noticed that for the volumes shown, the Recycle flag is 0. You should 
set this to 1. Remember that the pool definition only is the template 
for newly created volume in a pool - once a volume is created, its 
attributes should be changed either manually, using the update command, 
or by carefully manipulating the catalog.


Arno




Am Sonntag, den 18.12.2005, 14:50 +0100 schrieb Arno Lehmann:

Still at work at this time? 

Anyway... 

On 12/18/2005 1:57 PM, Dihor, Viktor wrote: 
  
 Hello OSS Friends, 
  
 I use  Bacula 1.38.2 it runs ok. so far. 
 Just the Process of the auto Recyling dosen't work. 
  
 Bucula purges the volumes as desired, but doesnt recylce them. 
 My Pool Def. in the Dir config looks as folows: 
  

What I see makes me think that everything's working correctly. 

Tapes are purged, and that's what you want. The status Recycled is  
only applied if a tape is actually selected for reuse, i.e. in the short  
time between the DIR selecting which tape to use next and, in this  
process, possibly pruning volumes, and the notification from the SD that  
this tape is actually in use again. 

Usually, you see this stae in the catalog in two cases only: 
- You have to manually change tapes, and for whatever reason you feed a  
tape to Bacula that is not the same one it requested. That's not a  
problem, by the way. The same can happen when you change magazines and  
you load another magazine than the one with the already recycled tape. 
In both cases, Bacula will simply select another volume to work with. 
- When, for whatever reason, Bacula stops working during tape change  
operations. 

In any case, a tape with VolStatus Recycled will be the best choice when  
Bacula needs a new tape. 

Arno 



  
  
 The Bacula DB: 
  
  
  
  
 Any hints why it doesent work. 
  
  
  
 happy Hacking, 
  
 Viktor 
  




Mit freundlichen Grüßen,
Viktor Dihor




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



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] RunAfterJob Script

2005-12-18 Thread Mario Ohnewald
Hello List,

i have this simple RunAfterJob script:
RunAfterJob = /bin/sh -c 'echo  %v  /tmp/vout'

and i get the error:
RunAfter: /bin/sh: TestVolume0017: command not found
RunAfter: /bin/sh: TestVolume0018: command not found



IF i run a incremental backup and i only need one BackupVolume, then it
works and pipes %v into my /tmp/vout file.

I am wondering what bacula does when it has multiple BackupVolume files
and why/where it tries to run TestVolume00XY.

I hope i explained it well. If not then let me know!

Thanks, Mario



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Using Multiple Tape Devices

2005-12-18 Thread Gary Kopp
I've been using Bacula happily for about a year, with one SCSI tape
drive and the director's maximum concurrent jobs set to 1.  Now I've
purchased a second tape drive and added it to my SCSI chain.  My goal is
to divide my jobs between the two devices, and have backups writing to
both devices concurrently.  I can see how to configure the director and
storage daemons to identify two tape drives, and how to associate each
tape drive with a different set of jobs.  But what I still am not clear
on, after a couple of passes through the doc, is how to control the
concurrency so that, in essence, each storage device has a queue of
jobs.  The first step is probably to increase the director's maximum
concurrent jobs to 2.  But situations could certainly arise where there
are (more than) two jobs ready to run that want the same device.  I
really want to specify a maximum concurrency at the storage device
level, and for the life of me I can't figure out how to do that.
Maximum concurrent jobs in the storage daemon's config doesn't seem to
be the way to go, even if I had multiple storage resources, because the
storage daemon counts a lot more than backups as jobs (status, etc.), so
I couldn't set that to 1.

After reading the doc, the only way I can think of to accomplish this is
make all jobs use Spool Data.  But while I would want to do this
anyway for incremental backups, it's really a disk-hog for full backups
(of multiple server-class clients).

What have I missed?

--Gary


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Messages resource and syslog

2005-12-18 Thread Gary Kopp
Can anyone provide a sample of a messages resource destination
specification using syslog that they know works?  According to the
Bacula doc, the syntax is supposed to be
  destination = address = message-type1, message-type2, ...

where I can set destination to syslog.  The doc goes on to say the
value of address will be ignored.  The director's parser complains
about an unknown message type if I follow this syntax, seemingly no
matter what I put in for address.  What I can get the parser to accept
is:
  syslog = message-type1, message-type2, ...

But then I can't find anything in any of my Linux logs.  The Bacula doc
says its messages will be logged to the LOG_ERR facility.  LOG_ERR is
not a facility, it's a priority, AFAIK.  LOG_ERR isn't actually a Linux
syslog term, it's, I believe, a literal used in some logging support
programming packages.

So, I really have three questions:

1) Does the syslog destination really work for Bacula messages?
2) What facility and priority are actually being used for the syslog
messages that are generated?
3) What is the correct syntax for a syslog destination in the messages
resource?

BTW, I'm running Bacula 1.38.2 on RHEL4 update 2.

In advance, thanks!

--Gary


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problem with bconsole and passphrase protected certificate key

2005-12-18 Thread Aleksandar Milivojevic

Landon Fuller wrote:

Aleksandar Milivojevic wrote:


If client certificate for bconsole is passhprase protected, there is a prompt
displayed to enter the passphrase.  Then bconsole hangs.  Ctrl-C doesn't work. 
The only way to get out is to kill it from another terminal.


# bconsole
Connecting to Director backup.foobar.com:9101
Passphrase for Director backup-dir TLS private key:  - hangs right here



The PEM passphrase callback makes use of getpass(). getpass() will read
from and write directly to /dev/tty. If the process has no controlling
TTY (eg, after calling setsid()), getpass() will write to stderr and
read the password from stdin.

Can you tell me more about your environment? Are you trying to pipe a
password to bconsole? The code works fine here (I tested on Mac OS X and
FreeBSD.):


It was just standard Linux box (CentOS 4 distribution, basically RHEL 4 
recompiled from sources).  No fancy invocations, no pipeing.  I just 
typed bconsole, it prompted me for passphrase and hang there.



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users