[Bacula-users] Relabeled a volume

2007-10-10 Thread Louis Joly
When my Volumes are recycled, how relabeled them automatically

Device {
  Name = DEV_FileStorageFull
  Media Type = File
  Archive Device = /data/bacula/backups/monthly
  LabelMedia = yes;   # lets Bacula label unlabeled media
  Random Access = Yes;
  AutomaticMount = yes;   # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = yes;
}

Pool {
  Name = POOL_Full
  Pool Type = Backup
  Recycle = yes   # Bacula can automatically recycle 
Volumes
  AutoPrune = yes # Prune expired volumes
  Volume Retention = 6 months
  Maximum Volume Jobs = 1
  Label Format = Full-${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}
  Maximum Volumes = 9
}



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Bacula-devel] Where do we go after Bacula 2.2.0?

2007-10-10 Thread Kern Sibbald
Hello,

It is a little hard to answer this email since I don't remember the details of 
each email thread.  It would help in the future to leave a bit additional 
info, like who sent the last message.

I'll make a few comments below though ...

On Tuesday 09 October 2007 16:10, David Boyes wrote:
  My thoughts on this would be to make the SD-MUX a a totally separate
  daemon with perhaps it's own DB. And the mux logic be left completely
  out of the Director.

No, that would be a major change to the way Bacula works, and although I 
didn't design by looking at existing programs, I notice that at least one 
major commercial backup solution has the same overall architecture as Bacula, 
and they praise themselves a lot for having it -- i.e. the Director is the 
central point of control. The other daemons only know about their specific 
tasks.


 The director has to be involved to some degree to ensure that device
 reservations are properly registered (to prevent it from trying to make
 conflicting reservations for devices for non-mux jobs).

Actually, the Volume/drive reservations are now handled in the SD.  The Dir 
passes all the info the SD could ever want, and it figures out if it can get 
a device (or waits if they are all busy) then informs the Dir.

 If we're that 
 far down the road, then having the director tell the sd-mux how to set
 up the sessions isn't that much further to go. I do agree that the
 sd-mux has to be a separate daemon, though -- it can borrow a lot of
 code from the existing sd and fd, though.

There is no advantage to make the sd-mux a separate program -- any more than 
the reservation system.  It could at some point be put into a DSO if desired, 
but I don't consider that urgent.  More below ...


 I think there's several key problems to solve here:

 1) having the database record multiple locations for a file

That is not so easy to do.

 2) having the sd-mux daemon

That is a trivial piece of additional code.  All the necessary DIR code is 
already written, and the DIR-SD protocol already exists to cover this need.

 3) having the director understand how to use the sd-mux (eg, how to know
 when one is needed, and how to instruct it what to do)

It already knows how to do this.  The backend (SD-mux) code is just not there.

 4) modifying the restore process to understand multiple copies and
 restore from the most preferred one

As with #1 that is not so easy to do, though I think I have now worked out 
step 1 in the right direction.


 #1 is (IMHO) the least difficult problem: the last major rev of the
 database schema provided the data structure to record multiple
 locations. AFAIK, none of the code references anything beyond the first
 entry, but the space is there to record things once there is code to do
 so.

In the first baby step, there is probably no need for a database change.  
However, the key to understanding the difficulties, and something that is not 
going to change is that Bacula is Job based, not file based.


 #2 is essentially a meld of a SD and FD, plus a setup connection to the
 director. I'd suggest this be a daemon controlled by inetd, triggered by
 a connection request from the director to the control session port
 (minimize the # of static ports needed to 1 new port). Inetd would spin
 off a copy of the sd-mux for the director. The director would then
 instruct the sd-mux about the # of streams required and which actual SDs
 are involved. 

IMO inetd is a bad way to go. It will unnecessarily consume an extra port, and 
is a solution that worked well many years ago on small memory systems. Now 
that Microsoft has made 2GB the minimum working RAM for Vista, there is no 
disadvantage of having daemons or more code in the SD (in a DSO if necessary 
at some point).  Doing it with a continuously running daemon avoids problems 
of security, additional ports, the expense of initialization (reading the 
conf file, ...), and persistence (i.e. knowing what the current state of 
everything is).

 The director would then go about the usual device 
 reservation and volume selection process already in place for normal
 jobs. Once the actual SDs report ready, the director informs the real FD
 of the address and port # of the sd-mux, and backups occur as normal,
 with the sd-mux as the target SD for the real FD. The sd-mux acts like a
 FD to the real SDs, thus requiring no protocol changes on real FD or
 SDs. The SDs handle media as normal, signaling the director to notify it
 of volume changes as required. The sd-mux receives data, writes it to
 each real SD, and returns status when all the writes complete. At EOJ,
 the sd-mux handles the shutdown of the sessions to the real SDs, and
 then shuts down the session to the real FD. It then informs the director
 of the EOJ state, and exits.

I think there are little if any changes necessary for the DIR. 95% of the code 
to do the above has been there for many years, it just has been used in 
a crippled form.  I may have even 

Re: [Bacula-users] Fileset depending on ClientRunBefore

2007-10-10 Thread Arno Lehmann
Hi,

10.10.2007 05:13,, Troy Daniels wrote::
 Dan Langille wrote:
 On 9 Oct 2007 at 20:05, Leon Bruno wrote:

 On 9 Oct 2007 at 19:54, Leon Bruno wrote:

 Hi all,

 One of my job is calling a script to do some databases backup.
 The fileset is then defined to call that same script with another
 parameter that list the backup that has just been done.

 From what I've tested, it seems that the fileset is estimated
 before the
 runbefore task. This is preventing my backup because at the time the
 fileset is estimated, the backup is not yet done... Is there any way
 to tell bacula to do the fileset estimation after the runbefore task
 ?
 Have you considered the estimate command in bconsole?

 Would that output be useful for you?
 Leon wrote:

 Yes I did the estimate command on the fileset and the result is what I
 expected. That's why I believe at the time bacula get the list of
 files to backup, the backup is not yet done, thus the runbefore
 command is actually executed after the fileset has been estimated.
 Please do not reply at the top of the email.

 I do not understand what you need.  From the subject, I think you 
 want to create a FileSet from ClientRunBefore.  But I have a hard 
 time parsing the content of your email to understand your objective.

 I will guess again: If you are trying to dynamically create a 
 FileSet, I suggest reading this URL:

http://www.bacula.org/rel-manual/Configuring_Director.html

 And search for this test:

 There are a number of special cases when specifying directories and 
 files in a file-list. They are:

 If that is not what you need, please tell us your goal / objective.  
 You are asking how to do the fileset estimation after the runbefore 
 task.  I think you've already decided what the solution is but I 
 think some context will help us find a solution for you that will 
 work.

 
 
 I might be wrong, but I read this to mean Bruno was having problems 
 because Bacula builds the fileset/filelist it is going to back up before 
 it runs the RunBefore job.
 
 However, Bruno's script is designed to do a Database backup first and 
 then provide the fileset information on where this Backup is stored second.
 
 As far as I know there is no way to control this behavior, I can see a 
 couple of ways to work around it:
 
 1) Have the actual Database Backup done as part of an Admin job 
 scheduled to occur just before the Bacula Backup job runs. If you are 
 running multiple concurrent jobs this might be hard to implement.
 
 2) Backup the files to a location you can calculate in advance - For 
 example, make every days backup get created in a subfolder named after 
 the date for example. The 'fileset building script' can then easily pass 
 this folder back to Bacula.
 
 3) Have the fileset building process run the backup directly first - No 
 idea whether this would even work, nor exactly how bad an idea it would be.

This works.

Basically you create whatever files you need, and output their names.

Arno

 Hope this helps,
 
 
 Troy.
 
 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now  http://get.splunk.com/
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
Arno Lehmann
IT-Service Lehmann
www.its-lehmann.de

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Relabeled a volume

2007-10-10 Thread Arno Lehmann
Hi,

10.10.2007 09:05,, Louis Joly wrote::
 When my Volumes are recycled, how relabeled them automatically

Basically, the answer is you don't.

I understand that for file storage that coud be used effectively, but 
tapes with barcodes labels are not easily relabeld using software :-)

 Device {
   Name = DEV_FileStorageFull
   Media Type = File
   Archive Device = /data/bacula/backups/monthly
   LabelMedia = yes;   # lets Bacula label unlabeled media
   Random Access = Yes;
   AutomaticMount = yes;   # when device opened, read it
   RemovableMedia = no;
   AlwaysOpen = yes;
 }
 
 Pool {
   Name = POOL_Full
   Pool Type = Backup
   Recycle = yes   # Bacula can automatically recycle 
 Volumes
   AutoPrune = yes # Prune expired volumes
   Volume Retention = 6 months
   Maximum Volume Jobs = 1
   Label Format = Full-${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}
   Maximum Volumes = 9
 }

Note that the Label Format option is deprecated.

Arno

-- 
Arno Lehmann
IT-Service Lehmann
www.its-lehmann.de

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Storage - Volumes - Pool - Newbie

2007-10-10 Thread Arno Lehmann
Hello,

08.10.2007 12:32,, StevenE wrote::
 Hi everybody,
 
 I have the following problem
 What happens if a job run and the free space of a media go to zero.
 Can I add a volume in the pool for the same job on an other storage?

No, jobs can't run on several devices. That might change, but as of 
now, this is not possible.

 So that
 the backuo can continue even though the free space of the first media is
 zero?

A work-around for disk based volumes would be to use symlinks to 
another file system.

Arno

 Or how is that problem to solve?
 
 Greetz
 Steven
 
 

-- 
Arno Lehmann
IT-Service Lehmann
www.its-lehmann.de

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Writing to same volume every day

2007-10-10 Thread Arno Lehmann
Hi,

02.10.2007 17:30,, Ben Ramsfield wrote::
 We are running Bacula 2.2.4. We have two pools; Daily and Weekend.
 The Daily pool has 9 volumes, A1-A5, B1-B4. A1 - A4 and B1 - B4 are
 used for Monday - Thursday, switching between the two sets every
 other week. A5 is left in as an overflow volume in case the regular
 tapes fill up. We are using an Exabyte VXA 320 - 1x10 1U packet
 loader. This is a 10 tape auto loader library.
 
 So, our problem is that the daily backups are always getting
 written to A5. How can we get the dailys to write to the A* or B*
 tapes.

Make sure the volumes are marked as used once they should not be used 
any more, and remain in that state until they should be used again. 
This is done by setting up the volume use duration and retention times.

Arno

 And yes, the tapes are purged and their status set to
 append.
 
 Thanks
 
 Ben
 
 
 -
  This SF.net email is sponsored by: Splunk Inc. Still grepping
 through log files to find problems?  Stop. Now Search log events
 and configuration files using AJAX and a browser. Download your
 FREE copy of Splunk now  http://get.splunk.com/ 
 ___ Bacula-users
 mailing list Bacula-users@lists.sourceforge.net 
 https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
Arno Lehmann
IT-Service Lehmann
www.its-lehmann.de

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] old bacula windows version

2007-10-10 Thread Arno Lehmann
Hi,

01.10.2007 23:31,, Bertrand Kotewall wrote::
 Dear fellow users,
 
 I have a dilemma.  We are deploying a site wide bacula network with 
 about 100 machines.  It's expected to go live soon.  Due to some 
 politics, I now have a non trivial amount of windows clients to support 
 too.  Off the original 100 machines, they were all macs and were loaded 
 with bacula-fd clients, talking to a bacula-sd and director of a similar 
 version, i.e. 2.03.  I went with that version because it was in fink.

There is agood reason that the older versions are no longer available 
for download - they contained a serious bug.

The best thing to do for you is an upgrade to 2.2.4.

 Now I can't find the windows 2.03 bacula client.  Due to some posts of 
 bacula misbehaving between version mismatches, I'm really reeling from 
 trying to do bacula-sd and dir in 2.03 and running 2.2.4 windows 
 clients.  Is there still a 2.03 windows client available somewhere?  It 
 is not on sourceforge, and if the only recourse is to compile a windows 
 client from the svn checkout, then so be it.  It's just that I'd rather 
 not set up another development environment because of time constraints. 

If you really want an older client, I could offer you a winbacula 
2.0.2 install file I still have.

Arno

 Sincerely yours,
 
 Bertrand Kotewall
 
 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now  http://get.splunk.com/
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
Arno Lehmann
IT-Service Lehmann
www.its-lehmann.de

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Speed issues with a DLT tape drive

2007-10-10 Thread Mark Maas
Dear list,

I have a speed question about my DLT tape drive. First some tech:

The controller:
description: SCSI storage controller
product: AIC-7892A U160/m
vendor: Adaptec
physical id: 9
bus info: [EMAIL PROTECTED]:09.0
logical name: scsi0
version: 02
width: 64 bits
clock: 66MHz
capabilities: scsi bus_master cap_list scsi-host
configuration: driver=aic7xxx latency=64 maxlatency=25 mingnt=40
resources: iomemory:ff6fe000-ff6fefff irq:177

The Tape Drive:
Vendor: COMPAQModel: DLT4000   Rev: D887
Type:   Sequential-Access  ANSI SCSI revision: 
02
target0:0:6: Beginning Domain Validation
target0:0:6: FAST-10 SCSI 10.0 MB/s ST (100 ns, offset 15)
target0:0:6: Domain Validation skipping write tests
target0:0:6: Ending Domain Validation


But the general speed with which Bacula saves to disk is: Bytes/sec=2,091,958. 
I could be daft here, but that's about 1.9950MB per second. While the drive is 
supposed to be able to write with 10MB's per second.(?)

The data being backed up is on a software raid1, and reading is currently 
around 60, which should be plenty for the Tape drive.

The Storage Data section:
Device {
  Name = DLT-IV
  Archive Device = /dev/nst0
  Media Type = Tape
  LabelMedia = yes
  Random Access = no
  AutomaticMount = yes
  RemovableMedia = yes
  Offline On Unmount = yes
  Maximum Open Wait = 172800
  Volume Poll Interval = 60
  Close on Poll= Yes
  AlwaysOpen = yes


What am I doing wrong? What other config settings are there?

Thanks,
Mark

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Errors on restore

2007-10-10 Thread Patrick Noël
Hello,

I'm attempting a restore and am receiving errors like this:

0-Oct 09:25 cli-srv-rse: job-default-restore.2007-10-10_09.03.54 Error:
c:\cygwin\home\kern\bacula\k\src\win32\filed\../../filed/restore.c:540
Write error on D:/tmp/C/Documents and Settings/Administrateur/Mes
documents/DOCUMENTS HTML/MAD/!test.html: The process cannot access the
file because it is being used by another process.

but the file is restored

the client version is : 1.38.7 (6 april 2006) VSS Windows NT 4.0 MVS NT
4.0.1381

the server version is : 1.38.5 (18 january 2006)

think that the difference of version is the cause of this problem?

where i can find the windows version 1.38.5 ? 

thank

Patrick




-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Speed issues with a DLT tape drive

2007-10-10 Thread John Drescher
 I have a speed question about my DLT tape drive. First some tech:

 The controller:
 description: SCSI storage controller
 product: AIC-7892A U160/m
 vendor: Adaptec
 physical id: 9
 bus info: [EMAIL PROTECTED]:09.0
 logical name: scsi0
 version: 02
 width: 64 bits
 clock: 66MHz
 capabilities: scsi bus_master cap_list scsi-host
 configuration: driver=aic7xxx latency=64 maxlatency=25 
 mingnt=40
 resources: iomemory:ff6fe000-ff6fefff irq:177

 The Tape Drive:
 Vendor: COMPAQModel: DLT4000   Rev: D887
 Type:   Sequential-Access  ANSI SCSI 
 revision: 02
 target0:0:6: Beginning Domain Validation
 target0:0:6: FAST-10 SCSI 10.0 MB/s ST (100 ns, offset 15)
 target0:0:6: Domain Validation skipping write tests
 target0:0:6: Ending Domain Validation


 But the general speed with which Bacula saves to disk is: 
 Bytes/sec=2,091,958. I could be daft here, but that's about 1.9950MB per 
 second. While the drive is supposed to be able to write with 10MB's per 
 second.(?)

10MB/s is the interface speed not the speed the drive writes to tape.
With my DLT 8000,  gigabit network, and fast dual processor servers I
get between 3 to 4MB/s with on local backups. Remember the DLT8000
writes twice the bits in the same tape area as the DLT4000 so to make
a long story short the numbers you get look normal.

John
John

John

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] mysql threadsafe client lib requirement

2007-10-10 Thread Rich
i stumbled upon the requirement for threadsafe mysql client library. the 
only way i found out what's wrong was by searching list archives :)

it would be nice if requirements page at 
http://www.bacula.org/dev-manual/System_Requirements.html (and probably 
also for stable version) would explicitly state this.

even better would be if configure would not succeed with non-threadsafe 
client lib and spit out a meaningful message, hinting at threadsafe 
requirement (currently configure succeeds, but make fails in a quite 
cryptic way)
-- 
  Rich

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] tape statistics - graph

2007-10-10 Thread Dan Langille
Hi,

For a long time I've had a script that will extract various data from 
the tape drive.  This script is probably FreeBSD-specific; each OS 
has its own special way to talk to the device.  Last night I started 
dumping some of these stats to a file:

2007/10/09.18:50DLT7000-002 281
2007/10/09.18:53DLT7000-002 284
2007/10/09.18:55DLT7000-002 284
2007/10/10.01:10DLT7000-002 281
2007/10/10.01:10DLT7000-002 281
2007/10/10.01:10DLT7000-002 281
2007/10/10.01:13DLT7000-002 281
2007/10/10.01:13DLT7000-002 281
2007/10/10.01:29DLT7000-002 281
2007/10/10.02:00DLT7000-002 276
2007/10/10.03:19DLT7000-002 276
2007/10/10.03:20DLT7000-002 275

The fields are: timestamp, label, corrected errors per GB.

Using gnuplot, I created this graph of the above data:

   http://www.langille.org/tmp/tape-stats.png

Here are some of the stats I can grab:

$ sudo ~/bin/dlt-read sa0
The tape is 'sa0'
Corrected errors with substantial delay: 0
Corrected errors with possible delay   : 0
Total errors   : 0
Total errors corrected : 0
Total times correction algorithm used  : 0
Total bytes processed  : 494880
Total corrected errors / GB: 0
Total uncorrected errors   : 0
Read compression ratio : 600%
On tape Mbytes read: 0
On tape kbytes read residual   : 22197

$ sudo ~/bin/dlt-write sa0
The tape is 'sa0'
Corrected errors with substantial delay: 0
Corrected errors with possible delay   : 0
Total errors   : 9881
Total errors corrected : 9881
Total times correction algorithm used  : 0
Total bytes processed  : 38506160560
Total corrected errors / GB: 275
Total uncorrected errors   : 0
Write compression ratio: 265%
Host requested Mbytes written  : 76981
Host requested kbytes written residual : 468992
On tape Mbytes written : 29103
On tape kbytes written residual: 0

Anything can be plotted easily enough. I should really grab all these 
stats and put them into the file.

The gnuplot script used to create that graph is:

set terminal png
set output 'tape-stats.png'
set xdata time
set timefmt %Y/%m/%d.%H:%M
set xrange [2007/10/09.18:00:2007/10/10.04:00]
set yrange [270:290]
set format x %H:%M
set timestamp Graph created: %Y/%m/%d %H:%M
plot /home/dan/bacula/dlt-statistics using 1:3 with linespoints \ 
title 'Corrected Errors/GB'

The contents of /home/dan/bacula/dlt-statistics is accumulated 
through this RunAfter script (be aware of line-wrapping in this 
email):

 $ cat /home/dan/bin/dlt-stats
#!/bin/sh

. dlt-functions

CONSOLE=/usr/local/sbin/bconsole

# Grab the stats for the current DLT tape

ERRORS_PER_GB=`sudo /home/dan/bin/dlt-write sa0 | grep 'Total 
corrected errors / GB' | awk '{print $7}'`

#echo Errors per GB is '${ERRORS_PER_GB}'

# What tape is now in the tape drive?


# Get the status of the storage device
STATUS=`echo 'status storage=DLT' | bconsole | egrep 'Device DLT 
\(/dev/nsa0\) is mounted with Volume=.* Pool=.*'`

# Get the line with the VOLUME on it
#echo 'STATUS is ' . ${STATUS}
VOLUMEPHRASE=`echo ${STATUS} | awk '{print $7}'`
VOLUME=`echo ${VOLUMEPHRASE} | sed -e 's:Volume=::g' -e 's:::g'`

TIMESTAMP=`date +%Y/%m/%d%.%H:%M`

#echo ${VOLUME}

echo -e ${TIMESTAMP}\t${VOLUME}\t${ERRORS_PER_GB}  
/home/dan/bacula/dlt-statistics


The dlt-functions file is about 150 lines and uses camcontrol to send 
just the right commands to the device.  For example:

camcontrol cmd $tape -v -t 3 -c 4d 0 72 0 0 0 0 0 4c 0 -i 76 ... 
etc




-- 
Dan Langille - http://www.langille.org/
Available for hire: http://www.freebsddiary.org/dan_langille.php



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] mysql threadsafe client lib requirement

2007-10-10 Thread Dan Langille
On 10 Oct 2007 at 17:02, Rich wrote:

 i stumbled upon the requirement for threadsafe mysql client library.
 the only way i found out what's wrong was by searching list archives
 :)
 
 it would be nice if requirements page at 
 http://www.bacula.org/dev-manual/System_Requirements.html (and
 probably also for stable version) would explicitly state this.

I agree. It should be documented.  If you supply the text you'd like 
to see, and the location you want it in, I'll commit it.  (i.e. you 
send the patch, I'll do the commit)

 even better would be if configure would not succeed with
 non-threadsafe client lib and spit out a meaningful message, hinting
 at threadsafe requirement (currently configure succeeds, but make
 fails in a quite cryptic way) -- 

That's nice too, but a bit beyond what I can do just now.

-- 
Dan Langille - http://www.langille.org/
Available for hire: http://www.freebsddiary.org/dan_langille.php



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Speed issues with a DLT tape drive

2007-10-10 Thread Mark Maas

- John Drescher [EMAIL PROTECTED] wrote:
  The Tape Drive:
  Vendor: COMPAQModel: DLT4000   Rev:
 D887
  Type:   Sequential-Access  ANSI SCSI
 revision: 02
  target0:0:6: Beginning Domain Validation
  target0:0:6: FAST-10 SCSI 10.0 MB/s ST (100 ns,
 offset 15)
  target0:0:6: Domain Validation skipping write tests
  target0:0:6: Ending Domain Validation
 
 
  But the general speed with which Bacula saves to disk is:
 Bytes/sec=2,091,958. I could be daft here, but that's about 1.9950MB
 per second. While the drive is supposed to be able to write with
 10MB's per second.(?)
 
 10MB/s is the interface speed not the speed the drive writes to tape.
 With my DLT 8000,  gigabit network, and fast dual processor servers I
 get between 3 to 4MB/s with on local backups. Remember the DLT8000
 writes twice the bits in the same tape area as the DLT4000 so to make
 a long story short the numbers you get look normal.

Hi John and thank you.

Good that's fine then... Phew. The Debian server is working as expected then.

Thanks!
Mark

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Fwd: Speed issues with a DLT tape drive

2007-10-10 Thread John Drescher
-- Forwarded message --
From: John Drescher [EMAIL PROTECTED]
Date: Oct 10, 2007 1:57 PM
Subject: Re: [Bacula-users] Speed issues with a DLT tape drive
To: Mark Maas [EMAIL PROTECTED]


 Hi John and thank you.

 Good that's fine then... Phew. The Debian server is working as expected then.

BTW, If you have software compression on, turn it off. It will not
give you any more space on your tape (as the drive has hardware
compression) and it will only slow the job down.

John


-- 
John M. Drescher

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fwd: Speed issues with a DLT tape drive

2007-10-10 Thread Mark Maas

- John Drescher [EMAIL PROTECTED] wrote:

 BTW, If you have software compression on, turn it off. It will not
 give you any more space on your tape (as the drive has hardware
 compression) and it will only slow the job down.

Thanks! I've done that per the documentation, but thank you very much for the 
suggestion, and thinking with me.

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] mysql threadsafe client lib requirement

2007-10-10 Thread Arno Lehmann
Hello,

10.10.2007 16:02,, Rich wrote::
 i stumbled upon the requirement for threadsafe mysql client library. the 
 only way i found out what's wrong was by searching list archives :)
 
 it would be nice if requirements page at 
 http://www.bacula.org/dev-manual/System_Requirements.html (and probably 
 also for stable version) would explicitly state this.

I think a pointer to the ReleaseNotes file in the chapter Building 
Bacula from Source in the manual would be ok.

 even better would be if configure would not succeed with non-threadsafe 
 client lib and spit out a meaningful message, hinting at threadsafe 
 requirement (currently configure succeeds, but make fails in a quite 
 cryptic way)

Quote from ReleaseNotes file:

Notes on 2.2.0 release follow:

Areas requiring caution or testing:
- You must have the thread safe version of MySQL client libraries loaded
   to build with MySQL enabled.

Arno

-- 
Arno Lehmann
IT-Service Lehmann
www.its-lehmann.de

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Vista 64

2007-10-10 Thread Douglas Schmidt
Does the Windows FD work on Vista 64?

I'm getting VSS errors and from the postings on the internet it appears a
number of backup applications have this issue.

-- 
Douglas Schmidt
[EMAIL PROTECTED]
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Schedule Resource Job overrides question

2007-10-10 Thread Hydro Meteor
Hello all --

In the Director Daemon configuration file (bacula-dir.conf), I am defining a
simple backup Job Resource that points to a Schedule Resource. My Schedule
Resource contains three backup types (with corresponding Pool Resources that
I have also in the configuration file):

# When to do the backups
Schedule {
  Name = Cycles
  Run = Full Pool=fpool 1st sun at 03:00
  Run = Differential Pool=dpool sat at 03:00
  Run = Incremental Pool=ipool mon-sun at 02:30
}

I took this from an example (somewhere within the Bacula User's Guide) and
what I am wondering if the names after Run =  text (e.g. Full,
Differential, and Incremental) refer to the Level? I presume its the
Level override by default but the User's Guide doesn't state so explicitly.
I just want to be sure that I can get away with this and don't need to say
something like:

Run = Level = Full Pool=fpool 1st sun at 03:00

Especially since the Pool Resource does not include the option for a Level
Directive (so its much more convenient to configure the Level as a Job
override in the Schedule Resource)!

Much thanks!

-H
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Backup Job Storage Directive by reference (to the Pools through the Schedule)?

2007-10-10 Thread Hydro Meteor
Hello all --

I want to configure a simple Backup Job Resource which does not include
Storage Directive. In fact, I have three Pools (each Pool contains its own
Storage Directive instance). The Pools are indirectly referred to the Backup
Job Resource via the Schedule Resource that the Job refers to (e.g., with
Pool= overrides in the Schedule Resource). Is it therefore logically correct
for me to not include a Storage Directive in the Backup Job Resource
definition (especially considering that I have multiple Storage Resources
which are referred to by Pools which Pools are referred to by the Schedule
Resource's Job overrides)?

I hope I posed this question correctly and not too ambiguously -- Bacula is
a very powerful and at times abstract system and I've learned by studying it
that there is quite a bit of referential indirection possible among the
various Resource data structures.

Much thanks!

-H
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Schedule Resource Job overrides question

2007-10-10 Thread Hydro Meteor
Philip,

Thank you very much for checking my logic. I also think its logically makes
sense to take your suggestion of including the multiple pools within the Job
resource as you suggest (instead of relying solely on indirect reference to
these pools via the Schedule Resource Job overrides) -- even if its a
duplicate effort, for human readability it is useful!

Cheers,

-H

On 10/10/07, Philip Clifton [EMAIL PROTECTED] wrote:

 No, you don't need to put in the Level part.  As a side note, you can
 also designate the pools you want in the Job resource.  ie:

 Job {
   Name = vps2
   JobDefs = Default
   Client = vps2-fd
   FileSet = vps2
   Full Backup Pool = vps2-full
   Incremental Backup Pool = vps2-inc
   Storage = vps2
 }

 Philip Clifton [EMAIL PROTECTED]
 4-8-4/IntuiWORX - Intuitive, Innovative Software Development
 http://www.intuiworx.com



 Hydro Meteor wrote:
  Hello all --
 
  In the Director Daemon configuration file (bacula-dir.conf), I am
  defining a simple backup Job Resource that points to a Schedule
  Resource. My Schedule Resource contains three backup types (with
  corresponding Pool Resources that I have also in the configuration
 file):
 
  # When to do the backups
  Schedule {
Name = Cycles
Run = Full Pool=fpool 1st sun at 03:00
Run = Differential Pool=dpool sat at 03:00
Run = Incremental Pool=ipool mon-sun at 02:30
  }
 
  I took this from an example (somewhere within the Bacula User's Guide)
  and what I am wondering if the names after Run =  text ( e.g.
  Full, Differential, and Incremental) refer to the Level? I
  presume its the Level override by default but the User's Guide doesn't
  state so explicitly. I just want to be sure that I can get away with
  this and don't need to say something like:
 
  Run = Level = Full Pool=fpool 1st sun at 03:00
 
  Especially since the Pool Resource does not include the option for a
  Level Directive (so its much more convenient to configure the Level as
  a Job override in the Schedule Resource)!
 
  Much thanks!
 
  -H
  
 
 
 -
  This SF.net email is sponsored by: Splunk Inc.
  Still grepping through log files to find problems?  Stop.
  Now Search log events and configuration files using AJAX and a browser.
  Download your FREE copy of Splunk now  http://get.splunk.com/
  
 
  ___
  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.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users