Re: [Bacula-users] no label for a volume

2007-07-25 Thread Luca Ferrari
Looking in the messages I found this:

25-Jul 08:58 backup-dir: Start Backup JobId 761, 
Job=sede_Vol2Samba_job.2007-07-25_08.58.35
25-Jul 08:58 backup-dir: Created new 
Volume sede_Vol2Samba_job-2007-07-25--8-58 in catalog.
25-Jul 08:58 backup-sd: End of Volume sede_Vol2Samba_job-2007-07-25--8-58 at 
0:0 on device sede_Vol2Samba_storage (/backup/sede/vol2). Write of 240 
bytes got -1.
25-Jul 08:58 backup-sd: Marking Volume sede_Vol2Samba_job-2007-07-25--8-58 
in Error in Catalog.
25-Jul 08:58 backup-dir: sede_Vol2Samba_job.2007-07-25_08.58.35 Error: 
sql_create.c:384 Volume sede_Vol2Samba_job-2007-07-25--8-58 already exists.
25-Jul 08:58 backup-dir: sede_Vol2Samba_job.2007-07-25_08.58.35 Error: 
sql_create.c:384 Volume sede_Vol2Samba_job-2007-07-25--8-58 already exists.
25-Jul 08:58 backup-sd: Job sede_Vol2Samba_job.2007-07-25_08.58.35 waiting. 
Cannot find any appendable volumes.
Please use the label  command to create a new Volume for:


but the volume does not exists and I don't know what the above error got -1 
meansjust I'm not running out of space.

Any idea/suggestion?

Luca


On Tuesday 24 July 2007 Luca Ferrari's cat, walking on the keyboard, wrote:
 Hi all,
 I've got several job definitions that are similar, but the following is not
 working:

 Job {
 Name = sede_Vol2Samba_job
 Enabled = no
 Type = Backup
 Level = Incremental
 Client = sede-fd
 FileSet = sede_Vol2Samba_fileset
 Storage = sede-samba-sd
 Messages = Daemon
 Pool = sede_vol2_pool
 Schedule = Night-Incremental
 }



 Pool {
   Name = sede_vol2_pool
   Pool Type = Backup
   Recycle = yes
   AutoPrune = yes
   Volume Retention = 365 days
   Accept Any Volume = yes
   Label Format
 = ${Job}-${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}--${Hour}-${Minute}
   Maximum Volume Jobs = 1
   Use Volume Once = yes
 }


 in fact the job stay blocked waiting for media, and in particular there is
 no label for the volume:

 Running Jobs:
 Writing: Full Backup job sede_Vol2Samba_job JobId=749 Volume=
 pool=sede_vol2_pool device=sede_Vol2Samba_storage
 (/backup/sede/vol2)
 Files=0 Bytes=0 Bytes/sec=0
 FDReadSeqNo=6 in_msg=6 out_msg=4 fd=5


 Other jobs with an identical pool get labeled right, why this is not?
 Any suggestion?

 Thanks,
 Luca

 -
 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


Re: [Bacula-users] no label for a volume

2007-07-25 Thread Mantas M.
Do you have LabelMedia = yes; set in the device section of your sd config?

Luca Ferrari wrote:
 Looking in the messages I found this:
 
 25-Jul 08:58 backup-dir: Start Backup JobId 761, 
 Job=sede_Vol2Samba_job.2007-07-25_08.58.35
 25-Jul 08:58 backup-dir: Created new 
 Volume sede_Vol2Samba_job-2007-07-25--8-58 in catalog.
 25-Jul 08:58 backup-sd: End of Volume sede_Vol2Samba_job-2007-07-25--8-58 
 at 
 0:0 on device sede_Vol2Samba_storage (/backup/sede/vol2). Write of 240 
 bytes got -1.
 25-Jul 08:58 backup-sd: Marking Volume sede_Vol2Samba_job-2007-07-25--8-58 
 in Error in Catalog.
 25-Jul 08:58 backup-dir: sede_Vol2Samba_job.2007-07-25_08.58.35 Error: 
 sql_create.c:384 Volume sede_Vol2Samba_job-2007-07-25--8-58 already exists.
 25-Jul 08:58 backup-dir: sede_Vol2Samba_job.2007-07-25_08.58.35 Error: 
 sql_create.c:384 Volume sede_Vol2Samba_job-2007-07-25--8-58 already exists.
 25-Jul 08:58 backup-sd: Job sede_Vol2Samba_job.2007-07-25_08.58.35 waiting. 
 Cannot find any appendable volumes.
 Please use the label  command to create a new Volume for:
 
 
 but the volume does not exists and I don't know what the above error got -1 
 meansjust I'm not running out of space.
 
 Any idea/suggestion?
 
 Luca
 
 
 On Tuesday 24 July 2007 Luca Ferrari's cat, walking on the keyboard, wrote:
 Hi all,
 I've got several job definitions that are similar, but the following is not
 working:

 Job {
 Name = sede_Vol2Samba_job
 Enabled = no
 Type = Backup
 Level = Incremental
 Client = sede-fd
 FileSet = sede_Vol2Samba_fileset
 Storage = sede-samba-sd
 Messages = Daemon
 Pool = sede_vol2_pool
 Schedule = Night-Incremental
 }



 Pool {
   Name = sede_vol2_pool
   Pool Type = Backup
   Recycle = yes
   AutoPrune = yes
   Volume Retention = 365 days
   Accept Any Volume = yes
   Label Format
 = ${Job}-${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}--${Hour}-${Minute}
   Maximum Volume Jobs = 1
   Use Volume Once = yes
 }


 in fact the job stay blocked waiting for media, and in particular there is
 no label for the volume:

 Running Jobs:
 Writing: Full Backup job sede_Vol2Samba_job JobId=749 Volume=
 pool=sede_vol2_pool device=sede_Vol2Samba_storage
 (/backup/sede/vol2)
 Files=0 Bytes=0 Bytes/sec=0
 FDReadSeqNo=6 in_msg=6 out_msg=4 fd=5


 Other jobs with an identical pool get labeled right, why this is not?
 Any suggestion?

 Thanks,
 Luca

 -
 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
 


-
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] no label for a volume

2007-07-25 Thread Luca Ferrari
On Wednesday 25 July 2007 Mantas M.'s cat, walking on the keyboard, wrote:
 Do you have LabelMedia = yes; set in the device section of your sd config?

Yes I've got, the following is the device used in bacula-sd.conf:

Device {
   Name = sede_Vol2Samba_storage
   Archive Device = /backup/sede/vol2
   Device Type = File
   Removable Media = No
   Random Access = Yes
   Media Type = sede_disk_storage
   LabelMedia = yes
   AutomaticMount = yes
}


and this is the mapping with the storage in bacula-dir.conf:


Storage {
  Name = sede-samba-sd
  Address = 192.168.1.4
  SDPort = 9103
  Device = sede_Vol2Samba_storage
  Media Type = sede_disk_storage
}


Any idea?

Thanks,
Luca

-
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] Recommend Volume Size for a 180G backup

2007-07-25 Thread Christoff van Zyl
On Wed, 18 Jul 2007 22:37:38 +0200, Arno Lehmann wrote:

 Hi,
 
 17.07.2007 09:25,, Christoff van Zyl wrote::
 I really need so advise on what can I use for Maximum Volume Bytes on a
 disk, currently I am using 5g. If a backup a server consist of 180G there
 is a lot of volumes, what size can I use to get the best performance to do
 a restore?
 
 I have tested 15G and still looks good and the restores is fast.
 
 The current versions should not have a practical limit to the volume 
 file size (the file system and catalog could, though, but these limits 
 should not matter in real-life setups).
 
 I recommend a volume size that allows you to move the volumes in case 
 you ever need to. For example, if you want to be able to copy them to 
 DVD, limit their size to about 4.5 GB. If you want to transfer them 
 via USB disk, 30 to 50 GB might be reasonable. For network transfers, 
 a limit of a few GB would be better than 200GB.
 
 The number of volumes is really not a problem, unless you overload 
 your file system, but a few thousand files in one directory shouldn't 
 be too much of a problem.
 
 Arno
 
 Thanks
 
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users


Arno

Thanks for the reply, your input has confirmed my decision on keeping my
volumes at 20G, this is a really descend size and the restore time is also
descent. I have done a restore with a volume with the size of 288G and all
was quick and successful.

Thanks again.
Christoff


-
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] Which filesystem should I choose for disk-based backup?

2007-07-25 Thread Ralf Gross
schlenz schrieb:
 Tomorrow I'll get a new server (Dell PowerEdge 2950) with  a 750GB RAID-5
 array for disk-based backup with Bacula (the server also will be used for
 testing VMs with Xen and other services). It'll come with SuSE Linux
 Enterprise Server 10.1. I'm not quite sure about the file system I should
 use for storing the Bacula backup volumes. I think I shouldn't use reiserfs
 (since the long-term support for this seems to be questionable). I have made
 rather good expirience with XFS for big volumes (up to 1TB). Since the disk
 volumes will be very large I think that it's important to use a filesystem
 which can cope with that. Should I use XFS or Ext3? And is it adisable to
 store all the backup pools (e. g. full and incremental) in one filesystem?

For large FS I use XFS, but XFS requires reliable hardware (HW RAID +
BBU...). 750GB is a size that ext3 can handle very well too. With ext3
you might get problems with the time a fsck takes.

Ralf

-
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] Problem loading second tape on an overland library

2007-07-25 Thread Berthaud
Hi

My server bacula (version 1.38.11) works with a tape library Overland. I use 
two tapes each week.

Sometimes Bacula load the second tape when the first is full. Sometimes not.

Before full save of the 10 servers I delete the two tapes with gconsole , stop 
bacula, erase the two tape, restart bacula and relabel it with gconsole.

Sometimes it fill completly the first one and don't go to get the other tape in 
the other slot. Sometimes bacula change the tape automatiquely and start 
filling the second one.

Example of gconsole messages when it is not working 
 
24-jui 03:21 intbd2-dir: Start Backup JobId 381, Job=Sauveintbd1.2007-07-
23_18.51.04
24-jui 05:32 intbd2-sd: End of Volume NLU063L2 at 492:10660 on device LTO-
2N1 (/dev/nst0). Write of 64512 bytes got -1.
24-jui 05:32 intbd2-sd: Re-read of last block succeeded.
24-jui 05:32 intbd2-sd: End of medium on Volume NLU063L2 
Bytes=483,234,214,885 Blocks=7,490,616 at 24-jui-2007 05:32.
24-jui 05:33 intbd2-sd: 3301 Issuing autochanger loaded drive 0 command.
24-jui 05:33 intbd2-sd: 3302 Autochanger loaded drive 0, result is Slot 1.
24-jui 05:33 intbd2-sd: Sauveintbd1.2007-07-23_18.51.04 Warning: Director 
wanted Volume NLU062L2 for device LTO-2N1 (/dev/nst0).
Current Volume NLU063L2 not acceptable because:
1998 Volume NLU063L2 status is Full, but should be Append, Purged or 
Recycle.
24-jui 05:33 intbd2-sd: 3301 Issuing autochanger loaded drive 0 command.
24-jui 05:33 intbd2-sd: 3302 Autochanger loaded drive 0, result is Slot 1.
24-jui 05:33 intbd2-sd: Sauveintbd1.2007-07-23_18.51.04 Warning: Director 
wanted Volume NLU062L2 for device LTO-2N1 (/dev/nst0).

Device status:
Autochanger overland with devices:
   LTO-2N1 (/dev/nst0)
Device LTO-2N1 (/dev/nst0) is mounted with Volume=NLU063L2 Pool=Default
Device is BLOCKED waiting for media.
Slot 1 is loaded in drive 0.
Total Bytes Read=64,512 Blocks Read=1 Bytes/block=64,512
Positioned at File=0 Block=0


In Use Volume status:
NLU063L2 on device LTO-2N1 (/dev/nst0)




Mount and unmount does not do nothing

The only way I found to unlock this situation is to delete the volume NLU062L2 
in bacula mysql database, unmount the drive with gconsole, erase the tape, 
mount the drive with gconsole and label it again with gconsole 

Why should I do in order to have bacula loading systematicaly the second tape?

Regards


Christian



-
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-usersFedora 7 rpms

2007-07-25 Thread Wes Hardaker
 D == Dimitrios  [EMAIL PROTECTED] writes:

D Are there any plans to create Fedora 7 rpms on one of the popular
D fedora repositories, like Freshrpms.net, Livna, fedora extras, etc?

I actually have a fedora rpm created for bacula for FC6 that I've been
using (or not actually).  I've considered sponsoring an RPM for the
fedora tree (there is no extras in F7, it's just f7 and includes
everything including contributed packages).

But, I haven't gotten that far yet because I have other packages in the
approval process now and was waiting to finish those first.  And I was
waiting to actually get bacula working for me with DVDs (or else
maintaining the RPM won't really be worth it for me ;-).

I can supply the current RPM and patches to anyone else that wants to
take the task on though if anyone wants to do it instead.
-- 
In the bathtub of history the truth is harder to hold than the soap,
 and much more difficult to find.  -- Terry Pratchett

-
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] Job running forever

2007-07-25 Thread Daniel J. Priem

Arno Lehmann [EMAIL PROTECTED] writes:

 Hi,
 Either you are having connectivity problems between DIR and SD and/or
 FD (quite possible, guessing from the host name with dmz in it -
 firewalls can cause this sort of problem) or there's something wrong
 with the DIR.

Yes. I solved this a day later.
The Firewalltimeout was is to about 20minutes or so.
So i now added the heartbeat statement to the config files.



 I'd suggest setting the heartbeat interval for the FD first, and
 observing network traffic between FD and DIR during backup. I suppose
 the firewall in between terminates that session while the
 FD-SD-connection is up. I wonder why the problem is not detected by
 the DIR. After two hours, it should register a failure, if not
 earlier.

Does this mean, that after 2 hours a tcp-keepalive is sent?

Best Regards
Daniel

 Arno


-
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] no label for a volume

2007-07-25 Thread Mantas M.
Does the file gets created ? What is its size?

I'd make sure that:

* There is enough free space on the disk
* Bacula sd can write to that directory

Mantas


Luca Ferrari wrote:
 On Wednesday 25 July 2007 Mantas M.'s cat, walking on the keyboard, wrote:
 Do you have LabelMedia = yes; set in the device section of your sd config?
 
 Yes I've got, the following is the device used in bacula-sd.conf:
 
 Device {
Name = sede_Vol2Samba_storage
Archive Device = /backup/sede/vol2
Device Type = File
Removable Media = No
Random Access = Yes
Media Type = sede_disk_storage
LabelMedia = yes
AutomaticMount = yes
 }
 
 
 and this is the mapping with the storage in bacula-dir.conf:
 
 
 Storage {
   Name = sede-samba-sd
   Address = 192.168.1.4
   SDPort = 9103
   Device = sede_Vol2Samba_storage
   Media Type = sede_disk_storage
 }
 
 
 Any idea?
 
 Thanks,
 Luca
 
 -
 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


Re: [Bacula-users] no label for a volume

2007-07-25 Thread Luca Ferrari
On Wednesday 25 July 2007 Mantas M.'s cat, walking on the keyboard, wrote:
 * Bacula sd can write to that directory

This was the problem, I mis-set the owner!

Luca

-
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] Director seems to die - Cannot allocate memory

2007-07-25 Thread Arno Lehmann
Hi,

25.07.2007 01:51,, Support wrote::
 Dear All
 
 The major error seems to be
 
 24-Jul 14:37 elizabeth-dir: civeng54.2007-07-24_09.05.01 Error: open mail
 pipe /usr/sbin/bsmtp -h localhost -f (Bacula) [EMAIL PROTECTED] -s Bacula:
 Backup Fatal Error of civeng54 Full [EMAIL PROTECTED] failed: ERR=Cannot
 allocate memory
 
 Several errors like this occur with subsequent queued jobs - then the
 daemon seems to die.
 
 Is there a memory leak?

I'm not sure... I had to struggle with memory exhaustion both at my 
own installation and at customer sites, and even though I could never 
actually prove a memory leak, I suspect that the database libraries 
for MySQL sometimes use lots of memory without properly releasing it 
again.

Reasons for my assumptions: (note that this is just a collection of 
observations, not real debugging)
- The problem happened only when using MySQL.
- It doesn't matter if the database runs on the same machine as the 
DIR or remotely.
- Once no jobs are active in the DIR, memory consumption goes down again.
- For this problem, even jobs that are waiting for resources are active.
- The more jobs you run simultaneously, the more likely the memory 
gets exhausted.

My work around so far is to ru n the jobs in non-overlapping bunches, 
i.e. instead of starting all 40 jobs at once, I run 13, 14, and 13 
with different schedules so that the DIR is idle between these bunches.


 I have had bacula do 800+ jobs with out an error until having this type of
 problem.

Perhaps, as jobs take longer because the data volume increases, the 
underlying problem becomes more significant.

 I have had this occur twice in recent weeks. While a client is being
 backed up (a laptop) and the user has disconnected it without stopping the
 file daemon.
 
 This results is the job now relies on the default TCP timeout of 2 hours.
 
 Could the director monitor the client and if it is not responding in NN
 minutes / hours terminate the job. You cannot cancel a job if the client
 is not there.
 
 What seems to happed is this kills the director (2.0.3) and I have had to
 restart bacula.
 
 See below - a prior full backup of the client took 2 hrs for 30 GB
 
 Any ideas / fixes.

See aboce for my work around. Or upgrade to the latest beta, IIRC some 
catalog database memory problems are fixed there.

Arno

 Thanks
 Stephen Carr
 
 24-Jul 14:37 elizabeth-dir: civeng54.2007-07-24_09.05.01 Fatal error:
 Network error with FD during Backup: ERR=Connection reset by peer
 24-Jul 14:37 elizabeth-dir: civeng54.2007-07-24_09.05.01 Fatal error: No
 Job status returned from FD.
 24-Jul 14:37 elizabeth-dir: civeng54.2007-07-24_09.05.01 Error: Bacula
 2.0.3 (06Mar07): 24-Jul-2007 14:37:50
   JobId:  26426
   Job:civeng54.2007-07-24_09.05.01
   Backup Level:   Full
   Client: civeng54 Windows XP,MVS,NT 5.1.2600
   FileSet:workstation 2006-09-07 16:00:03
   Pool:   Migrate-Full (From Job FullPool override)
   Storage:File (From Pool resource)
   Scheduled time: 24-Jul-2007 09:05:00
   Start time: 24-Jul-2007 10:37:39
   End time:   24-Jul-2007 14:37:50
   Elapsed time:   4 hours 11 secs
   Priority:   10
   FD Files Written:   0
   SD Files Written:   0
   FD Bytes Written:   0 (0 B)
   SD Bytes Written:   0 (0 B)
   Rate:   0.0 KB/s
   Software Compression:   None
   VSS:no
   Encryption: no
   Volume name(s): Full0005
   Volume Session Id:  298
   Volume Session Time:1184798524
   Last Volume Bytes:  16,998,911,923 (16.99 GB)
   Non-fatal FD errors:2
   SD Errors:  0
   FD termination status:  Error
   SD termination status:  Error
   Termination:*** Backup Error ***
 
 24-Jul 14:37 elizabeth-dir: civeng54.2007-07-24_09.05.01 Error: open mail
 pipe /usr/sbin/bsmtp -h localhost -f (Bacula) [EMAIL PROTECTED] -s Bacula:
 Backup Fatal Error of civeng54 Full [EMAIL PROTECTED] failed: ERR=Cannot
 allocate memory
 24-Jul 14:37 elizabeth-dir:  Error: open mail pipe /usr/sbin/bsmtp -h
 localhost -f (Bacula) [EMAIL PROTECTED] -s Bacula daemon message
 [EMAIL PROTECTED] failed: ERR=Cannot allocate memory
 
 
 
 -
 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 

Re: [Bacula-users] no label for a volume

2007-07-25 Thread Arno Lehmann
Hi,

25.07.2007 10:34,, Mantas M. wrote::
 Does the file gets created ? What is its size?
 
 I'd make sure that:
 
 * There is enough free space on the disk

As the volume gets created in the catalog, I'd almost bet the disk is 
full or the qouta exceeded.

 * Bacula sd can write to that directory

I assume that other volumes were created successfully on that disk. Of 
course, a change in the user the SD runs as might also have happened.

Arno

 Mantas
 
 
 Luca Ferrari wrote:
 On Wednesday 25 July 2007 Mantas M.'s cat, walking on the keyboard, wrote:
 Do you have LabelMedia = yes; set in the device section of your sd config?
 Yes I've got, the following is the device used in bacula-sd.conf:

 Device {
Name = sede_Vol2Samba_storage
Archive Device = /backup/sede/vol2
Device Type = File
Removable Media = No
Random Access = Yes
Media Type = sede_disk_storage
LabelMedia = yes
AutomaticMount = yes
 }


 and this is the mapping with the storage in bacula-dir.conf:


 Storage {
   Name = sede-samba-sd
   Address = 192.168.1.4
   SDPort = 9103
   Device = sede_Vol2Samba_storage
   Media Type = sede_disk_storage
 }


 Any idea?

 Thanks,
 Luca

 -
 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

-- 
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] Job running forever

2007-07-25 Thread Arno Lehmann
Hi,

19.07.2007 09:27,, Daniel J. Priem wrote::
 Arno Lehmann [EMAIL PROTECTED] writes:
 
 Hi,
 Either you are having connectivity problems between DIR and SD and/or
 FD (quite possible, guessing from the host name with dmz in it -
 firewalls can cause this sort of problem) or there's something wrong
 with the DIR.
 
 Yes. I solved this a day later.
 The Firewalltimeout was is to about 20minutes or so.
 So i now added the heartbeat statement to the config files.
 
 
 I'd suggest setting the heartbeat interval for the FD first, and
 observing network traffic between FD and DIR during backup. I suppose
 the firewall in between terminates that session while the
 FD-SD-connection is up. I wonder why the problem is not detected by
 the DIR. After two hours, it should register a failure, if not
 earlier.
 
 Does this mean, that after 2 hours a tcp-keepalive is sent?

Oh, difficult question :-)

It should, but not all TCP/IP stacks seem to support tcp keepalives, 
and activating them is probably OS dependent, so it's possible that 
does not always work.

At least that's my impression from some discussion about the keepalive 
problems...

Arno

 Best Regards
 Daniel
 Arno
 
 
 -
 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] Problem loading second tape on an overland library

2007-07-25 Thread Arno Lehmann
Hi,

24.07.2007 18:24,, Berthaud wrote::
 Hi
 
 My server bacula (version 1.38.11) works with a tape library Overland. I use 
 two tapes each week.
 
 Sometimes Bacula load the second tape when the first is full. Sometimes not.
 
 Before full save of the 10 servers I delete the two tapes with gconsole , 
 stop 
 bacula, erase the two tape, restart bacula and relabel it with gconsole.
 
 Sometimes it fill completly the first one and don't go to get the other tape 
 in 
 the other slot. Sometimes bacula change the tape automatiquely and start 
 filling the second one.
 
 Example of gconsole messages when it is not working 
  
 24-jui 03:21 intbd2-dir: Start Backup JobId 381, Job=Sauveintbd1.2007-07-
 23_18.51.04
 24-jui 05:32 intbd2-sd: End of Volume NLU063L2 at 492:10660 on device LTO-
 2N1 (/dev/nst0). Write of 64512 bytes got -1.
 24-jui 05:32 intbd2-sd: Re-read of last block succeeded.
 24-jui 05:32 intbd2-sd: End of medium on Volume NLU063L2 
 Bytes=483,234,214,885 Blocks=7,490,616 at 24-jui-2007 05:32.
 24-jui 05:33 intbd2-sd: 3301 Issuing autochanger loaded drive 0 command.
 24-jui 05:33 intbd2-sd: 3302 Autochanger loaded drive 0, result is Slot 1.
 24-jui 05:33 intbd2-sd: Sauveintbd1.2007-07-23_18.51.04 Warning: Director 
 wanted Volume NLU062L2 for device LTO-2N1 (/dev/nst0).
 Current Volume NLU063L2 not acceptable because:
 1998 Volume NLU063L2 status is Full, but should be Append, Purged or 
 Recycle.
 24-jui 05:33 intbd2-sd: 3301 Issuing autochanger loaded drive 0 command.
 24-jui 05:33 intbd2-sd: 3302 Autochanger loaded drive 0, result is Slot 1.
 24-jui 05:33 intbd2-sd: Sauveintbd1.2007-07-23_18.51.04 Warning: Director 
 wanted Volume NLU062L2 for device LTO-2N1 (/dev/nst0).
 
 Device status:
 Autochanger overland with devices:
LTO-2N1 (/dev/nst0)
 Device LTO-2N1 (/dev/nst0) is mounted with Volume=NLU063L2 Pool=Default
 Device is BLOCKED waiting for media.
 Slot 1 is loaded in drive 0.
 Total Bytes Read=64,512 Blocks Read=1 Bytes/block=64,512
 Positioned at File=0 Block=0
 
 
 In Use Volume status:
 NLU063L2 on device LTO-2N1 (/dev/nst0)
 
 
 
 
 Mount and unmount does not do nothing
 
 The only way I found to unlock this situation is to delete the volume 
 NLU062L2 
 in bacula mysql database, unmount the drive with gconsole, erase the tape, 
 mount the drive with gconsole and label it again with gconsole 
 
 Why should I do in order to have bacula loading systematicaly the second tape?

Your problem description looks like the autochanger setup might be faulty.

Have you tried the btape tests for the autochanger, and can you use 
mtx-changer from the console?

Also, make sure the catalog reflects the actual autochanger inventory. 
Check using the query to list the volumes in the autochanger, and, if 
that's not correct, use 'update slots [scan] storage=overland'.

Arno

 Regards
 
 
 Christian
 
 
 
 -
 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] no label for a volume

2007-07-25 Thread Luca Ferrari
On Wednesday 25 July 2007 Arno Lehmann's cat, walking on the keyboard, wrote:

  * Bacula sd can write to that directory

 I assume that other volumes were created successfully on that disk. Of
 course, a change in the user the SD runs as might also have happened.



Should I worry about volumes that were inserted in the catalog and are no 
present on the disk? Does bacula check the presence of the archive files and 
adjusts the catalog or this must be done manually?

Luca

-
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] no label for a volume

2007-07-25 Thread Arno Lehmann
Hi,

25.07.2007 11:26,, Luca Ferrari wrote::
 On Wednesday 25 July 2007 Arno Lehmann's cat, walking on the keyboard, wrote:
 
 * Bacula sd can write to that directory
 I assume that other volumes were created successfully on that disk. Of
 course, a change in the user the SD runs as might also have happened.

 
 
 Should I worry about volumes that were inserted in the catalog and are no 
 present on the disk? Does bacula check the presence of the archive files and 
 adjusts the catalog or this must be done manually?

Well, Bacula does not exactly look for defined volumes without 
correspondig files. But, when it tries to use a volume which it can't 
find, it should simply ignore that volume, or mark it as Error.

Volumes marked as Error are not used at all.

In your case, the simplest solution would be to delete the volume that 
got created in the catalog, but not on disk.

The delete command will only affect the catalog (and it WILL delete 
important information, so use it with care!).

After the volume was deleted, Bacula can automatically recreate a 
volume with the same name.

Arno

 Luca
 
 -
 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] [Bacula-devel] MySQL Duplicate Entry

2007-07-25 Thread Kern Sibbald
Hello,

I recommend you read the www.bacula.org - Support page.  It explains the best 
way to get support and help.  It is also useful, though probably not for this 
case, to read the Bugs page as well.   I've forwarded your email to the 
bacula-users list in case they have comments.

My recommendation is to read up on the dbcheck program in the manual and run 
it.  It *should* be able to correct this problem.  If it does not or if the 
problem comes up frequently, or you have questions, you might want to ask the 
bacula-users list.

In any future requests, please include the name of the database Engine you are 
using.  That may also be helpful, though it is probably not needed for the 
current case.

Best regards,

Kern


On Wednesday 25 July 2007 13:41, Allen Barnett wrote:
 Hi,
 I'm running Bacula 1.38.10 on a Red Hat Enterprise Linux 4 64-bit
 Opteron box. The last couple of days, I've been getting this message
 from the nightly catalog backup run. Is there something I need to do to
 clean up the database(?) Thanks, Allen.
 
 25-Jul 01:12 GLUON-DIR: Start Backup JobId 1086,
 Job=BackupCatalog.2007-07-24_23.10.00
 
 25-Jul 01:14 GLUON-DIR: BackupCatalog.2007-07-24_23.10.00 Fatal error:
 sql_create.c:732 sql_create.c:732 insert INSERT INTO File
 (FileIndex,JobId,PathId,FilenameId,LStat,MD5) VALUES (1,1086,1,1,'gB
 BYSL IGg B A A A cPL8T BAA DiHw BGpwW1 BGpwXz BGpwXz A A C','IV/0N+/T/T
 +eIAtTB/0d1B') failed:
 Duplicate entry '27191534' for key 1
 
 25-Jul 01:14 GLUON-DIR: BackupCatalog.2007-07-24_23.10.00 Fatal error:
 sql_create.c:734 Create db File record INSERT INTO File
 (FileIndex,JobId,PathId,FilenameId,LStat,MD5) VALUES (1,1086,1,1,'gB
 BYSL IGg B A A A cPL8T BAA DiHw BGpwW1 BGpwXz BGpwXz A A C','IV/0N+/T/T
 +eIAtTB/0d1B') failed. ERR=Duplicate entry '27191534' for key 1
 
 25-Jul 01:14 GLUON-DIR: BackupCatalog.2007-07-24_23.10.00 Fatal error:
 catreq.c:424 Attribute create error. sql_create.c:734 Create db File
 record INSERT INTO File (FileIndex,JobId,PathId,FilenameId,LStat,MD5)
 VALUES (1,1086,1,1,'gB BYSL IGg B A A A cPL8T BAA DiHw BGpwW1 BGpwXz
 BGpwXz A A C','IV/0N+/T/T+eIAtTB/0d1B') failed. ERR=Duplicate entry
 '27191534' for key 1
 
 25-Jul 01:14 GLUON-DIR: BackupCatalog.2007-07-24_23.10.00 
 Error: Bacula 1.38.10 (08Jun06): 25-Jul-2007 01:14:27
   JobId:  1086
   Job:BackupCatalog.2007-07-24_23.10.00
   Backup Level:   Full
   Client: GLUON-FD
 x86_64-unknown-linux-gnu,redhat,Enterprise release
   FileSet:Catalog 2006-01-04 00:07:10
   Pool:   Default
   Storage:gluon-sd
   Scheduled time: 24-Jul-2007 23:10:00
   Start time: 25-Jul-2007 01:12:36
   End time:   25-Jul-2007 01:14:27
   Elapsed time:   1 min 51 secs
   Priority:   11
   FD Files Written:   1
   SD Files Written:   1
   FD Bytes Written:   473,743,123 (473.7 MB)
   SD Bytes Written:   473,743,238 (473.7 MB)
   Rate:   4268.0 KB/s
   Software Compression:   None
   Volume name(s): t0007
   Volume Session Id:  4
   Volume Session Time:1185231255
   Last Volume Bytes:  96,074,142,626 (96.07 GB)
   Non-fatal FD errors:0
   SD Errors:  0
   FD termination status:  OK
   SD termination status:  OK
   Termination:*** Backup Error ***
 
 -- 
 Allen Barnett
 Transpire, Inc.
 e-mail: [EMAIL PROTECTED]
 Ph: 518-887-2930
 
 
 
 -
 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-devel mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/bacula-devel
 

-
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] MySQL Duplicate Entry

2007-07-25 Thread Kern Sibbald
Duh, dumb me -- the database name was included in the Subject line.
All the more reason to ask the bacula-users list :-)

On Wednesday 25 July 2007 13:41, Allen Barnett wrote:
 Hi,
 I'm running Bacula 1.38.10 on a Red Hat Enterprise Linux 4 64-bit
 Opteron box. The last couple of days, I've been getting this message
 from the nightly catalog backup run. Is there something I need to do to
 clean up the database(?) Thanks, Allen.
 
 25-Jul 01:12 GLUON-DIR: Start Backup JobId 1086,
 Job=BackupCatalog.2007-07-24_23.10.00
 
 25-Jul 01:14 GLUON-DIR: BackupCatalog.2007-07-24_23.10.00 Fatal error:
 sql_create.c:732 sql_create.c:732 insert INSERT INTO File
 (FileIndex,JobId,PathId,FilenameId,LStat,MD5) VALUES (1,1086,1,1,'gB
 BYSL IGg B A A A cPL8T BAA DiHw BGpwW1 BGpwXz BGpwXz A A C','IV/0N+/T/T
 +eIAtTB/0d1B') failed:
 Duplicate entry '27191534' for key 1
 
 25-Jul 01:14 GLUON-DIR: BackupCatalog.2007-07-24_23.10.00 Fatal error:
 sql_create.c:734 Create db File record INSERT INTO File
 (FileIndex,JobId,PathId,FilenameId,LStat,MD5) VALUES (1,1086,1,1,'gB
 BYSL IGg B A A A cPL8T BAA DiHw BGpwW1 BGpwXz BGpwXz A A C','IV/0N+/T/T
 +eIAtTB/0d1B') failed. ERR=Duplicate entry '27191534' for key 1
 
 25-Jul 01:14 GLUON-DIR: BackupCatalog.2007-07-24_23.10.00 Fatal error:
 catreq.c:424 Attribute create error. sql_create.c:734 Create db File
 record INSERT INTO File (FileIndex,JobId,PathId,FilenameId,LStat,MD5)
 VALUES (1,1086,1,1,'gB BYSL IGg B A A A cPL8T BAA DiHw BGpwW1 BGpwXz
 BGpwXz A A C','IV/0N+/T/T+eIAtTB/0d1B') failed. ERR=Duplicate entry
 '27191534' for key 1
 
 25-Jul 01:14 GLUON-DIR: BackupCatalog.2007-07-24_23.10.00 
 Error: Bacula 1.38.10 (08Jun06): 25-Jul-2007 01:14:27
   JobId:  1086
   Job:BackupCatalog.2007-07-24_23.10.00
   Backup Level:   Full
   Client: GLUON-FD
 x86_64-unknown-linux-gnu,redhat,Enterprise release
   FileSet:Catalog 2006-01-04 00:07:10
   Pool:   Default
   Storage:gluon-sd
   Scheduled time: 24-Jul-2007 23:10:00
   Start time: 25-Jul-2007 01:12:36
   End time:   25-Jul-2007 01:14:27
   Elapsed time:   1 min 51 secs
   Priority:   11
   FD Files Written:   1
   SD Files Written:   1
   FD Bytes Written:   473,743,123 (473.7 MB)
   SD Bytes Written:   473,743,238 (473.7 MB)
   Rate:   4268.0 KB/s
   Software Compression:   None
   Volume name(s): t0007
   Volume Session Id:  4
   Volume Session Time:1185231255
   Last Volume Bytes:  96,074,142,626 (96.07 GB)
   Non-fatal FD errors:0
   SD Errors:  0
   FD termination status:  OK
   SD termination status:  OK
   Termination:*** Backup Error ***
 
 -- 
 Allen Barnett
 Transpire, Inc.
 e-mail: [EMAIL PROTECTED]
 Ph: 518-887-2930
 
 
 
 -
 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-devel mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/bacula-devel
 

-
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] bat

2007-07-25 Thread Jerome Massano
Hello

I am trying to build my own bacula rpms (to include some home-made
changes). In this RPM, I have to include BAT (what a nice tool, great
work Kern and devs ^^), so I need to install Qt 4.2 or better. My
distribution has no package for this RPM, so I installed it with the
sources. My problem is that the configure tool does not find Qt. I read
the configure script, it seems to use pkg-config. What can I do to make
configure to find Qt where it is installed. There does not seem to be a
--with-qt=$QT_DIRECTORY option in configure.

Thank you in advance.

PS : I know my english is really bad. If you do not understand my
question, please tell me, I will try to explain better.


-
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] script exit code

2007-07-25 Thread Ingo Jochim
Hi guys,

I like to run a script before doing the backup. The backup should only 
run if the script ran successfully.
How can I do that?

I tried the following things:

I used ClientRunBeforeJob to start the script. If I have exit 1 for 
failures in my script the backup still finishes with an OK.

Then I tried this as part of the job and separate:

/RunBeforeJob {/
/ Command = .../
/ RunsOnClient = yes/
/ RunsAtJobLevels = All  # All, Full, Diff, Inc/
/ AbortJobOnError = No/
/ }


also tried 

RunScript {
..
}
/

But this seems to work only on windows machines. I get always error 
messages from the director like:
Config error: Keyword RunScript not permitted in this resource.
Perhaps you left the trailing brace off of the previous resource.


I'm running bacula on a debian machine with etch and bacula version 2.0.0-1.


Thank you for your help in advance.
Ingo



-
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] Job Concurrency

2007-07-25 Thread Josh Fisher
Support wrote:
 Dear Shon

 I have a similar situation and solved it byusing this stargegy.

 Firstly the disk volumes should be treated as Tape drives in that only
 onle volume can be opened at a time but you can have many concurrent jobs
 writing to that volume - my setting is for a maximum of 5 concurrent jobs/

   

The problem with concurrent jobs writing to the same volume is that job 
data is interleaved on the volume. For tape, the interleaving will make 
restores painfully slow. Even for disk storage it will slow things down. 
I prefer to have one job at a time write to a volume so that the jobs 
are placed sequentially in the volume. This would require multiple 
drives for tape, but for disk it just requires multiple device 
resources, each writing to a separate volume.  The volumes loaded in 
those devices are regular files and can be in the same partition or even 
the same directory.

 I write data to a LaCie 1 TB disc using Firewire and get throughput of
 about 60 GB / hr.

 If you have several customers and can group them then one option is to
 partition your disc so that each group uses a different partition and this
 can be seen as a different tape drive and the jobs should write to each
 partition concurrently.
   

They can be grouped by directories in the same partition. Partitioning 
will not likely make use of the full storage capacity of the drive 
because one partition will fill up first, leaving wasted space on the 
others. Grouping by directory and using a single partition on the drive 
allows the full capacity of the drive to be used.

 As for full backups I use job migration - ie the jobs are written to disc
 and then migrated to tape.

 If you need my config files I will email them to you.

 Regards
 Stephen Carr

 Shon Stephens wrote:
   
 I'm trying to understand job concurrency in Bacula and what strategy I
 should use for backing up clients.

 Its likely that I will have to backup around 50 clients. My strategy is to
 write incrementals to disk volumes and fulls to tapes. I assume its
 possible
 for Bacula to write to multiple disk volumes simultaneously if configured
 to
 do so, but what about tapes? I have my tapes divided by customer so that

 Customer1 Pool - 8 volumes, 2 in slots each week
 Customer2 Pool - 8 volumes, 2 in slots each week

 Can Bacula write a job from 2 different clients(file daemons) in Customer1
 Pool at the same time? How does this work? I understand that Bacula can't
 write a job from Customer1 Pool and Customer2 Pool at the same time
 because
 these are different volumes.

 Also can bacula simultaneously spool to disk and write to tape for the
 same
 job?

 I'm looking for good advice on how to streamline Bacula so that I'm not
 always running backups or have to many jobs waiting on resources in use.

 Thanks,
 Shon
 -
 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
   

-
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] Is there any option to retry backups of powered-off clients?

2007-07-25 Thread Steve

Thanks again.   This seems to work very well!

I am trying to run a ping script before as well, although it needs some work
to get the address from the Client name.

On 7/24/07, Brian Debelius [EMAIL PROTECTED] wrote:


ohhh, ahhh,  is this new?

brian-

Junior Cunha wrote:
 Steve Poulsen wrote:

 I am backing up several machines, but a couple of them are only on
 about 10% of the day.  Is there any kind of option on the daily
 backups to have it retry every hour so that when the machine comes
 back up it can get backed up?

 Hi Steve,

   You can use this options in your Job definition:

   Reschedule On Error, Reschedule Interval and Reschedule Times.

   Below, a full example:

 Job {
   Name = dns1
   Type = Backup
   Client = dns1
   FileSet = Full
   Messages = messages
   Storage = StorageServer
   Maximum Concurrent Jobs = 5
   Pool = Default
   Full Backup Pool = Full
   Incremental Backup Pool = Incremental
   Schedule = Daily
   Priority = 1
   Prune Jobs = yes
   Write Bootstrap = /var/db/bacula/dns1.bsr
   Reschedule On Error = yes
   Reschedule Interval = 2 hour
   Reschedule Times = 6
 }

[]s

 Junior Cunha



-
 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


Re: [Bacula-users] Restore errors

2007-07-25 Thread Doytchin Spiridonov
Hello,

2nd day w/o concurrent jobs: we have 1xFULL and 1xINCREMENTAL for all
clients.

Restore OK of all jobs.

Seems this (concurrent jobs) is the problem.

Regards.


Tuesday, July 24, 2007, 9:57:35 PM:

DS I don't have any other ideas to check with to provide more cases. It's
DS developers turn now...




-
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] usage help

2007-07-25 Thread Doytchin Spiridonov
Hello,

if a backup job is terminated (cancelled manually) what has to be done
to:
- clear all Catalog records that belong to that job
- clear all Volumes containing files for that record so they could be
reused?
I saw the prune/purge commands in the doc but it says the actual data
written to the Volumes will not be affected, only DB records would be
cleaned.

Regards


-
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] MTSETDRVBUFFER only allowed for root

2007-07-25 Thread Craig White
the 'end_of_backup.sh' script doesn't successfully eject the tape.

dmesg says:
MTSETDRVBUFFER only allowed for root

bacula log says:
25-Jul 08:27 SRV1: RunAfter: /dev/tape: Permission denied
25-Jul 08:27 SRV1: RunAfter: /dev/tape: Permission denied

# grep bacula /etc/group
disk:x:6:root,bacula
bacula:x:103:

# cat end_of_backup.sh
#! /bin/sh
/etc/bacula/delete_catalog_backup
mt rewind
mt eject
exit 0

# cat /etc/redhat-release
CentOS release 4.5 (Final)

# rpm -q bacula-mysql
bacula-mysql-1.38.5-4

How can I solve this short of adding bacula to 'root' group?

-- 
Craig White [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


Re: [Bacula-users] MTSETDRVBUFFER only allowed for root

2007-07-25 Thread Craig White
On Thu, 2007-07-26 at 00:11 +0200, Arno Lehmann wrote:
 Hi,
 
 25.07.2007 23:54,, Craig White wrote::
  the 'end_of_backup.sh' script doesn't successfully eject the tape.
  
  dmesg says:
  MTSETDRVBUFFER only allowed for root
 
 This should not matter here.
 
  bacula log says:
  25-Jul 08:27 SRV1: RunAfter: /dev/tape: Permission denied
  25-Jul 08:27 SRV1: RunAfter: /dev/tape: Permission denied
 
 Are you sure /dev/tape is the device node for your tape drive?
 
  # grep bacula /etc/group
  disk:x:6:root,bacula
  bacula:x:103:
  
  # cat end_of_backup.sh
  #! /bin/sh
  /etc/bacula/delete_catalog_backup
  mt rewind
  mt eject
  exit 0
 
 Try lines like 'mt -f /dev/st0 rewind' (perhaps replacing rewind with 
 rewoffl or offline) and use the device name you gave in your SD 
 configuration.
 
  # cat /etc/redhat-release
  CentOS release 4.5 (Final)
  
  # rpm -q bacula-mysql
  bacula-mysql-1.38.5-4
  
  How can I solve this short of adding bacula to 'root' group?
 
 Adding the proper permission to the device node?
 
 Knowing which user the SD and the DIR runs as, and the exact 
 permissions for your tape device would help, too...
 
 The former can be found out using, for example, ps or top while bacula 
 is running, or by looking into the start script.
 
 The latter can be found out by
 ls -l /dev/st* /dev/tape*
 for example.

Actually, I had been using /dev/nst0 (which is what I use in bacula-sd)
but I was getting the same message which is why I went back to the
distribution.

# ls -l /dev/nst0
crw-rw  1 root disk 9, 128 Jul  5 04:38 /dev/nst0

and I have changed end_of_backup.sh
# cat end_of_backup.sh
#! /bin/sh
/etc/bacula/delete_catalog_backup
mt -f /dev/nst0 rewind
mt -f /dev/nst0 eject
#mt rewind
#mt eject
exit 0

and I suppose that we will see tonight but I am certain that this is the
setup that I have been using for the past week and it has never ejected
a tape - and as you can see...the group 'disk' does indeed have rw
privileges on /dev/nst0 and as demonstrated before, the disk group
includes bacula user which is the user running bacula-sd.

# ps aux|grep bacula
bacula   10779  0.0  0.1 39092 1824 ?Ssl  08:04
0:00 /usr/sbin/bacula-sd -u bacula -g disk -c /etc/bacula/bacula-sd.conf

-- 
Craig White [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] Bacula will be included in the next Fedora release

2007-07-25 Thread Felix Schwarz
Hi *,

Andreas Thienemann's bacula RPMs for Fedora finally were accepted so Fedora 8 
will ship Bacula! Fedora EPEL (aka RPMs for CentOS/RHEL 4/5) does not come with 
all required packages at the moment, so Bacula is not into EPEL yet. According 
to Andreas this should be solved soon.

Bacula on Fedora will use the 'alternatives' system so you can use Bacula with 
sqlite, MySQL or Postgres as you like :-)

The proposed release date for Fedora 8 is 11/08 
(http://fedoraproject.org/wiki/Releases/8/).

fs


-
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] MTSETDRVBUFFER only allowed for root

2007-07-25 Thread Arno Lehmann
Hi,

26.07.2007 00:47,, Craig White wrote::
 On Thu, 2007-07-26 at 00:11 +0200, Arno Lehmann wrote:
 Hi,

 25.07.2007 23:54,, Craig White wrote::
 the 'end_of_backup.sh' script doesn't successfully eject the tape.

 dmesg says:
 MTSETDRVBUFFER only allowed for root
 This should not matter here.

 bacula log says:
 25-Jul 08:27 SRV1: RunAfter: /dev/tape: Permission denied
 25-Jul 08:27 SRV1: RunAfter: /dev/tape: Permission denied
 Are you sure /dev/tape is the device node for your tape drive?

 # grep bacula /etc/group
 disk:x:6:root,bacula
 bacula:x:103:

 # cat end_of_backup.sh
 #! /bin/sh
 /etc/bacula/delete_catalog_backup
 mt rewind
 mt eject
 exit 0
 Try lines like 'mt -f /dev/st0 rewind' (perhaps replacing rewind with 
 rewoffl or offline) and use the device name you gave in your SD 
 configuration.

 # cat /etc/redhat-release
 CentOS release 4.5 (Final)

 # rpm -q bacula-mysql
 bacula-mysql-1.38.5-4

 How can I solve this short of adding bacula to 'root' group?
 Adding the proper permission to the device node?

 Knowing which user the SD and the DIR runs as, and the exact 
 permissions for your tape device would help, too...

 The former can be found out using, for example, ps or top while bacula 
 is running, or by looking into the start script.

 The latter can be found out by
 ls -l /dev/st* /dev/tape*
 for example.
 
 Actually, I had been using /dev/nst0 (which is what I use in bacula-sd)
 but I was getting the same message which is why I went back to the
 distribution.
 
 # ls -l /dev/nst0
 crw-rw  1 root disk 9, 128 Jul  5 04:38 /dev/nst0
 
 and I have changed end_of_backup.sh
 # cat end_of_backup.sh
 #! /bin/sh
 /etc/bacula/delete_catalog_backup
 mt -f /dev/nst0 rewind
 mt -f /dev/nst0 eject
 #mt rewind
 #mt eject
 exit 0
 
 and I suppose that we will see tonight but I am certain that this is the
 setup that I have been using for the past week and it has never ejected
 a tape - and as you can see...the group 'disk' does indeed have rw
 privileges on /dev/nst0 and as demonstrated before, the disk group
 includes bacula user which is the user running bacula-sd.
 
 # ps aux|grep bacula
 bacula   10779  0.0  0.1 39092 1824 ?Ssl  08:04
 0:00 /usr/sbin/bacula-sd -u bacula -g disk -c /etc/bacula/bacula-sd.conf

Ok, then it's time for some testing...

as the bacula user, with the tape drive unmounted from bacula (or the 
SD stopped), try
mt -f /dev/nst0 rewind
and
... eject

If that works - great. If it doesn't, you should at least get an error 
message. If it's 'permission denied' again, there's still something 
missing, though I wouldn't understand that :-)

If this works from the shell, I would recommend upgrading Bacula to 
the latest released version, because that should fix the group 
association problem I recall.

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] MTSETDRVBUFFER only allowed for root

2007-07-25 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Troy Daniels wrote:
 Hi,
 
 Coming at this issue with fresh eyes I noticed you seem to have replaced 
 the 'delete_catalog_backup' script call in your catalog backup job with 
 'end_of_backup.sh'
 
 Unless I'm mistaken, I believe this script is run by the Director, not 
 the storage daemon.
 
 By default IIRC, the director runs as user bacula group bacula and 
 probably doesn't have permission to access your tape drive.
 
 On top of that, depending on your configuration, the SD probably has 
 your tape drive locked/blocked so the script couldn't eject the tape 
 anyways.
 
 One alternative that *should* work, is to replace your mt commands in 
 the script with calls to bconsole instead.
 
 I think something like:
 
 /usr/sbin/bcnosole -c /etc/bacula/bconsole.conf EOF1
 umount StorageName
 EOF1
 
 Should work.
 
 You might need to run the umount command under bconsole and take note of 
 any extra prompts and place the appropriate answers before the EOF1 in 
 the above example.
 
 I probably should also mention this is all from memory so is subject to 
 silly mistakes :)

I'm not sure why the original poster is even doing this, in the face of
other options like OfflineOnUmount etc., but I haven't really had the
inclination to jump into it.

- --
  _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Systems Programmer II
 |$| |__| |  | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGqB1Zmb+gadEcsb4RAqk0AJ9nu1W8p3s7/Mjh6en3GZQTCGxdRwCgmOIx
u3Mzbyln+jFIt1bVzHivjyI=
=AChW
-END PGP SIGNATURE-
begin:vcard
fn:Ryan Novosielski
n:Novosielski;Ryan
org:UMDNJ;IST/AST
adr;dom:MSB C630;;185 South Orange Avenue;Newark;NJ;07103
email;internet:[EMAIL PROTECTED]
title:Systems Programmer III
tel;work:(973) 972-0922
tel;fax:(973) 972-7412
tel;pager:(866) 20-UMDNJ
x-mozilla-html:FALSE
version:2.1
end:vcard

-
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] usage help

2007-07-25 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Doytchin Spiridonov wrote:
 Hello,
 
 if a backup job is terminated (cancelled manually) what has to be done
 to:
 - clear all Catalog records that belong to that job
 - clear all Volumes containing files for that record so they could be
 reused?
 I saw the prune/purge commands in the doc but it says the actual data
 written to the Volumes will not be affected, only DB records would be
 cleaned.

Only DB records are pruned, but if the DB shows no volumes on the tape
and you have recycling, etc., configured correctly, the volume will be
reused on its own. Check the manual -- this stuff is detailed.

- --
  _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Systems Programmer II
 |$| |__| |  | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGqB2hmb+gadEcsb4RAnkTAKCk9xZvSzE0glnFTc0WWQM/VKr89gCgsUe0
+8RShdJRLPcibGPxTaSeD74=
=Hs+o
-END PGP SIGNATURE-
begin:vcard
fn:Ryan Novosielski
n:Novosielski;Ryan
org:UMDNJ;IST/AST
adr;dom:MSB C630;;185 South Orange Avenue;Newark;NJ;07103
email;internet:[EMAIL PROTECTED]
title:Systems Programmer III
tel;work:(973) 972-0922
tel;fax:(973) 972-7412
tel;pager:(866) 20-UMDNJ
x-mozilla-html:FALSE
version:2.1
end:vcard

-
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-usersFedora 7 rpms

2007-07-25 Thread Felix Schwarz
Wes Hardaker schrieb:
 I can supply the current RPM and patches to anyone else that wants to
 take the task on though if anyone wants to do it instead.

Thanks for your offer but Andreas Thienemann already completed that task: 
Bacula 
will be in Fedora 8 :-)

fs


-
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] MTSETDRVBUFFER only allowed for root

2007-07-25 Thread Troy Daniels
Hi,

Coming at this issue with fresh eyes I noticed you seem to have replaced 
the 'delete_catalog_backup' script call in your catalog backup job with 
'end_of_backup.sh'

Unless I'm mistaken, I believe this script is run by the Director, not 
the storage daemon.

By default IIRC, the director runs as user bacula group bacula and 
probably doesn't have permission to access your tape drive.

On top of that, depending on your configuration, the SD probably has 
your tape drive locked/blocked so the script couldn't eject the tape 
anyways.

One alternative that *should* work, is to replace your mt commands in 
the script with calls to bconsole instead.

I think something like:

/usr/sbin/bcnosole -c /etc/bacula/bconsole.conf EOF1
umount StorageName
EOF1

Should work.

You might need to run the umount command under bconsole and take note of 
any extra prompts and place the appropriate answers before the EOF1 in 
the above example.

I probably should also mention this is all from memory so is subject to 
silly mistakes :)

Cheers,


Troy.

Arno Lehmann wrote:
 Hi,
 
 26.07.2007 01:56,, Craig White wrote::
 ...
 as the bacula user, with the tape drive unmounted from bacula (or the 
 SD stopped), try
 mt -f /dev/nst0 rewind
 and
 ... eject

 If that works - great. If it doesn't, you should at least get an error 
 message. If it's 'permission denied' again, there's still something 
 missing, though I wouldn't understand that :-)

 If this works from the shell, I would recommend upgrading Bacula to 
 the latest released version, because that should fix the group 
 association problem I recall.
 
 I suspect that you're correct - I am running bacula-2.0.3 here on RHELv5
 without issue and at this friend's office, I am running 1.3.8.x on
 CentOS 4.5 and it is a problem
 
 That looks like the group membership is in fact the problem.
 
 but in answer to your question, I can
 eject a tape as root, but if I try to run...

 # su - bacula -c 'mt -f /dev/nst0 rewind'
 This account is currently not available.

 and on both systems, bacula user has /sbin/nologin shell so this all
 doesn't make sense so I probably need to compile a newer version ;-(
 
 For testing purposes, I would not hesitate to set that to /bin/bash or 
 whatever you prefer...
 
 Arno
 
 Thanks

 

-
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