[Bacula-users] Different Pools on Autochanger Archive-Pools

2006-01-27 Thread Daniel Amkreutz
Hello all,

a month ago i've posted some questions concerning autochangers and archive 
pools, but never got any hint nor i found any answers to this in the list 
archives or the handbook. Now, because time is slipping away i'm about to 
cancel any further use of bacula and use homebrew scripts to automate the 
backup.

1. Is it possible to assign different volumes in an autochanger to different 
pools, and thus use automatic labelling. (eg. 3 Slots for incremental, 2 
slots for archiving etc).

2. Are disk-to-disk-to-tape backups jet implemented  ?

3. How about archive pools ?


Thanks a lot in advance,

Daniel




PS:
This sould not be misunderstood: I do not want to accuse anyone, because 
he/she did not answer me, i'm very glad about bacula, but now I need to 
implement a running backup system and i'm not sure, if bacula can satisfy our 
needs. 


---
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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Bacula-WEB]

2006-01-27 Thread Juan Luis Frances
Please, check if your bug is already found: 
http://indpnday.com/bacula_stuff/bacula-web/mantisbt/view_all_bug_page.php

El Martes 24 Enero 2006 20:36, Marcolino escribió:
 Hello,



 I have a BUG on a bacula-web gui:



 Call to undefined function: fetchrow()



 My installation ENV



 Apache 2.x

 Php 4

 PostgreSQL

 Bacula 1.36.3

 BaculaWEB 1.38



 Regards,



 MARCOLINO, Alexandre J
 Especialista Linux

 Linux Counter #160521 - http://counter.li.org/
 CA Modas Ltda.
 Al. Araguaia, 1222 - Alphaville - Barueri/SP
 Tel.: (11) 2134-1923
  mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]




 Esta mensagem e confidencial e pode estar amparada por normas legais. Se
 voce recebeu esta mensagem por engano, por favor nos avise respondendo ao
 e-mail e posteriormente o apague de seu sistema; voce nao deve copiar ou
 divulgar o conteudo desta mensagem. Todas as mensagens enviadas a esta
 empresa, ou dela recebidas, podem ser monitoradas para assegurar a
 concordancia com politicas internas e proteger nosso negocio.
 Antes de imprimir pense em seu compromisso com o Meio Ambiente.

 This message is confidential. It may also be privileged or otherwise
 protected by work product immunity or other legal rules. If you have
 received it by mistake please let us know by reply and then delete it from
 your system; you should not copy the message or disclose its contents to
 anyone. All messages sent to and from this company may be monitored to
 ensure compliance with internal policies and to protect our business.
 Before printing, think about the Environment.


---
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://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Problem restoring windows files

2006-01-27 Thread Angela Gavazzi

Hallo!

I'm using bacula 1.36.2 (deb packages) under Debian Sarge to backup 
linux and windows 2000 clients.
Now I have to restore a folder on a windows client - I know I restored 
in the past without problems - and run in this error:
Fatal error: REGEX ^.?*$ compile error. ERR=REGEX not available on this 
system.

I tested restore to NT4 and to W2K, it's the same.

when trying to restore to a samba share I had this:
Error: Win32 data stream not supported on this Client.
As I didn't use the portable mode I understand it.

Restores on Linux client work without Problems

Can anybody point me to the problem?

Thank you very much,

Angela







---
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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Different Pools on Autochanger Archive-Pools

2006-01-27 Thread Sebastian Stark


Am 27.01.2006 um 09:51 schrieb Daniel Amkreutz:

Now, because time is slipping away i'm about to
cancel any further use of bacula and use homebrew scripts to  
automate the

backup.


I'm not sure who should be more afraid of this statement: the bacula  
devopers or your users?



3. How about archive pools ?


We have have a permanent pool with a volume retention of 10 years.  
As long as your media type allows such a long retention (they say  
LTO-2 does..) this should be okay for simple archiving purposes.


However this is still a bit far from a real archiving solution.


-Sebastian



---
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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Re: Bacula 1.36.3: backup ok, restore fails

2006-01-27 Thread Cosimo Streppone
 On 1/25/06, Cosimo Streppone [EMAIL PROTECTED] wrote:
  2006/1/18, Samuel Briesemeister [EMAIL PROTECTED]:
 
   [...] ... I've since recompiled and it works now, though I'm not sure to
 what extent.
   I'll try recompiling it with no optimizations.
 
  I also tried recompiling with `-O0' but it makes no difference.
  The error remains.

 I think you'd be better off removing '-O...' altogether. I simplified my C
 Flags down to just my architecture (-march=... and -mtune=... -- no -pipe,
 -O, or any other arguments), and that seems to have fixed it.

Tried recompiling also without '-O...' as you suggested, but, as I
suspected, there was no difference.
Finally I solved my problem upgrading also the client to bacula
1.38.2, which is the same version that I use on the director.

BTW, I still don't know the reason...

--
Cosimo


---
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://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula-fd exits with status 208

2006-01-27 Thread Martin Simmons
 On Thu, 26 Jan 2006 20:06:02 -0700, Robert W Hartzell [EMAIL PROTECTED] 
 said:
 
 On Wed, 2006-01-25 at 14:47, Martin Simmons wrote:
 
  
  Sorry, I don't know how svc interacts with bacula.  
  What reports 208 and how
  do you know that it is definitely the exit status from bacula-fd?
 
 # ./bacula-fd stop
 Stopping the Bacula File daemon:
 # echo $?
 208
 
  I would use gdb or truss to find out more.
  
  __Martin
 
 Here's the tail end of the output of truss -p PID after executing
 ./bacula-fd stop
 
 /2: lwp_park(0xD1979F40, 0) (sleeping...)
 /2: lwp_park(0xD1979F40, 0) Err#62 ETIME
 /2: time()  = 1138329419
 /2: time()  = 1138329419
 /2: lwp_park(0xD1979F40, 0) (sleeping...)
 /1: Received signal #15, SIGTERM, in pollsys() [caught]
 /1: pollsys(0x08045FC0, 1, 0x, 0x)  Err#4 EINTR
 /1: lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0xFFF7) = 0xFFBFFEFF
 [0x]
 /1: unlink(/opt/local/var/bacula/working/bacula-fd.9102.state) = 0
 /1: open64(/opt/local/var/bacula/working/bacula-fd.9102.state,
 O_WRONLY|O_CREAT, 0640) = 4
 /1: write(4,  B a c u l a   S t a t e.., 188) = 188
 /1: llseek(4, 188, SEEK_SET)= 188
 /1: write(4, \0\0\0\0, 4) = 4
 /1: llseek(4, 0, SEEK_CUR)  = 192
 /1: llseek(4, 0, SEEK_SET)  = 0
 /1: write(4,  B a c u l a   S t a t e.., 188) = 188
 /1: close(4)= 0
 /1: unlink(/opt/local/var/run/bacula/bacula-fd.9102.pid) = 0
 /1: lwp_unpark(2)   = 0
 /2: lwp_park(0xD1979F40, 0) = 0
 /2: lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0xFFF7) = 0xFFBFFEFF
 [0x]
 /2: lwp_exit()
 /1: lwp_wait(2, 0x08045B98) = 0
 /1: _exit(15)
 
 I don't know if this is helpful.

Thanks, we're getting nearer.  This clears up the confusion about which exit
status is 208: it is from the bacula-fd svc program, not the bacula-fd daemon.

Is /opt/local/svc/support-files/bacula-fd a script?  Maybe its contents will
reveal why it exits with 208?

__Martin


---
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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problem restoring windows files

2006-01-27 Thread Arno Lehmann

Hello,

On 1/27/2006 11:54 AM, Angela Gavazzi wrote:

Hallo!

I'm using bacula 1.36.2 (deb packages) under Debian Sarge to backup 
linux and windows 2000 clients.
Now I have to restore a folder on a windows client - I know I restored 
in the past without problems - and run in this error:
Fatal error: REGEX ^.?*$ compile error. ERR=REGEX not available on this 
system.

I tested restore to NT4 and to W2K, it's the same.


Yes, regular expressions (probably used in your fileset for the restore) 
don't work on windows.



when trying to restore to a samba share I had this:
Error: Win32 data stream not supported on this Client.
As I didn't use the portable mode I understand it.


Well, as far as I know the current version supports restores of 
non-portable data to unix/linux FDs, so that might offer an emergency 
mode of recovery:


Build the SD and accompanying tools from version 1.38.5. No need to 
install or actually use them on a production system - simly try using 
the bls and bextract utilities to get to your data.



Restores on Linux client work without Problems

Can anybody point me to the problem?


Problem is hopefully described above. the solution might be to choose 
another fileset for the restores, for example one that simply includes / 
and doesn't exclude anything.



Thank you very much,


Hope this helps,

Arno


Angela







---
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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
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


---
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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problem to start Sd

2006-01-27 Thread Martin Simmons
 On Thu, 26 Jan 2006 08:42:07 -0500, Bissot_j [EMAIL PROTECTED] said:
 
 - Original Message - 
 From: Martin Simmons [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Cc: bacula-users@lists.sourceforge.net
 Sent: Wednesday, January 25, 2006 4:33 PM
 Subject: Re: [Bacula-users] Problem to start Sd
 
 
  On Tue, 24 Jan 2006 11:44:50 -0500, Bissot_j [EMAIL PROTECTED] 
  said:
 
  Hi Martin,
 
  Thanks for your help.
 
  When i comment the Autochanger section in the SD conf it works.
  so i am a bit lost on why my autochanger section crash the sd daemon
 
  here is my sd conf who cause the problems :
  #
  # Devices supported by this Storage daemon
  # To connect, the Director's bacula-dir.conf must have the
  #  same Name and MediaType.
  #
  Autochanger {
Name = Autochanger
Device = Drive-1
Changer Command = /etc/bacula/mtx-changer %c %o %S %a %d
Changer Device = /dev/sg2
  }
 
  Device {
Name = Drive-1
Media Type = 8mm
Archive Device = /dev/nst0
Hardware end of medium = No;
AutomaticMount = yes;   # when device opened, read it
AlwaysOpen = Yes;
RemovableMedia = yes;
RandomAccess = no;
   AutoChanger = yes
Alert Command = sh -c 'tapeinfo -f %c |grep TapeAlert|cat'
  }
 
  That is strange -- I tried your settings above in 1.38.5 on FreeBSD 4.9 
  and it
  started without problems.  Maybe a compiler bug?
 
  __Martin
 
 Yes very strange.
 is the way i declare my autochanger device is wrong ?

It looks OK to me, unless you have somethign else in the conf that breaks it.


 what sort of compiler bugs you are thinking about.

Nothing in particular, but I don't see how it can crash on the line that gdb
reported.

__Martin


 thanks
 
 
 
 
 
  thanks
  - Original Message - 
  From: Martin Simmons [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Cc: bacula-users@lists.sourceforge.net
  Sent: Tuesday, January 24, 2006 11:27 AM
  Subject: Re: [Bacula-users] Problem to start Sd
 
 
   On Mon, 23 Jan 2006 07:58:38 -0500, Bissot_j 
   [EMAIL PROTECTED]
   said:
  
   Hi
   thanks, i run  bacula-sd  under debugger and got this ouput
   someone can help me ?
   ===
   gdb ./bacula-sdThis GDB was configured as
   i586-mandriva-linux-gnu...Using
   host libthread_db library /lib/tls/libthread_db.so.1.
  
   (gdb) run -s -f -d 99 -c /etc/bacula/bacula-sd.conf
   Starting program: /usr/sbin/bacula-sd -s -f -d 99 -c
   /etc/bacula/bacula-sd.conf
   Reading symbols from shared object read from target memory...done.
   Loaded system supplied DSO at 0xe000
   [Thread debugging using libthread_db enabled]
   [New Thread -1213241664 (LWP 23855)]
   bacula-sd: stored_conf.c:613 Inserting director res: cow-mon
  
   Program received signal SIGSEGV, Segmentation fault.
   [Switching to Thread -1213241664 (LWP 23855)]
   0x0804dff4 in init_autochangers () at autochanger.c:48
   48   if (!device-changer_command 
   changer-changer_command) {
   Current language:  auto; currently c++
   (gdb) thread apply all bt
  
   Thread 1 (Thread -1213241664 (LWP 23855)):
   #0  0x0804dff4 in init_autochangers () at autochanger.c:48
   #1  0x0804c170 in main (argc=Variable argc is not available.
   ) at stored.c:399
   #2  0xb7b0ce40 in __libc_start_main () from /lib/tls/libc.so.6
   #3  0x0804b841 in _start () at ../sysdeps/i386/elf/start.S:119
   (gdb)
  
   I don't see how it can crash there really, but it might be problem with
   your
   configuration.  Can you post your bacula-sd.conf?
  
   Also, can you redo the above and also post the output of
  
   disass init_autochangers
  
   at the gdb prompt when it crashes?
  
   __Martin


---
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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Different Pools on Autochanger Archive-Pools

2006-01-27 Thread Dan Langille
On 27 Jan 2006 at 8:51, Daniel Amkreutz wrote:

 a month ago i've posted some questions concerning autochangers and
 archive pools, but never got any hint nor i found any answers to this
 in the list archives or the handbook

That is unfortunate.  It's up to you to persist.

 Now, because time is slipping away i'm about to cancel any further use
 of bacula and use homebrew scripts to automate the backup. 

I don't know how to react to this, nor do I know your intended 
meaning.  Regardless, it's not useful to mention such things. It 
won't get you help any sooner.
-- 
Dan Langille : http://www.langille.org/
BSDCan - The Technical BSD Conference - http://www.bsdcan.org/




---
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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problem restoring windows files

2006-01-27 Thread Angela Gavazzi
Am Freitag, 27. Januar 2006 12.38 schrieb Arno Lehmann:
 Hello,

 On 1/27/2006 11:54 AM, Angela Gavazzi wrote:
  Hallo!
 
  I'm using bacula 1.36.2 (deb packages) under Debian Sarge to backup
  linux and windows 2000 clients.
  Now I have to restore a folder on a windows client - I know I restored
  in the past without problems - and run in this error:
  Fatal error: REGEX ^.?*$ compile error. ERR=REGEX not available on this
  system.
  I tested restore to NT4 and to W2K, it's the same.

 Yes, regular expressions (probably used in your fileset for the restore)
 don't work on windows.
Only for understanding:
I tryed to restore a specific file wih the full path and/or a folder like 
this: f:/folder1/folder2/ 
I think I is nearly the same I also did in the past.
Where do regexp come into play if I give the exact path? Excuse the case it 
is a stupid question...

  when trying to restore to a samba share I had this:
  Error: Win32 data stream not supported on this Client.
  As I didn't use the portable mode I understand it.

 Well, as far as I know the current version supports restores of
 non-portable data to unix/linux FDs, so that might offer an emergency
 mode of recovery:

 Build the SD and accompanying tools from version 1.38.5. No need to
 install or actually use them on a production system - simly try using
 the bls and bextract utilities to get to your data.

Will try it.


  Restores on Linux client work without Problems
 
  Can anybody point me to the problem?

 Problem is hopefully described above. the solution might be to choose
 another fileset for the restores, for example one that simply includes /
 and doesn't exclude anything.

  Thank you very much,

 Hope this helps,

 Arno

Thank you very much.
angela

  Angela
 
 
 
 
 
 
 
  ---
  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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
  ___
  Bacula-users mailing list
  Bacula-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/bacula-users


---
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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Volumes/MaxVolumeJobs/RecycleOldest

2006-01-27 Thread Steve Loughran

Hi all

Can I just confirm something here before I rush headlong into the 
initial config of my pools/volumes at home:


If I want a pool with three tapes, 1 client, each client backup will use 
less than 1 tape, the jobs are run manually (not scheduled), and I want 
to only have one run on a tape, can I set the pool attributes to include:


Maximum Volume Jobs = 1
Recycle Oldest Volume = yes

The way I see it, this will backup to tape 1, mark it as used, so the 
next backup using this pool will use tape 2 at next run, mark that one 
used, then tape 3 the run after that. Is that correct?


If I am running the job manually (and infrequently sometimes), what 
purge time should I have on the pool? If I want to run my job for a 4th 
time, and its less than the purge time for the pool, will it fail, or 
will it just purge the oldest volume, and use that instead? Or would it 
be better for me to use:


Purge Oldest Volume = yes

instead of

Recycle Oldest Volume = yes


Also, for my work install for bacula, is there a way of doing this, but 
for entire scheduled jobs? So one weeks full backup will get written to 
the tapes, but once that one single schedule (with multiple clients) is 
complete, next weeks full backup will start on the next tape, and ignore 
the previous tape? Is that possible?


Many thanks for your help, it is greatly appreciated.

Steve


---
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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


RE: [Bacula-users] evaluating backup software

2006-01-27 Thread Lou Lohman
Thank you, Wolfgang, you answered my question.  I know you didn't mean
to do so, but you did.  You've done better by accident than anyone else
on this list did on purpose.

I am still somewhat puzzled that no one bothered to just say Yes when
I asked if Bacula could 'span tapes'.  It's a simple word, easy to spell
and usually a really nice word to say to someone (of course, it really
depends on just what it is you're being asked to say 'yes' to ...) so I
don't understand.  But then, there are so MANY things I don't understand
(life, women, the national attraction for GW) I guess I'll just add it
to the list.

Thanks, again.

Lou Lohman

 You can observe a lot by watching. - Yogi Berra 

In message [EMAIL PROTECTED] you wrote:
 
 I am evaluating a backup software for my system.
 I tried with amanda. unfortunately amanda isn't really able to do more
then one
 dump on a single tape.
 Could somebody tell me if bacula fits my needs?

At least it has not the same  restrictions  as  Amanda:  it  can  put
multiple  backups  on  a single tape, and it can span a single backup
over several tapes as well.

 OS: Debian Linux 2.4 Kernel, Only console available, no X window
 Tape: Dell PowerVault DLT VS160
 Full Backup size: 6GB

Should be OK.

 I would like to do incremental Backup during Weekdays and a full
Backup on the
 Weekend. A hole Week should go to one Tape so the tape has to be
changed once a
 week only.

Standard setup.

 I have seen that bacula has X Window applications. Is it managable by
console
 only as well?

Yes, of course.

 Restoring the data will be a nice feature as well.. :-)

Yes, of course :-)

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [EMAIL PROTECTED]
It is better for civilization to be going down the drain than to  be
coming up it.  - Henry Allen


---
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://sel.as-us.falkag.net/sel?cmd=kkid3432bid#0486dat1642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


---
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://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problem to start Sd

2006-01-27 Thread Bissot_j

I dont think something else in the conf broke it.
because it workl fine when i remove autochanger section :(

So now what next ?
what i can do to be able use the autochanger ?
in the : mtx-changer %c %o %S %a %d
what is %c %o %S %a %d ?

the mtx-changer can be the prob , i compile MTX i will try to replace
mtx-changer by mtx but need to know what the arg mean.

thanks a lot

- Original Message - 
From: Martin Simmons [EMAIL PROTECTED]

To: [EMAIL PROTECTED]
Cc: bacula-users@lists.sourceforge.net
Sent: Friday, January 27, 2006 6:46 AM
Subject: Re: [Bacula-users] Problem to start Sd


On Thu, 26 Jan 2006 08:42:07 -0500, Bissot_j [EMAIL PROTECTED] 
said:


- Original Message - 
From: Martin Simmons [EMAIL PROTECTED]

To: [EMAIL PROTECTED]
Cc: bacula-users@lists.sourceforge.net
Sent: Wednesday, January 25, 2006 4:33 PM
Subject: Re: [Bacula-users] Problem to start Sd


 On Tue, 24 Jan 2006 11:44:50 -0500, Bissot_j 
 [EMAIL PROTECTED]

 said:

 Hi Martin,

 Thanks for your help.

 When i comment the Autochanger section in the SD conf it works.
 so i am a bit lost on why my autochanger section crash the sd daemon

 here is my sd conf who cause the problems :
 #
 # Devices supported by this Storage daemon
 # To connect, the Director's bacula-dir.conf must have the
 #  same Name and MediaType.
 #
 Autochanger {
   Name = Autochanger
   Device = Drive-1
   Changer Command = /etc/bacula/mtx-changer %c %o %S %a %d
   Changer Device = /dev/sg2
 }

 Device {
   Name = Drive-1
   Media Type = 8mm
   Archive Device = /dev/nst0
   Hardware end of medium = No;
   AutomaticMount = yes;   # when device opened, read it
   AlwaysOpen = Yes;
   RemovableMedia = yes;
   RandomAccess = no;
  AutoChanger = yes
   Alert Command = sh -c 'tapeinfo -f %c |grep TapeAlert|cat'
 }

 That is strange -- I tried your settings above in 1.38.5 on FreeBSD 4.9
 and it
 started without problems.  Maybe a compiler bug?

 __Martin

Yes very strange.
is the way i declare my autochanger device is wrong ?


It looks OK to me, unless you have somethign else in the conf that breaks 
it.




what sort of compiler bugs you are thinking about.


Nothing in particular, but I don't see how it can crash on the line that 
gdb

reported.

__Martin



thanks





 thanks
 - Original Message - 
 From: Martin Simmons [EMAIL PROTECTED]

 To: [EMAIL PROTECTED]
 Cc: bacula-users@lists.sourceforge.net
 Sent: Tuesday, January 24, 2006 11:27 AM
 Subject: Re: [Bacula-users] Problem to start Sd


  On Mon, 23 Jan 2006 07:58:38 -0500, Bissot_j
  [EMAIL PROTECTED]
  said:
 
  Hi
  thanks, i run  bacula-sd  under debugger and got this ouput
  someone can help me ?
  
===
  gdb ./bacula-sdThis GDB was configured as
  i586-mandriva-linux-gnu...Using
  host libthread_db library /lib/tls/libthread_db.so.1.
 
  (gdb) run -s -f -d 99 -c /etc/bacula/bacula-sd.conf
  Starting program: /usr/sbin/bacula-sd -s -f -d 99 -c
  /etc/bacula/bacula-sd.conf
  Reading symbols from shared object read from target memory...done.
  Loaded system supplied DSO at 0xe000
  [Thread debugging using libthread_db enabled]
  [New Thread -1213241664 (LWP 23855)]
  bacula-sd: stored_conf.c:613 Inserting director res: cow-mon
 
  Program received signal SIGSEGV, Segmentation fault.
  [Switching to Thread -1213241664 (LWP 23855)]
  0x0804dff4 in init_autochangers () at autochanger.c:48
  48   if (!device-changer_command 
  changer-changer_command) {
  Current language:  auto; currently c++
  (gdb) thread apply all bt
 
  Thread 1 (Thread -1213241664 (LWP 23855)):
  #0  0x0804dff4 in init_autochangers () at autochanger.c:48
  #1  0x0804c170 in main (argc=Variable argc is not available.
  ) at stored.c:399
  #2  0xb7b0ce40 in __libc_start_main () from /lib/tls/libc.so.6
  #3  0x0804b841 in _start () at ../sysdeps/i386/elf/start.S:119
  (gdb)
 
  I don't see how it can crash there really, but it might be problem 
  with

  your
  configuration.  Can you post your bacula-sd.conf?
 
  Also, can you redo the above and also post the output of
 
  disass init_autochangers
 
  at the gdb prompt when it crashes?
 
  __Martin





---
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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problem to start Sd

2006-01-27 Thread Steve Loughran
Sorry to come into the conversation late, I may have missed some of the 
more obvious thoughts, but:


Autochanger {
Name = Autochanger
Device = Drive-1
Changer Command = /etc/bacula/mtx-changer %c %o %S %a %d
Changer Device = /dev/sg2
}

Have you tried changing the names of the Autochanger and the tape 
device? Calling your Autochanger err... Autochanger might be the 
culprit (maybe not... it just looks odd).




Bissot_j wrote:

I dont think something else in the conf broke it.
because it workl fine when i remove autochanger section :(

So now what next ?
what i can do to be able use the autochanger ?
in the : mtx-changer %c %o %S %a %d
what is %c %o %S %a %d ?

the mtx-changer can be the prob , i compile MTX i will try to replace
mtx-changer by mtx but need to know what the arg mean.

thanks a lot

- Original Message - From: Martin Simmons [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: bacula-users@lists.sourceforge.net
Sent: Friday, January 27, 2006 6:46 AM
Subject: Re: [Bacula-users] Problem to start Sd


On Thu, 26 Jan 2006 08:42:07 -0500, Bissot_j 
[EMAIL PROTECTED] said:


- Original Message - From: Martin Simmons 
[EMAIL PROTECTED]

To: [EMAIL PROTECTED]
Cc: bacula-users@lists.sourceforge.net
Sent: Wednesday, January 25, 2006 4:33 PM
Subject: Re: [Bacula-users] Problem to start Sd


 On Tue, 24 Jan 2006 11:44:50 -0500, Bissot_j  
[EMAIL PROTECTED]

 said:

 Hi Martin,

 Thanks for your help.

 When i comment the Autochanger section in the SD conf it works.
 so i am a bit lost on why my autochanger section crash the sd daemon

 here is my sd conf who cause the problems :
 #
 # Devices supported by this Storage daemon
 # To connect, the Director's bacula-dir.conf must have the
 #  same Name and MediaType.
 #
 Autochanger {
   Name = Autochanger
   Device = Drive-1
   Changer Command = /etc/bacula/mtx-changer %c %o %S %a %d
   Changer Device = /dev/sg2
 }

 Device {
   Name = Drive-1
   Media Type = 8mm
   Archive Device = /dev/nst0
   Hardware end of medium = No;
   AutomaticMount = yes;   # when device opened, read it
   AlwaysOpen = Yes;
   RemovableMedia = yes;
   RandomAccess = no;
  AutoChanger = yes
   Alert Command = sh -c 'tapeinfo -f %c |grep TapeAlert|cat'
 }

 That is strange -- I tried your settings above in 1.38.5 on FreeBSD 
4.9

 and it
 started without problems.  Maybe a compiler bug?

 __Martin

Yes very strange.
is the way i declare my autochanger device is wrong ?


It looks OK to me, unless you have somethign else in the conf that 
breaks it.




what sort of compiler bugs you are thinking about.


Nothing in particular, but I don't see how it can crash on the line 
that gdb

reported.

__Martin



thanks





 thanks
 - Original Message -  From: Martin Simmons 
[EMAIL PROTECTED]

 To: [EMAIL PROTECTED]
 Cc: bacula-users@lists.sourceforge.net
 Sent: Tuesday, January 24, 2006 11:27 AM
 Subject: Re: [Bacula-users] Problem to start Sd


  On Mon, 23 Jan 2006 07:58:38 -0500, Bissot_j
  [EMAIL PROTECTED]
  said:
 
  Hi
  thanks, i run  bacula-sd  under debugger and got this ouput
  someone can help me ?
  
=== 


  gdb ./bacula-sdThis GDB was configured as
  i586-mandriva-linux-gnu...Using
  host libthread_db library /lib/tls/libthread_db.so.1.
 
  (gdb) run -s -f -d 99 -c /etc/bacula/bacula-sd.conf
  Starting program: /usr/sbin/bacula-sd -s -f -d 99 -c
  /etc/bacula/bacula-sd.conf
  Reading symbols from shared object read from target memory...done.
  Loaded system supplied DSO at 0xe000
  [Thread debugging using libthread_db enabled]
  [New Thread -1213241664 (LWP 23855)]
  bacula-sd: stored_conf.c:613 Inserting director res: cow-mon
 
  Program received signal SIGSEGV, Segmentation fault.
  [Switching to Thread -1213241664 (LWP 23855)]
  0x0804dff4 in init_autochangers () at autochanger.c:48
  48   if (!device-changer_command 
  changer-changer_command) {
  Current language:  auto; currently c++
  (gdb) thread apply all bt
 
  Thread 1 (Thread -1213241664 (LWP 23855)):
  #0  0x0804dff4 in init_autochangers () at autochanger.c:48
  #1  0x0804c170 in main (argc=Variable argc is not available.
  ) at stored.c:399
  #2  0xb7b0ce40 in __libc_start_main () from /lib/tls/libc.so.6
  #3  0x0804b841 in _start () at ../sysdeps/i386/elf/start.S:119
  (gdb)
 
  I don't see how it can crash there really, but it might be 
problem   with

  your
  configuration.  Can you post your bacula-sd.conf?
 
  Also, can you redo the above and also post the output of
 
  disass init_autochangers
 
  at the gdb prompt when it crashes?
 
  __Martin





---
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!

Re: [Bacula-users] Different Pools on Autochanger Archive-Pools

2006-01-27 Thread Daniel Amkreutz
Hi again,

as i've said in the text, i'm really happy with bacula and absolutely
impressed about the features bacula includes.  Furthermore I'm glad about the 
large community here in the list of experienced users.
But never the less I'm not sure if bacula is suiteable for me. 
If i would not like it i wouldn't post anything in this list.
As you might guess, i've spent the time searching for an answer to my 
questions, but without finding anything. Now I've got three replys to my 
post, but still without anythiing usefull ...


Daniel


---
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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problem to start Sd

2006-01-27 Thread Bissot_j

Hi,

i dont think this will cause any trouble.
but i want so much fix this problem i try it anyway.
i change the section to :
Autochanger {
 Name = Mychanger
 Device = Drive-1
 Changer Command = /etc/bacula/mtx-changer %c %o %S %a %d
 Changer Device = /dev/sg2
}

and the resuly is the same : FAILED :(
starting to get desesperate :(
J.
- Original Message - 
From: Steve Loughran [EMAIL PROTECTED]

To: bacula-users@lists.sourceforge.net
Sent: Friday, January 27, 2006 8:58 AM
Subject: Re: [Bacula-users] Problem to start Sd


Sorry to come into the conversation late, I may have missed some of the 
more obvious thoughts, but:


Autochanger {
Name = Autochanger
Device = Drive-1
Changer Command = /etc/bacula/mtx-changer %c %o %S %a %d
Changer Device = /dev/sg2
}

Have you tried changing the names of the Autochanger and the tape device? 
Calling your Autochanger err... Autochanger might be the culprit (maybe 
not... it just looks odd).




Bissot_j wrote:

I dont think something else in the conf broke it.
because it workl fine when i remove autochanger section :(

So now what next ?
what i can do to be able use the autochanger ?
in the : mtx-changer %c %o %S %a %d
what is %c %o %S %a %d ?

the mtx-changer can be the prob , i compile MTX i will try to replace
mtx-changer by mtx but need to know what the arg mean.

thanks a lot

- Original Message - From: Martin Simmons 
[EMAIL PROTECTED]

To: [EMAIL PROTECTED]
Cc: bacula-users@lists.sourceforge.net
Sent: Friday, January 27, 2006 6:46 AM
Subject: Re: [Bacula-users] Problem to start Sd


On Thu, 26 Jan 2006 08:42:07 -0500, Bissot_j 
[EMAIL PROTECTED] said:


- Original Message - From: Martin Simmons 
[EMAIL PROTECTED]

To: [EMAIL PROTECTED]
Cc: bacula-users@lists.sourceforge.net
Sent: Wednesday, January 25, 2006 4:33 PM
Subject: Re: [Bacula-users] Problem to start Sd


 On Tue, 24 Jan 2006 11:44:50 -0500, Bissot_j 
[EMAIL PROTECTED]
 said:

 Hi Martin,

 Thanks for your help.

 When i comment the Autochanger section in the SD conf it works.
 so i am a bit lost on why my autochanger section crash the sd daemon

 here is my sd conf who cause the problems :
 #
 # Devices supported by this Storage daemon
 # To connect, the Director's bacula-dir.conf must have the
 #  same Name and MediaType.
 #
 Autochanger {
   Name = Autochanger
   Device = Drive-1
   Changer Command = /etc/bacula/mtx-changer %c %o %S %a %d
   Changer Device = /dev/sg2
 }

 Device {
   Name = Drive-1
   Media Type = 8mm
   Archive Device = /dev/nst0
   Hardware end of medium = No;
   AutomaticMount = yes;   # when device opened, read it
   AlwaysOpen = Yes;
   RemovableMedia = yes;
   RandomAccess = no;
  AutoChanger = yes
   Alert Command = sh -c 'tapeinfo -f %c |grep TapeAlert|cat'
 }

 That is strange -- I tried your settings above in 1.38.5 on FreeBSD
4.9
 and it
 started without problems.  Maybe a compiler bug?

 __Martin

Yes very strange.
is the way i declare my autochanger device is wrong ?


It looks OK to me, unless you have somethign else in the conf that 
breaks it.




what sort of compiler bugs you are thinking about.


Nothing in particular, but I don't see how it can crash on the line that 
gdb

reported.

__Martin



thanks





 thanks
 - Original Message -  From: Martin Simmons
[EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Cc: bacula-users@lists.sourceforge.net
 Sent: Tuesday, January 24, 2006 11:27 AM
 Subject: Re: [Bacula-users] Problem to start Sd


  On Mon, 23 Jan 2006 07:58:38 -0500, Bissot_j
  [EMAIL PROTECTED]
  said:
 
  Hi
  thanks, i run  bacula-sd  under debugger and got this ouput
  someone can help me ?
 
===
  gdb ./bacula-sdThis GDB was configured as
  i586-mandriva-linux-gnu...Using
  host libthread_db library /lib/tls/libthread_db.so.1.
 
  (gdb) run -s -f -d 99 -c /etc/bacula/bacula-sd.conf
  Starting program: /usr/sbin/bacula-sd -s -f -d 99 -c
  /etc/bacula/bacula-sd.conf
  Reading symbols from shared object read from target 
  memory...done.

  Loaded system supplied DSO at 0xe000
  [Thread debugging using libthread_db enabled]
  [New Thread -1213241664 (LWP 23855)]
  bacula-sd: stored_conf.c:613 Inserting director res: cow-mon
 
  Program received signal SIGSEGV, Segmentation fault.
  [Switching to Thread -1213241664 (LWP 23855)]
  0x0804dff4 in init_autochangers () at autochanger.c:48
  48   if (!device-changer_command 
  changer-changer_command) {
  Current language:  auto; currently c++
  (gdb) thread apply all bt
 
  Thread 1 (Thread -1213241664 (LWP 23855)):
  #0  0x0804dff4 in init_autochangers () at autochanger.c:48
  #1  0x0804c170 in main (argc=Variable argc is not available.
  ) at stored.c:399
  #2  0xb7b0ce40 in __libc_start_main () from /lib/tls/libc.so.6
  #3  0x0804b841 in _start () at ../sysdeps/i386/elf/start.S:119
  (gdb)
 
  I don't see how it can crash there really, but it might be
problem   with
  your
  

Re: [Bacula-users] Different Pools on Autochanger Archive-Pools

2006-01-27 Thread Alan Brown

On Fri, 27 Jan 2006, Daniel Amkreutz wrote:


Hello all,

a month ago i've posted some questions concerning autochangers and archive
pools, but never got any hint nor i found any answers to this in the list
archives or the handbook. Now, because time is slipping away i'm about to
cancel any further use of bacula and use homebrew scripts to automate the
backup.

1. Is it possible to assign different volumes in an autochanger to different
pools, and thus use automatic labelling. (eg. 3 Slots for incremental, 2
slots for archiving etc).


Yes


2. Are disk-to-disk-to-tape backups jet implemented  ?


No, but you can fudge it manually using bcopy.



3. How about archive pools ?


Yes.




Thanks a lot in advance,

Daniel




PS:
This sould not be misunderstood: I do not want to accuse anyone, because
he/she did not answer me, i'm very glad about bacula, but now I need to
implement a running backup system and i'm not sure, if bacula can satisfy our
needs.


---
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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users




---
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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Different Pools on Autochanger Archive-Pools

2006-01-27 Thread Daniel Amkreutz
Thanks a lot !

Daniel


---
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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Please remove me from the list

2006-01-27 Thread blythe44




Re: [Bacula-users] Please remove me from the list

2006-01-27 Thread Dan Langille
On 27 Jan 2006 at 14:44, [EMAIL PROTECTED] wrote:

 

Please remove yourself.  You got yourself on the list.  You should 
get yourself off the list.

Every email contains removal instruction in the email headers.  They 
look like this:


List-Unsubscribe: 
https://lists.sourceforge.net/lists/listinfo/bacula-users,
mailto:bacula-users-
[EMAIL PROTECTED]
List-Id: Bacula user's email list for support and discussions bacula-
users.lists.sourceforge.net
List-Post: mailto:bacula-users@lists.sourceforge.net
List-Help: mailto:bacula-users-
[EMAIL PROTECTED]
List-Subscribe: https://lists.sourceforge.net/lists/listinfo/bacula-
users,
mailto:bacula-users-
[EMAIL PROTECTED]
List-Archive: 
http://sourceforge.net/mailarchive/forum.php?forum=bacula-users



One of those links is what you need.

Best wishes.

-- 
Dan Langille : http://www.langille.org/
BSDCan - The Technical BSD Conference - http://www.bsdcan.org/




---
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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Please remove me from the list

2006-01-27 Thread Michael Galloway
you can manage your own subscriptions here:

http://lists.sourceforge.net/lists/listinfo/bacula-users

-- michael

On Fri, Jan 27, 2006 at 02:44:54PM +, [EMAIL PROTECTED] wrote:



---
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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Please remove me from the list

2006-01-27 Thread Ralf Gross
[EMAIL PROTECTED] schrieb:

 [nothing]

Sorry, I dont' have your password to do this. But you can do it:

http://lists.sourceforge.net/lists/listinfo/bacula-users

Ralf


---
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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Bacula-WEB]

2006-01-27 Thread Ryan Novosielski
You sure you have sufficient perl (with DBI::DBD, etc.) to make this 
work? fetchrow is a DBI call.


 _  _ _  _ ___  _  _  _
|Y#| |  | |\/| |  \ |\ |  | | Ryan Novosielski - User Support Spec. III
|$| |__| |  | |__/ | \| _| | [EMAIL PROTECTED] - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent.| IST/AST - NJMS Medical Science Bldg - C630 




Marcolino wrote:


Hello,

 


I have a BUG on a bacula-web gui:

 


Call to undefined function: fetchrow()

 


My installation ENV

 


Apache 2.x

Php 4

PostgreSQL

Bacula 1.36.3

BaculaWEB 1.38

 


Regards,

 


/MARCOLINO, Alexandre J
Especialista Linux/

/Linux Counter #160521 - http://counter.li.org/
CA Modas Ltda.
Al. Araguaia, 1222 - Alphaville - Barueri/SP
Tel.: (11) 2134-1923
/[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

 



Esta mensagem é confidencial e pode estar amparada por normas legais. 
Se você recebeu esta mensagem por engano, por favor nos avise 
respondendo ao e-mail e posteriormente o apague de seu sistema; você 
não deve copiar ou divulgar o conteúdo desta mensagem. Todas as 
mensagens enviadas a esta empresa, ou dela recebidas, podem ser 
monitoradas para assegurar a concordância com políticas internas e 
proteger nosso negócio.


*Antes de imprimir pense em seu compromisso com o Meio Ambiente.*


This message is confidential. It may also be privileged or otherwise 
protected by work product immunity or other legal rules. If you have 
received it by mistake please let us know by reply and then delete it 
from your system; you should not copy the message or disclose its 
contents to anyone. All messages sent to and from this company may be 
monitored to ensure compliance with internal policies and to protect 
our business.* *


*Before printing, think about the Environment.*





---
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://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Network Timeout errors

2006-01-27 Thread Arno Lehmann

Hi,

On 1/27/2006 2:23 AM, Andreas Freyvogel wrote:

hello,

We have been having many of our backups failing due to a network timeout
error (Network error on data channel. ERR=Operation timed out).

If I do them one at a time they work fine, so I am leaning towards believing
that this may be an issue with running too many concurrent jobs.


Hard to say for me. I'd rather suspect that either you have a network 
problem, so that somewhere in between a switch drops packets, or a 
firewall drops connections because it thinks a host is being flooded.


If you've got a managed switch, investigating there might reveal 
something. And check (or, for testing purposes) turn off all firewalls 
between your hosts.


Else I'd simply suggest to observe the existing connections and traffic 
on them, for example using iptraf, and see if connections are closed 
when there's heaviy traffic.


Basically, Bacula can handle multiple connections quite well, but I 
never tried with more than five or so jobs running simultaneously. More 
is not reasonable given my hardware :-)


Arno


As it is now we have the following defined:

Director configuration:
---
Director {
Maximum Concurrent Jobs = 20
Storage {
Maximum Concurrent Jobs = 8

Storage configuration:
--
Storage {
Maximum Concurrent Jobs = 20


thanks .. any assistance or advice is appreciated.
-Andreas


Andreas Freyvogel |
System Administrator  |  To do is to be. -- Plato
  |
Uniserve Communications Corp. |  To be is to do. -- Kant
direct: 604.647.0602  |
cell:   604.308.2497  |  Do be do be do. -- Sinatra
Fax:604-687-8130  |
-




---
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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
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


---
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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula-fd exits with status 208

2006-01-27 Thread Robert W Hartzell
On Fri, 2006-01-27 at 04:33, Martin Simmons wrote:
  On Thu, 26 Jan 2006 20:06:02 -0700, Robert W Hartzell [EMAIL 
  PROTECTED] said:
  
  Here's the tail end of the output of truss -p PID after executing
  ./bacula-fd stop
  
  /2: lwp_park(0xD1979F40, 0) (sleeping...)
  /2: lwp_park(0xD1979F40, 0) Err#62 ETIME
  /2: time()  = 1138329419
  /2: time()  = 1138329419
  /2: lwp_park(0xD1979F40, 0) (sleeping...)
  /1: Received signal #15, SIGTERM, in pollsys() [caught]
  /1: pollsys(0x08045FC0, 1, 0x, 0x)  Err#4 EINTR
  /1: lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0xFFF7) = 0xFFBFFEFF
  [0x]
  /1: unlink(/opt/local/var/bacula/working/bacula-fd.9102.state) = 0
  /1: open64(/opt/local/var/bacula/working/bacula-fd.9102.state,
  O_WRONLY|O_CREAT, 0640) = 4
  /1: write(4,  B a c u l a   S t a t e.., 188) = 188
  /1: llseek(4, 188, SEEK_SET)= 188
  /1: write(4, \0\0\0\0, 4) = 4
  /1: llseek(4, 0, SEEK_CUR)  = 192
  /1: llseek(4, 0, SEEK_SET)  = 0
  /1: write(4,  B a c u l a   S t a t e.., 188) = 188
  /1: close(4)= 0
  /1: unlink(/opt/local/var/run/bacula/bacula-fd.9102.pid) = 0
  /1: lwp_unpark(2)   = 0
  /2: lwp_park(0xD1979F40, 0) = 0
  /2: lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0xFFF7) = 0xFFBFFEFF
  [0x]
  /2: lwp_exit()
  /1: lwp_wait(2, 0x08045B98) = 0
  /1: _exit(15)
  
  I don't know if this is helpful.
 
 Thanks, we're getting nearer.  This clears up the confusion about which exit
 status is 208: it is from the bacula-fd svc program, not the bacula-fd daemon.
 
 Is /opt/local/svc/support-files/bacula-fd a script?  Maybe its contents will
 reveal why it exits with 208?
 
 __Martin

First let me apologize for miss-leading you and wasting your time. The
script /opt/local/svc/support-files/bacula-fd is the same exact script
that would have been installed in the /etc/init.d directory during the
make install-autostart-fd. It's just moved to a different location. A
quick look at this page http://www.sun.com/bigadmin/content/selfheal/
would explain far better then I could why.
Basically sun is moving services from /etc/init.d and the rc*.d
directories and putting them under the control of a daemon that is
responsible for ensuring that a particular service is running. 

All of the above output was obtained by starting and then stopping
bacula-fd manually from the bacula install directory (/opt/local)
independent of svc control. Svc calls this script to start, restart, or
stop bacula. When stopping bacula svc gets a return value thats not 0 so
the service is put into maintenance mode and not restarted as it should
be requiring operator intervention to clear the status of the service.

This is the script responsible for starting and stopping bacula:

#! /bin/sh
#
# bacula   This shell script takes care of starting and stopping
#  the bacula File daemon.
#
# chkconfig: 2345 91 9
# description: It comes by night and sucks the vital essence from your
computers.
#
#  For Bacula release 1.38.5 (18 January 2006) -- solaris
#

case $1 in
start)
   echo Starting the Bacula File daemon: 
   /opt/local/sbin/bacula-fd $2 -c /opt/local/etc/bacula-fd.conf
   RETVAL=$?
   echo
   [ $RETVAL -eq 0 ]  touch /opt/local/var/bacula/subsys/bacula-fd
   ;;
stop)
   echo Stopping the Bacula File daemon: 
   pkill -x bacula-fd
   RETVAL=$?
   echo
   [ $RETVAL -eq 0 ]  rm -f /opt/local/var/bacula/subsys/bacula-fd
   ;;
restart)
   $0 stop
   sleep 5
   $0 start
   ;;
*)
   echo Usage: $0 {start|stop|restart}
   exit 1
   ;;
esac
exit 0

I'm no expert but I think that the commands:

/opt/local/bin/bacula stop
echo $?
208

/opt/local/bin/bacula start
echo $?
0

show the exit status of the bacula script which appears to be (208) and
(0).

I appreciate your time on this issue, and I hope this is a more clear
explanation about what's happening.
Thanks, Robert.

P.S I will not be able to reply if needed until this evening. 

  



---
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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Bacula-WEB]

2006-01-27 Thread Arno Lehmann

Hi,

On 1/27/2006 4:25 PM, Ryan Novosielski wrote:
You sure you have sufficient perl (with DBI::DBD, etc.) to make this 
work? fetchrow is a DBI call.


Not with php :-P

fetchrow ist just the common name to fetch, well, a row of data. Since 
the name fits so well to the task, it's used in many APIs.


Anyway, it's well possible that some php or PEAR module is missing. 
There have been some discussions about that recently, and Juan said he 
was working on it.


Look through the archive for the relevant mails...

Arno


 _  _ _  _ ___  _  _  _
|Y#| |  | |\/| |  \ |\ |  | | Ryan Novosielski - User Support Spec. III
|$| |__| |  | |__/ | \| _| | [EMAIL PROTECTED] - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent.| IST/AST - NJMS Medical Science Bldg - C630


Marcolino wrote:



Hello,

 


I have a BUG on a bacula-web gui:

 


Call to undefined function: fetchrow()

 


My installation ENV

 


Apache 2.x

Php 4

PostgreSQL

Bacula 1.36.3

BaculaWEB 1.38

 


Regards,

 


/MARCOLINO, Alexandre J
Especialista Linux/

/Linux Counter #160521 - http://counter.li.org/
CA Modas Ltda.
Al. Araguaia, 1222 - Alphaville - Barueri/SP
Tel.: (11) 2134-1923
/[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

 



Esta mensagem é confidencial e pode estar amparada por normas legais. 
Se você recebeu esta mensagem por engano, por favor nos avise 
respondendo ao e-mail e posteriormente o apague de seu sistema; você 
não deve copiar ou divulgar o conteúdo desta mensagem. Todas as 
mensagens enviadas a esta empresa, ou dela recebidas, podem ser 
monitoradas para assegurar a concordância com políticas internas e 
proteger nosso negócio.


*Antes de imprimir pense em seu compromisso com o Meio Ambiente.*


This message is confidential. It may also be privileged or otherwise 
protected by work product immunity or other legal rules. If you have 
received it by mistake please let us know by reply and then delete it 
from your system; you should not copy the message or disclose its 
contents to anyone. All messages sent to and from this company may be 
monitored to ensure compliance with internal policies and to protect 
our business.* *


*Before printing, think about the Environment.*





---
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://sel.as-us.falkag.net/sel?cmd=kkid3432bid#0486dat1642
___
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



---
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://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula-fd exits with status 208

2006-01-27 Thread Ryan Novosielski
As an aside, I would really appreciate you releasing your manifest file 
to the list when it is finished (or even now -- it may actually help 
solve the problem). Having written one myself for MySQL I believe it 
was, I know what a timesaver it is to have someone hand you a good one. :)


Thanks.

 _  _ _  _ ___  _  _  _
|Y#| |  | |\/| |  \ |\ |  | | Ryan Novosielski - User Support Spec. III
|$| |__| |  | |__/ | \| _| | [EMAIL PROTECTED] - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent.| IST/AST - NJMS Medical Science Bldg - C630 




Robert W Hartzell wrote:

On Fri, 2006-01-27 at 04:33, Martin Simmons wrote:
  

On Thu, 26 Jan 2006 20:06:02 -0700, Robert W Hartzell [EMAIL PROTECTED] said:
  

Here's the tail end of the output of truss -p PID after executing
./bacula-fd stop

/2: lwp_park(0xD1979F40, 0) (sleeping...)
/2: lwp_park(0xD1979F40, 0) Err#62 ETIME
/2: time()  = 1138329419
/2: time()  = 1138329419
/2: lwp_park(0xD1979F40, 0) (sleeping...)
/1: Received signal #15, SIGTERM, in pollsys() [caught]
/1: pollsys(0x08045FC0, 1, 0x, 0x)  Err#4 EINTR
/1: lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0xFFF7) = 0xFFBFFEFF
[0x]
/1: unlink(/opt/local/var/bacula/working/bacula-fd.9102.state) = 0
/1: open64(/opt/local/var/bacula/working/bacula-fd.9102.state,
O_WRONLY|O_CREAT, 0640) = 4
/1: write(4,  B a c u l a   S t a t e.., 188) = 188
/1: llseek(4, 188, SEEK_SET)= 188
/1: write(4, \0\0\0\0, 4) = 4
/1: llseek(4, 0, SEEK_CUR)  = 192
/1: llseek(4, 0, SEEK_SET)  = 0
/1: write(4,  B a c u l a   S t a t e.., 188) = 188
/1: close(4)= 0
/1: unlink(/opt/local/var/run/bacula/bacula-fd.9102.pid) = 0
/1: lwp_unpark(2)   = 0
/2: lwp_park(0xD1979F40, 0) = 0
/2: lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0xFFF7) = 0xFFBFFEFF
[0x]
/2: lwp_exit()
/1: lwp_wait(2, 0x08045B98) = 0
/1: _exit(15)

I don't know if this is helpful.
  

Thanks, we're getting nearer.  This clears up the confusion about which exit
status is 208: it is from the bacula-fd svc program, not the bacula-fd daemon.

 
  

Is /opt/local/svc/support-files/bacula-fd a script?  Maybe its contents will
reveal why it exits with 208?

__Martin



First let me apologize for miss-leading you and wasting your time. The
script /opt/local/svc/support-files/bacula-fd is the same exact script
that would have been installed in the /etc/init.d directory during the
make install-autostart-fd. It's just moved to a different location. A
quick look at this page http://www.sun.com/bigadmin/content/selfheal/
would explain far better then I could why.
Basically sun is moving services from /etc/init.d and the rc*.d
directories and putting them under the control of a daemon that is
responsible for ensuring that a particular service is running. 


All of the above output was obtained by starting and then stopping
bacula-fd manually from the bacula install directory (/opt/local)
independent of svc control. Svc calls this script to start, restart, or
stop bacula. When stopping bacula svc gets a return value thats not 0 so
the service is put into maintenance mode and not restarted as it should
be requiring operator intervention to clear the status of the service.

This is the script responsible for starting and stopping bacula:

#! /bin/sh
#
# bacula   This shell script takes care of starting and stopping
#  the bacula File daemon.
#
# chkconfig: 2345 91 9
# description: It comes by night and sucks the vital essence from your
computers.
#
#  For Bacula release 1.38.5 (18 January 2006) -- solaris
#

case $1 in
start)
   echo Starting the Bacula File daemon: 
   /opt/local/sbin/bacula-fd $2 -c /opt/local/etc/bacula-fd.conf
   RETVAL=$?
   echo
   [ $RETVAL -eq 0 ]  touch /opt/local/var/bacula/subsys/bacula-fd
   ;;
stop)
   echo Stopping the Bacula File daemon: 
   pkill -x bacula-fd
   RETVAL=$?
   echo
   [ $RETVAL -eq 0 ]  rm -f /opt/local/var/bacula/subsys/bacula-fd
   ;;
restart)
   $0 stop
   sleep 5
   $0 start
   ;;
*)
   echo Usage: $0 {start|stop|restart}
   exit 1
   ;;
esac
exit 0

I'm no expert but I think that the commands:

/opt/local/bin/bacula stop
echo $?
208

/opt/local/bin/bacula start
echo $?
0

show the exit status of the bacula script which appears to be (208) and
(0).

I appreciate your time on this issue, and I hope this is a more clear
explanation about what's happening.
Thanks, Robert.

P.S I will not be able to reply if needed until this evening. 

  





Re: [Bacula-users] Please remove me from the list

2006-01-27 Thread Russell Howe
If you're really stuck with usage of the list, email the list admin at
[EMAIL PROTECTED]

Don't bother the list with administrivia.

-- 
Russell Howe, bacula-users moderator
[EMAIL PROTECTED]


---
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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Large Bacula databases and bacula's dbcheck

2006-01-27 Thread deann corum

Hello,

I'm wondering what the largest known Bacula database in existence is. 
This is mostly a curiosity point. The actual problem follows.


Our Bacula db is 13 GB and we recently tried to run (Bacula's) dbcheck 
on it. However, it ran for 2+ days and meanwhile, our backups weren't 
running meanwhile so we had to stop (abort, whatever terminology you 
prefer) the process.


We're running MySQL 3.23 and Bacula 1.36.3

We weren't originally having any issues with the database or Bacula, but 
I've read that Bacula dbcheck should be run from time to time (every 6 
months is recommended for some of the checks).


It didn't appear from the output (ie: no orphaned or duplicate records 
found) that the database had been modified up to the point it was stopped.


Of course we did a dump of the db before starting dbcheck but it took an 
equally long time to restore (ie: mysql bacula  baculabackup.sql).


Can anyone provide more information about maximum bacula db sizes, 
exactly what Bacula's dbcheck does, how often (or if at all) it should 
be run for maintenance purposes, particularly if there are no issues 
with the database to begin with (if it ain't broke don't fix it), and 
what condition it is likely to leave the db in if it is aborted?


Is it better to just use just the standard mysql utilities to maintain 
the db? Is there a difference?


--
Deann Corum
System Administrator
Nicholas School of the Environment and Earth Sciences
919-613-8148


---
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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Re: Bacula 1.36.3: backup ok, restore fails

2006-01-27 Thread Cosimo Streppone
2006/1/27, Sam Briesemeister [EMAIL PROTECTED]:
 Cosimo,

 [...]
 Removing the optimizations worked for me, but I suspect that if
 you've removed them and it's still not working, then there's some other
 configuration/options that your compiler is using and it's causing errors.
 ... so you've solved your problem by updating?

Yes, updating client and director to same versions of bacula
(1.38.2) solved the problem and now restore works perfectly.

--
Cosimo


---
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://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] monthy full backup - archive

2006-01-27 Thread Kel Raywood

Arno Lehmann wrote:

...
Anyway, setting them [tapes in a pool] to status Archive either 
manually or using a script should do what you need - it marks them as 
unavailable for Bacula, and you can easily track them in the catalog.


Ralf Gross wrote:
I'll do it that way, but I'm still curious, why this option is marked 
as not yet implemented. It seems that you use it that way, thus I hope 
bacula honors this flag and won't overwrite my tapes by accident.


I don't think that the Archive flag is intended for the use you want.
I think that it's supposed to indicate that the volume entry will 
be removed from the catalog when the volume is unmounted.


I don't recall where I saw it and I just searched the manual and 
couldn't find it so I could be wrong about this.  However, to be on the 
safe side, I don't think that you should use it. Instead use settings 
similar to the following for your archive pool.


Pool {
   Name = MY_ARCHIVE
   Pool Type = Backup
   Recycle = no
   Auto Prune = no
   Volume Retention = 30 years
   Accept Any Volume = yes
}

Also, in the definition of the client, set Auto Prune = no.  This will 
ensure that job and file-entries are not removed from the catalog.

If you use the same client for non-archive jobs, you can specify
Prune Jobs = yes and Prune Files = yes in the job-resource.

Hope this helps,

Kelvin


---
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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Different Pools on Autochanger Archive-Pools

2006-01-27 Thread Kel Raywood

Daniel Amkreutz wrote:

2. Are disk-to-disk-to-tape backups jet implemented  ?


Alan Brown replied:

No, but you can fudge it manually using bcopy.


Disk spooling is implimented with no need for fudging.

If you mean something like making an identical copy on another disk and 
then backing that up, you could do this with rsync in a script that is 
run before a job.



3. How about archive pools ?


Yes.


There is some confusion on the intended meaning of Pool Type =Archive 
and it is marked as not-yet-implimented in the manual.  However, you can 
a achieve the desired result through appropriate settings in your pool, 
client and job resources.  See my recent post to the thread monthy full 
backup - archive.


Kel



---
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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] .bsr files

2006-01-27 Thread Arno Lehmann

Hi,

On 1/27/2006 7:34 PM, Dave wrote:

Hello,
   I've got two questions on .bsr files. First, when a job runs and a 
.bsr file is created by the job if one is already in the location 
specified in the job definition is it overwritten or appended to?


That is, as far as I know, much more complicated.
Bootstrap files are always completely overwriten when a full backup 
happens. An incremental backup only appends to the bootstrap file.
Differential backups should be the most interesting case: As far as I 
understand, in this case all data from previous differential or 
incremental backups should be purged from the bootstrap file, the last 
full backup would be kept, and the data for the new differential backup 
would be appended. (Technically, I suspect that re-creating the whole 
file whenever it's written is the easier solution, but what I described 
*should* be what you see when you observe the files contents.)


All as far as I know, recalling some of Kern's mails, and without 
actually verifying, either in the code or the manual.


And 
second, if they're overwritten is it possible to have a filename like 
systemname-formatteddate.bsr?


No, not as far as I know. Given the above, it would not be very useful 
to store a bootstrap file for an incremental backup only.


It would be nice, though, to have the usual variable expansion working 
in the bootstrap file definition, so you only define it once like %c.bsr 
(assuming %c would expand to the client name) in the default settings.



Thanks.


Always a pleasure :-)

By the way - why would you want bootstrap files for each job, 
independant of each other? I understand that these files are the 
quickest way to recover in a real desaster situation, i.e. without 
catalog. But in that case you want full restores, I'd say...


Arno


Dave.



---
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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
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


---
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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Large Bacula databases and bacula's dbcheck

2006-01-27 Thread Arno Lehmann

Hi,

On 1/27/2006 6:15 PM, deann corum wrote:

Hello,

I'm wondering what the largest known Bacula database in existence is. 
This is mostly a curiosity point. The actual problem follows.


My catalog DB is much smaller, but it's running on a slow machine. 
dbcheck needs hours, not days.


Our Bacula db is 13 GB and we recently tried to run (Bacula's) dbcheck 
on it. However, it ran for 2+ days and meanwhile, our backups weren't 
running meanwhile so we had to stop (abort, whatever terminology you 
prefer) the process.


We're running MySQL 3.23 and Bacula 1.36.3

We weren't originally having any issues with the database or Bacula, but 
I've read that Bacula dbcheck should be run from time to time (every 6 
months is recommended for some of the checks).


Hmm. As you mention below: If it ain't broke...

dbcheck is, assuming the catalog itself is in a coherent state, mainly 
useful to remove records you don't need anymore. This might be entries 
in the File and Path tables (although I wouldn't expect to have many 
orphaned entries there unless you remove a whole class of similar 
machines from backups) and job records from restore jobs.


I had cases where there was something to be cheked in the catalog, but 
that always had two reasons: Either a database server crash while a 
backup job was running (not very common, no worries) or when I played 
around in the catalog manually ;-)


It didn't appear from the output (ie: no orphaned or duplicate records 
found) that the database had been modified up to the point it was stopped.


Good.

Of course we did a dump of the db before starting dbcheck but it took an 
equally long time to restore (ie: mysql bacula  baculabackup.sql).


Hmm. I never tried such a database reload with a really big DB, but I 
think there are some hints in the MySQL manual. IIRC, you can turn of 
indexing operations during such an operation, and only later rebuild the 
indexes, which is said to improve performance a lot. Of course, there's 
a downside: uniqueness checking might not work in that case, so you 
better only try it when you know your data to be ok.


There might be other options, but I'm not sure if they were implemented 
in the version you run: --extended-insert is one of those possibly 
helpful options, and -disable-keys is disabling indexes during reloading 
the database, but requires MySQL 4 and works with MyISAM tables only. 
--add-locks might also do some good.



Can anyone provide more information about maximum bacula db sizes,


No idea. All the ones I know from experience are smaller than yours is.


exactly what Bacula's dbcheck does,


Not more information than what I wrote above, and what is in the manual.

how often (or if at all) it should 
be run for maintenance purposes, particularly if there are no issues 
with the database to begin with (if it ain't broke don't fix it),


I don't see any real reason for it except that it might free up some 
unused space. But hard disks are cheap today :-)


and 
what condition it is likely to leave the db in if it is aborted?


It shouldn't do any harm. After all, it *should* only touch records for 
deletion which aren't referenced in the catalog anymore, which wouldn't 
be missed. It doesn't renumber any IDs (which might break the relations 
in the catalog in case it crashed), and it only uses the database API, 
so I'd say there's nothing to fear.


Is it better to just use just the standard mysql utilities to maintain 
the db? Is there a difference?


There is at least one difference: The database tools can't decide if any 
row of data in the catalog database is still necessary or should be 
deleted, and it can't show inconsistencies there.


On the other hand, with the database tools (mainly mysqldump) and 
perhaps a little scripting it should be possible to re-number all IDs.


Well, coming to the point: It might be possible that you're missing 
indexes you need for faster database operation. There were versions 
where not everything that is considered now was created, and it's even 
possible that you removed some index to allow greater day-to-day speed. 
You might compare with what I have in the File table (usually, the 
biggest table in the catalog):



mysql show index from File;
+---+++--+-+---+-+--++--++-+
| Table | Non_unique | Key_name   | Seq_in_index | Column_name | Collation | 
Cardinality | Sub_part | Packed | Null | Index_type | Comment |
+---+++--+-+---+-+--++--++-+
| File  |  0 | PRIMARY|1 | FileId  | A |
12523154 | NULL | NULL   |  | BTREE  | |
| File  |  1 | JobId  |1 | JobId   | A |
 398 | NULL | NULL   |  | BTREE  | |
| File  |  1 | PathId |

Re: [Bacula-users] .bsr files

2006-01-27 Thread Attila Fülöp

Dave wrote:

Hello,
   I've got two questions on .bsr files. First, when a job runs and a 
.bsr file is created by the job if one is already in the location 
specified in the job definition is it overwritten or appended to? And 
second, if they're overwritten is it possible to have a filename like 
systemname-formatteddate.bsr?

Thanks.
Dave.


What i actually do, is to mail them off site in a RunAfter script:

# generate optimized bsrs for the backup server
echo | /usr/local/sbin/bconsole -c /usr/local/etc/bconsole.conf 21 /dev/null 
EOF
restore client=stat-fd select all
2
done
no
quit
EOF
cat /var/db/bacula/restore.bsr | mail -s Bootstrap of Stat / (root) [EMAIL 
PROTECTED]

I think this is described somewhere in the manual.




---
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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users






---
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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Large Bacula databases and bacula's dbcheck

2006-01-27 Thread Attila Fülöp

Well I run bacula 1.38.5 with postgresql 7.4 on a dual opteron 248
(2.2GHz) on FreeBSD 5.4 and dbcheck on a 2GB database needs 1-2
minutes to complete. 1.36 performed equally well, whereas with
SQLite it didn't finish within a week.


deann corum wrote:

Hello,

I'm wondering what the largest known Bacula database in existence is. 
This is mostly a curiosity point. The actual problem follows.


Our Bacula db is 13 GB and we recently tried to run (Bacula's) dbcheck 
on it. However, it ran for 2+ days and meanwhile, our backups weren't 
running meanwhile so we had to stop (abort, whatever terminology you 
prefer) the process.


We're running MySQL 3.23 and Bacula 1.36.3

We weren't originally having any issues with the database or Bacula, but 
I've read that Bacula dbcheck should be run from time to time (every 6 
months is recommended for some of the checks).


It didn't appear from the output (ie: no orphaned or duplicate records 
found) that the database had been modified up to the point it was stopped.


Of course we did a dump of the db before starting dbcheck but it took an 
equally long time to restore (ie: mysql bacula  baculabackup.sql).


Can anyone provide more information about maximum bacula db sizes, 
exactly what Bacula's dbcheck does, how often (or if at all) it should 
be run for maintenance purposes, particularly if there are no issues 
with the database to begin with (if it ain't broke don't fix it), and 
what condition it is likely to leave the db in if it is aborted?


Is it better to just use just the standard mysql utilities to maintain 
the db? Is there a difference?






---
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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] monthy full backup - archive

2006-01-27 Thread Arno Lehmann

Hi,

On 1/27/2006 6:26 PM, Kel Raywood wrote:

Arno Lehmann wrote:


...
Anyway, setting them [tapes in a pool] to status Archive either 
manually or using a script should do what you need - it marks them as 
unavailable for Bacula, and you can easily track them in the catalog.



Ralf Gross wrote:

I'll do it that way, but I'm still curious, why this option is marked 
as not yet implemented. It seems that you use it that way, thus I hope 
bacula honors this flag and won't overwrite my tapes by accident.



I don't think that the Archive flag is intended for the use you want.
I think that it's supposed to indicate that the volume entry will be 
removed from the catalog when the volume is unmounted.


Oops... that would be not so good with my suggestion... still, I wonder 
why that would be the intended use. Admittedly, my understanding of what 
an archived volme is doesn't have to be coherent with what Kern thinks.


I don't recall where I saw it and I just searched the manual and 
couldn't find it so I could be wrong about this.  However, to be on the 
safe side, I don't think that you should use it. Instead use settings 
similar to the following for your archive pool.


Pool {
   Name = MY_ARCHIVE
   Pool Type = Backup
   Recycle = no
   Auto Prune = no
   Volume Retention = 30 years
   Accept Any Volume = yes
}


Sure, you can do that, but it's got two problems: First, you need to 
duplicate the pool. Then, when you wna to reuse the archived volumes 
you've got to change the pool they belong to.


These are the main reasons why I thought the volume attribute Archive 
would best be used to mark valid volumes which shall not be pruned and 
should only be requested by Bacula during a restore.


Also, in the definition of the client, set Auto Prune = no.  This will 
ensure that job and file-entries are not removed from the catalog.

If you use the same client for non-archive jobs, you can specify
Prune Jobs = yes and Prune Files = yes in the job-resource.


One more thing to duplicate... I guess we'll have to nag Kern to 
implement archiving ;-)


Or, of course, we discuss this until we reach consensus on how archiving 
should work, and how it can be implemented. The -devel list would be the 
better place for that, once we know what people *want*. Apart from that, 
I think there was a discussion where that subject - Archiving - was touched.


The ongoing development of job migration makes that a necessity, in my 
opinion, because migrating from regular pools to archiving ones might be 
one of the main uses of job migration. I my opinion, of course.



Hope this helps,

Kelvin


---
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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
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


---
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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problem restoring windows files

2006-01-27 Thread Arno Lehmann

Hi,

On 1/27/2006 1:39 PM, Angela Gavazzi wrote:

Am Freitag, 27. Januar 2006 12.38 schrieb Arno Lehmann:


Hello,

On 1/27/2006 11:54 AM, Angela Gavazzi wrote:


Hallo!

I'm using bacula 1.36.2 (deb packages) under Debian Sarge to backup
linux and windows 2000 clients.
Now I have to restore a folder on a windows client - I know I restored
in the past without problems - and run in this error:
Fatal error: REGEX ^.?*$ compile error. ERR=REGEX not available on this
system.
I tested restore to NT4 and to W2K, it's the same.


Yes, regular expressions (probably used in your fileset for the restore)
don't work on windows.


Only for understanding:
I tryed to restore a specific file wih the full path and/or a folder like 
this: f:/folder1/folder2/ 
I think I is nearly the same I also did in the past.
Where do regexp come into play if I give the exact path? Excuse the case it 
is a stupid question...


Ok, keep in mind that this is not verified...

During a restore, you have to select a fileset. Includes and excludes 
from that fileset are sent to the FD, which, in your case, complains 
about the regular expressions.


IIRC, that fileset does not have to be the one you used for the backup, 
so you can use your usual windows client fileset, for example.


Simply look up your restore job template in the director configuration, 
and see if the fileset referenced therein uses regular expressions. If 
it does, and another fileset without REs works as expected, I'm right :-)





when trying to restore to a samba share I had this:
Error: Win32 data stream not supported on this Client.
As I didn't use the portable mode I understand it.


Well, as far as I know the current version supports restores of
non-portable data to unix/linux FDs, so that might offer an emergency
mode of recovery:

Build the SD and accompanying tools from version 1.38.5. No need to
install or actually use them on a production system - simly try using
the bls and bextract utilities to get to your data.



Will try it.


And, did it work?

Arno





Restores on Linux client work without Problems

Can anybody point me to the problem?


Problem is hopefully described above. the solution might be to choose
another fileset for the restores, for example one that simply includes /
and doesn't exclude anything.



Thank you very much,


Hope this helps,

Arno



Thank you very much.
angela



Angela







---
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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users




---
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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
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


---
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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problem to start Sd

2006-01-27 Thread Martin Simmons
 On Fri, 27 Jan 2006 08:44:30 -0500, Bissot_j [EMAIL PROTECTED] said:
 
 I dont think something else in the conf broke it.
 because it workl fine when i remove autochanger section :(

Possibly.


 So now what next ?
 what i can do to be able use the autochanger ?
 in the : mtx-changer %c %o %S %a %d
 what is %c %o %S %a %d ?
 
 the mtx-changer can be the prob , i compile MTX i will try to replace
 mtx-changer by mtx but need to know what the arg mean.

I think the only way is to either track it down via gdb or annotate the source
of init_autochangers with printfs to find out why it crashes.  Sorry, I don't
have time to devote to that.

__Martin


 
 thanks a lot
 
 - Original Message - 
 From: Martin Simmons [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Cc: bacula-users@lists.sourceforge.net
 Sent: Friday, January 27, 2006 6:46 AM
 Subject: Re: [Bacula-users] Problem to start Sd
 
 
  On Thu, 26 Jan 2006 08:42:07 -0500, Bissot_j [EMAIL PROTECTED] 
  said:
 
  - Original Message - 
  From: Martin Simmons [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Cc: bacula-users@lists.sourceforge.net
  Sent: Wednesday, January 25, 2006 4:33 PM
  Subject: Re: [Bacula-users] Problem to start Sd
 
 
   On Tue, 24 Jan 2006 11:44:50 -0500, Bissot_j 
   [EMAIL PROTECTED]
   said:
  
   Hi Martin,
  
   Thanks for your help.
  
   When i comment the Autochanger section in the SD conf it works.
   so i am a bit lost on why my autochanger section crash the sd daemon
  
   here is my sd conf who cause the problems :
   #
   # Devices supported by this Storage daemon
   # To connect, the Director's bacula-dir.conf must have the
   #  same Name and MediaType.
   #
   Autochanger {
 Name = Autochanger
 Device = Drive-1
 Changer Command = /etc/bacula/mtx-changer %c %o %S %a %d
 Changer Device = /dev/sg2
   }
  
   Device {
 Name = Drive-1
 Media Type = 8mm
 Archive Device = /dev/nst0
 Hardware end of medium = No;
 AutomaticMount = yes;   # when device opened, read it
 AlwaysOpen = Yes;
 RemovableMedia = yes;
 RandomAccess = no;
AutoChanger = yes
 Alert Command = sh -c 'tapeinfo -f %c |grep TapeAlert|cat'
   }
  
   That is strange -- I tried your settings above in 1.38.5 on FreeBSD 4.9
   and it
   started without problems.  Maybe a compiler bug?
  
   __Martin
 
  Yes very strange.
  is the way i declare my autochanger device is wrong ?
 
  It looks OK to me, unless you have somethign else in the conf that breaks 
  it.
 
 
  what sort of compiler bugs you are thinking about.
 
  Nothing in particular, but I don't see how it can crash on the line that 
  gdb
  reported.
 
  __Martin
 
 
  thanks
 
  
  
  
  
   thanks
   - Original Message - 
   From: Martin Simmons [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Cc: bacula-users@lists.sourceforge.net
   Sent: Tuesday, January 24, 2006 11:27 AM
   Subject: Re: [Bacula-users] Problem to start Sd
  
  
On Mon, 23 Jan 2006 07:58:38 -0500, Bissot_j
[EMAIL PROTECTED]
said:
   
Hi
thanks, i run  bacula-sd  under debugger and got this ouput
someone can help me ?
===
gdb ./bacula-sdThis GDB was configured as
i586-mandriva-linux-gnu...Using
host libthread_db library /lib/tls/libthread_db.so.1.
   
(gdb) run -s -f -d 99 -c /etc/bacula/bacula-sd.conf
Starting program: /usr/sbin/bacula-sd -s -f -d 99 -c
/etc/bacula/bacula-sd.conf
Reading symbols from shared object read from target memory...done.
Loaded system supplied DSO at 0xe000
[Thread debugging using libthread_db enabled]
[New Thread -1213241664 (LWP 23855)]
bacula-sd: stored_conf.c:613 Inserting director res: cow-mon
   
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1213241664 (LWP 23855)]
0x0804dff4 in init_autochangers () at autochanger.c:48
48   if (!device-changer_command 
changer-changer_command) {
Current language:  auto; currently c++
(gdb) thread apply all bt
   
Thread 1 (Thread -1213241664 (LWP 23855)):
#0  0x0804dff4 in init_autochangers () at autochanger.c:48
#1  0x0804c170 in main (argc=Variable argc is not available.
) at stored.c:399
#2  0xb7b0ce40 in __libc_start_main () from /lib/tls/libc.so.6
#3  0x0804b841 in _start () at ../sysdeps/i386/elf/start.S:119
(gdb)
   
I don't see how it can crash there really, but it might be problem 
with
your
configuration.  Can you post your bacula-sd.conf?
   
Also, can you redo the above and also post the output of
   
disass init_autochangers
   
at the gdb prompt when it crashes?
   
__Martin
  
 
 
 ---
 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 

[Bacula-users] .src.rpm, build client only?

2006-01-27 Thread Ryan Novosielski
Is there a way to only build the bacula-sd rpm by using rpmbuild that 
I'm unaware of? There are a lot of deps to, say, gconsole, which is 
something I don't even need.


--
 _  _ _  _ ___  _  _  _
|Y#| |  | |\/| |  \ |\ |  | | Ryan Novosielski - User Support Spec. III
|$| |__| |  | |__/ | \| _| | [EMAIL PROTECTED] - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent.| IST/AST - NJMS Medical Science Bldg - C630 





---
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://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula-fd exits with status 208

2006-01-27 Thread Martin Simmons
 On Fri, 27 Jan 2006 08:39:43 -0700, Robert W Hartzell [EMAIL PROTECTED] 
 said:
 
 On Fri, 2006-01-27 at 04:33, Martin Simmons wrote:
   On Thu, 26 Jan 2006 20:06:02 -0700, Robert W Hartzell [EMAIL 
   PROTECTED] said:
   
   Here's the tail end of the output of truss -p PID after executing
   ./bacula-fd stop
   
   /2: lwp_park(0xD1979F40, 0) (sleeping...)
   /2: lwp_park(0xD1979F40, 0) Err#62 ETIME
   /2: time()  = 1138329419
   /2: time()  = 1138329419
   /2: lwp_park(0xD1979F40, 0) (sleeping...)
   /1: Received signal #15, SIGTERM, in pollsys() [caught]
   /1: pollsys(0x08045FC0, 1, 0x, 0x)  Err#4 EINTR
   /1: lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0xFFF7) = 0xFFBFFEFF
   [0x]
   /1: unlink(/opt/local/var/bacula/working/bacula-fd.9102.state) = 0
   /1: open64(/opt/local/var/bacula/working/bacula-fd.9102.state,
   O_WRONLY|O_CREAT, 0640) = 4
   /1: write(4,  B a c u l a   S t a t e.., 188) = 188
   /1: llseek(4, 188, SEEK_SET)= 188
   /1: write(4, \0\0\0\0, 4) = 4
   /1: llseek(4, 0, SEEK_CUR)  = 192
   /1: llseek(4, 0, SEEK_SET)  = 0
   /1: write(4,  B a c u l a   S t a t e.., 188) = 188
   /1: close(4)= 0
   /1: unlink(/opt/local/var/run/bacula/bacula-fd.9102.pid) = 0
   /1: lwp_unpark(2)   = 0
   /2: lwp_park(0xD1979F40, 0) = 0
   /2: lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0xFFF7) = 0xFFBFFEFF
   [0x]
   /2: lwp_exit()
   /1: lwp_wait(2, 0x08045B98) = 0
   /1: _exit(15)
   
   I don't know if this is helpful.
  
  Thanks, we're getting nearer.  This clears up the confusion about which exit
  status is 208: it is from the bacula-fd svc program, not the bacula-fd 
  daemon.
  
  Is /opt/local/svc/support-files/bacula-fd a script?  Maybe its contents will
  reveal why it exits with 208?
  
  __Martin
 
 First let me apologize for miss-leading you and wasting your time. The
 script /opt/local/svc/support-files/bacula-fd is the same exact script
 that would have been installed in the /etc/init.d directory during the
 make install-autostart-fd. It's just moved to a different location. A
 quick look at this page http://www.sun.com/bigadmin/content/selfheal/
 would explain far better then I could why.
 Basically sun is moving services from /etc/init.d and the rc*.d
 directories and putting them under the control of a daemon that is
 responsible for ensuring that a particular service is running. 
 
 All of the above output was obtained by starting and then stopping
 bacula-fd manually from the bacula install directory (/opt/local)
 independent of svc control. Svc calls this script to start, restart, or
 stop bacula. When stopping bacula svc gets a return value thats not 0 so
 the service is put into maintenance mode and not restarted as it should
 be requiring operator intervention to clear the status of the service.
 
 This is the script responsible for starting and stopping bacula:
 
 #! /bin/sh
 #
 # bacula   This shell script takes care of starting and stopping
 #the bacula File daemon.
 #
 # chkconfig: 2345 91 9
 # description: It comes by night and sucks the vital essence from your
 computers.
 #
 #  For Bacula release 1.38.5 (18 January 2006) -- solaris
 #
 
 case $1 in
 start)
echo Starting the Bacula File daemon: 
/opt/local/sbin/bacula-fd $2 -c /opt/local/etc/bacula-fd.conf
RETVAL=$?
echo
[ $RETVAL -eq 0 ]  touch /opt/local/var/bacula/subsys/bacula-fd
;;
 stop)
echo Stopping the Bacula File daemon: 
pkill -x bacula-fd
RETVAL=$?
echo
[ $RETVAL -eq 0 ]  rm -f /opt/local/var/bacula/subsys/bacula-fd
;;
 restart)
$0 stop
sleep 5
$0 start
;;
 *)
echo Usage: $0 {start|stop|restart}
exit 1
;;
 esac
 exit 0
 
 I'm no expert but I think that the commands:
 
 /opt/local/bin/bacula stop
 echo $?
 208
 
 /opt/local/bin/bacula start
 echo $?
 0
 
 show the exit status of the bacula script which appears to be (208) and
 (0).
 
 I appreciate your time on this issue, and I hope this is a more clear
 explanation about what's happening.

Thanks for the details.

The problem turns out to be quite funny: pkill in the above script kills the
script itself as well as killing the daemon :-)

I'm not quite sure why, but for some reason the shell running the script exits
with code 2000, which is 208 when looked at modulo 256.

Try giving the script a name not containing bacula-fd.

__Martin


---
This SF.net email is