[Bacula-users] chio-changer script bug with multiple changers

2006-02-08 Thread Alexander Kuehn
Hi,
I just attached a second changer and found a glitch in the chio-changer script 
while testing it with bacula.
I attached the patch to fix it.
Kind regards,

- --
Alexander Kuehn

Papendorf Software Engineering
Cell phone: +49 (0)177 6461165
Cell fax:   +49 (0)177 6468001
Fax @Office: +49 (0)7051 9369822
Mail @Office mailto:[EMAIL PROTECTED]

 chio-changer.patch 


chio-changer.patch
Description: chio-changer.patch


[Bacula-users] RE: [Bacula-devel] autochanger update slots bugfix

2006-01-09 Thread Alexander Kuehn
Sure,
~  chio -f /dev/ch0 status slot
slot 0: ACCESS,FULL
slot 1: ACCESS,FULL
slot 2: ACCESS,FULL
slot 3: ACCESS,FULL
slot 4: ACCESS,FULL
slot 5: ACCESS,FULL
~  chio -f /dev/ch0 status slot|wc -l
   6
~  
Kind regards,
Alex.

 -Original Message-
 From: Kern Sibbald [mailto:[EMAIL PROTECTED]
 Sent: Saturday, January 07, 2006 2:20 PM
 To: [EMAIL PROTECTED]
 Cc: Alexander Kuehn; bacula-users@lists.sourceforge.net
 Subject: Re: [Bacula-devel] autochanger update slots bugfix
 
 
 I've added your fix to the source, but in looking at the 
 line, it seems to me 
 that it is not going to handle things correctly.  Could you 
 send me the raw 
 output from:
 
${MTX} -f $CHANGER status slot
 
 Thanks.
 
 On Thursday 05 January 2006 18:58, Alexander Kuehn wrote:
  Hi,
 
  I just upgraded from bacula 1.36 to 1.38.2 and noticed that the
  chio-changer script doesnt seem to work anymore. More 
 specifically the
  update slots scan command proclaimed I had 0 slots. It 
 seems the output
  of wc -l is not good enough for bacula anymore, so here 
 is the patch for
  examples/autochangers/chio-changer to fix the problem:
 
  --- chio-changerThu Jan  5 18:46:32 2006
  +++ chio-changer.newThu Jan  5 18:45:47 2006
  @@ -119,7 +119,7 @@
 ;;
 
  slots)
  -  ${MTX} -f $CHANGER status slot  | wc -l
  +  ${MTX} -f $CHANGER status slot  | wc -l|bc
 ;;
   esac
 
 
  Kind regards,
  Alex.
 
 
  ---
  This SF.net email is sponsored by: Splunk Inc. Do you grep 
 through log
  files for problems?  Stop!  Download the new AJAX search 
 engine that makes
  searching your log files as easy as surfing the  web.  
 DOWNLOAD SPLUNK!
  http://ads.osdn.com/?ad_idv37alloc_id865opÌk
  ___
  Bacula-devel mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/bacula-devel
 
 -- 
 Best regards,
 
 Kern
 
   (
   /\
   V_V
 


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


RE: [Bacula-users] RE: [Bacula-devel] autochanger update slots bugfix

2006-01-09 Thread Alexander Kuehn
I assume it's because of the preceeding whitespaces from wc, unfortunately the 
error channel from the script is discarded so I'm only 99.98% sure ;) (imho 
stderr should be echoed back to the console).

~  chio -f /dev/ch0 status slot|wc -l
   6
~  chio -f /dev/ch0 status slot|wc -l|bc
6
~  

Maybe someone else with a similar setup can check if this problem is 
reproducable? (FreeBSD 5.4-STABLE and FreeBSD 6.0-STABLE, do update slots for 
a check). At least here it's definitely not working without the the '|bc' but 
working with it. 
On the other hand I don't think the additional bc will break anything (at 
least) in the *BSD world (which is where chio is used) since bc is part of 
base. I guess a line in the release notes is due anyway.
Kind regards,
Alex

 -Original Message-
 From: Kern Sibbald [mailto:[EMAIL PROTECTED]
 Sent: Monday, January 09, 2006 11:37 AM
 To: bacula-users@lists.sourceforge.net
 Cc: Alexander Kuehn; [EMAIL PROTECTED]
 Subject: Re: [Bacula-users] RE: [Bacula-devel] autochanger update
 slots bugfix
 
 
 Thanks for the output.
 
 It is interesting to see how chio actually works.  However, I 
 don't understand 
 the need for a call to bc since wc -l' at least on my system 
 returns a 
 perfectly valid count (in fact the same thing as wc -l | bc.
 
 On Monday 09 January 2006 10:55, Alexander Kuehn wrote:
  Sure,
  ~  chio -f /dev/ch0 status slot
  slot 0: ACCESS,FULL
  slot 1: ACCESS,FULL
  slot 2: ACCESS,FULL
  slot 3: ACCESS,FULL
  slot 4: ACCESS,FULL
  slot 5: ACCESS,FULL
  ~  chio -f /dev/ch0 status slot|wc -l
 6
  ~ 
  Kind regards,
  Alex.
 
   -Original Message-
   From: Kern Sibbald [mailto:[EMAIL PROTECTED]
   Sent: Saturday, January 07, 2006 2:20 PM
   To: [EMAIL PROTECTED]
   Cc: Alexander Kuehn; bacula-users@lists.sourceforge.net
   Subject: Re: [Bacula-devel] autochanger update slots bugfix
  
  
   I've added your fix to the source, but in looking at the
   line, it seems to me
   that it is not going to handle things correctly.  Could you
   send me the raw
   output from:
  
  ${MTX} -f $CHANGER status slot
  
   Thanks.
  
   On Thursday 05 January 2006 18:58, Alexander Kuehn wrote:
Hi,
   
I just upgraded from bacula 1.36 to 1.38.2 and noticed that the
chio-changer script doesnt seem to work anymore. More
  
   specifically the
  
update slots scan command proclaimed I had 0 slots. It
  
   seems the output
  
of wc -l is not good enough for bacula anymore, so here
  
   is the patch for
  
examples/autochangers/chio-changer to fix the problem:
   
--- chio-changerThu Jan  5 18:46:32 2006
+++ chio-changer.newThu Jan  5 18:45:47 2006
@@ -119,7 +119,7 @@
   ;;
   
slots)
-  ${MTX} -f $CHANGER status slot  | wc -l
+  ${MTX} -f $CHANGER status slot  | wc -l|bc
   ;;
 esac
   
   
Kind regards,
Alex.
   
   
---
This SF.net email is sponsored by: Splunk Inc. Do you grep
  
   through log
  
files for problems?  Stop!  Download the new AJAX search
  
   engine that makes
  
searching your log files as easy as surfing the  web.
  
   DOWNLOAD SPLUNK!
  
http://ads.osdn.com/?ad_idv37alloc_id865opÌk
___
Bacula-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/bacula-devel
  
   --
   Best regards,
  
   Kern
  
 (
 /\
 V_V
 
  ---
  This SF.net email is sponsored by: Splunk Inc. Do you grep 
 through log
  files for problems?  Stop!  Download the new AJAX search 
 engine that makes
  searching your log files as easy as surfing the  web.  
 DOWNLOAD SPLUNK!
  http://ads.osdn.com/?ad_idv37alloc_id865opÌk
  ___
  Bacula-users mailing list
  Bacula-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/bacula-users
 
 -- 
 Best regards,
 
 Kern
 
   (
   /\
   V_V
 


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


[Bacula-users] autochanger update slots bugfix

2006-01-05 Thread Alexander Kuehn
Hi,

I just upgraded from bacula 1.36 to 1.38.2 and noticed that the chio-changer 
script doesnt seem to work anymore. More specifically the update slots scan 
command proclaimed I had 0 slots. It seems the output of wc -l is not good 
enough for bacula anymore, so here is the patch for 
examples/autochangers/chio-changer to fix the problem:

--- chio-changerThu Jan  5 18:46:32 2006
+++ chio-changer.newThu Jan  5 18:45:47 2006
@@ -119,7 +119,7 @@
   ;;
 
slots)
-  ${MTX} -f $CHANGER status slot  | wc -l
+  ${MTX} -f $CHANGER status slot  | wc -l|bc
   ;;
 esac
 

Kind regards,
Alex.


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


RE: [Bacula-users] schedule issue

2005-08-30 Thread Alexander Kuehn
 -Original Message-
 From: dave [mailto:[EMAIL PROTECTED]
 Sent: Sunday, August 28, 2005 6:41 AM
 To: bacula-users@lists.sourceforge.net
 Subject: [Bacula-users] schedule issue
 
 
 Hello,
 I'm trying to get this schedule to run at night, but time 
 wise it runs
 during the day during system peaktimes, can someone tell me where my
 thoughts went wrong?
 Thanks.
 Dave
 
 # schedules 
 
 
 Schedule {
  Name = sat_fdd
  Run = Full sat at 11:00
  Run = Differential sun-fri at 12:00
 }

Hmm, just a guess, but I would read this as sun,mon,tue,wed,thu,fri at 12:00 
(noon)
If it's supposed to run at night maybe what you want is:
  Run = Differential sun-fri at 00:00  ?

 
 # This schedule does the catalog. It starts after the WeeklyCycle
 Schedule {
   Name = WeeklyCycleAfterBackup
   Run = Full sun-sat at 3:30
 }

Kinds regards,
Alex.


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] parallel spooling/despooling

2005-08-30 Thread Alexander Kuehn
Hi,

I have a [EMAIL PROTECTED] FreeBSD machine with a DDS3 Streamer attached to it. 
The streamer does about 1MB/s, when I use Bacula I can monitor the machine and 
streamer usage using systat -vm, when I do that I see that nothing is running 
at full steam, the streamer does about 0.8 MB/s, the CPU is at 80% usage, the 
harddisk is 5-20% usage. Of course this varies over time, but these values are 
pretty typical. I was wondering if I could optimize the usage to minimize the 
backup times. I was very happy to see that Bacula supports spooling at first, 
but I was kinda set back when I saw that spooling and despooling is done 
sequentially not in parallel. I had already set up a mfs based /tmp (128MB) to 
have Bacula spool to RAM (which the machine has plenty of), and CPU usage was 
indeed 100% as I had expected. Of course the CPU was basically unutilized when 
it came to unspooling the file.
I wonder if it would be difficult to modify Bacula to use two spool files 
instead of one, so that:
fd starts collecting files and creating the normal spool file,
as soon as it is ready and signals sd to unspool the file, it does not wait 
until sd has finished but continues to collect files but stores them in a 
second file, right next to the normal spool file,
as soon as sd has finished unspooling and fd spooling to the second file, the 
second file is renamed to the normal spool file and fd starts to collect for a 
new second file...
I think this way the backup time could be significantly reduced in cases such 
as this one.
Kind regards,
Alex.


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users