Shad L. Lords wrote:
> I've been seeing bacula hang/lockup for a while now. It appears to be
> happening in the SD. When the condition happens I'm still able to
> connect to the DIR and issue commands. However when I try to do a
> status storage command it will hang on "Used Volume status:". Also a
> status director shows jobs that are still running.
I am seeing this one, too, but with version 2.4.4 from Debian Lenny
I've attached my (sanitized) config-files.
Unfortunately I am not able to provide a backtrace at his time.
Grüße,
Sven.
# $Id: bacula-dir.conf 15181 2009-04-22 12:05:51Z oweh $
# Default Bacula Director Configuration file
#
# The only thing that MUST be changed is to add one or more
# file or directory names in the Include directive of the
# FileSet resource.
#
# For Bacula release 1.38.9 (02 May 2006) -- debian 3.1
#
# You might also want to change the default email address
# from root to your address. See the "mail" and "operator"
# directives in the Messages resource.
#
Director { # define myself
Name = backray-dir
DIRport = 9101 # where we listen for UA connections
QueryFile = "/etc/bacula/scripts/query.sql"
WorkingDirectory = "/var/lib/bacula"
PidDirectory = "/var/run/bacula"
Maximum Concurrent Jobs = 40
Password = "THISWASREMOVED" # Console password
Messages = Daemon
FD Connect Timeout = 1 min
SD Connect Timeout = 1 min
}
JobDefs {
Name = "DefaultJob"
Type = Backup
Level = Incremental
Pool = Full-Pool
Full Backup Pool = Full-Pool
Incremental Backup Pool = Inc-Pool
Differential Backup Pool = Diff-Pool
FileSet = "Full Set"
Schedule = "WeeklyCycle"
Messages = Standard
Priority = 10
Spool Data = yes
Maximum Concurrent Jobs = 30
Reschedule On Error = yes
Reschedule Interval = 30 minutes
Reschedule Times = 5
}
JobDefs {
Name = "WSJob"
Type = Backup
Level = Incremental
Schedule = "WSWeeklyCycle"
Messages = Standard
Pool = Full-Pool
Full Backup Pool = Full-Pool
Incremental Backup Pool = Inc-Pool
Differential Backup Pool = Diff-Pool
Priority = 15
Maximum Concurrent Jobs = 30
Spool Data = yes
Reschedule On Error = yes
Reschedule Interval = 30 minutes
Reschedule Times = 5
}
JobDefs {
Name = "WSNightJob"
Type = Backup
Level = Incremental
Schedule = "WSWeeklyNightCycle"
Messages = Standard
Pool = Full-Pool
Full Backup Pool = Full-Pool
Incremental Backup Pool = Inc-Pool
Differential Backup Pool = Diff-Pool
Priority = 15
Maximum Concurrent Jobs = 30
Spool Data = yes
Reschedule On Error = yes
Reschedule Interval = 30 minutes
Reschedule Times = 5
}
JobDefs {
Name = "VmwareWSJob"
Type = Backup
Level = Incremental
Schedule = "VMWSWeeklyCycle"
Messages = Standard
Pool = Full-Pool
Full Backup Pool = Full-Pool
Incremental Backup Pool = Inc-Pool
Differential Backup Pool = Diff-Pool
Spool Data = yes
Priority = 20
Maximum Concurrent Jobs = 30
Reschedule On Error = yes
Reschedule Interval = 30 minutes
Reschedule Times = 5
}
# Backup the catalog database (after the nightly save)
Job {
Name = "BackupCatalog"
JobDefs = "DefaultJob"
Client = backray-fd
Level = Full
FileSet="Catalog"
Schedule = "WeeklyCycleAfterBackup"
# This creates an ASCII copy of the catalog
RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup bacula bacula
DBPASSWDHERE"
# This deletes the copy of the catalog
RunAfterJob = "/etc/bacula/scripts/delete_catalog_backup"
WriteBootstrap = "/var/lib/bacula/MyCatalog.bsr"
Priority = 21 # run after main backup
Spool Data = yes
}
#Job {
# Name = "BackupBacksvCatalog"
# JobDefs = "DefaultJob"
# Client = backsv-fd
# FileSet = BacksvCatalog
# Schedule = "CatalogCycle"
# Level = Full
# ClientRunBeforeJob = "/etc/bacula/scripts/make_catalog_backup bacula bacula
fs?f43ZU!"
# # This deletes the copy of the catalog
# ClientRunAfterJob = "/etc/bacula/scripts/delete_catalog_backup"
# WriteBootstrap = "/var/lib/bacula/BacksvMyCatalog.bsr"
#
#}
###############################################
# Restore Jobs
###############################################
# Standard Restore template, to be changed by Console program
Job {
Name = "RestoreTemplate"
Type = Restore
Fileset = "Dummy"
Client = backray-fd
Pool = Full-Pool
Messages = Standard
Where = /tmp/bacula-restores
}
Job {
Name = "VerifyTemplate"
Type = Verify
Fileset = "Dummy"
Client = backray-fd
Pool = Full-Pool
Messages = Standard
Where = /tmp/bacula-restores
}
###############################################
# Filesets
###############################################
FileSet {
Name = "Dummy"
Include {
Options {
signature = MD5
compression = GZIP4
}
}
}
FileSet {
Name = "BacksvCatalog"
Include {
Options {
signature = MD5
compression = GZIP6
}
File = /var/spool/bacula/bacula.sql
}
}
# ___ _ _ ____ _ _ _ ____ _____ ____
#|_ _| \ | |/ ___| | | | | | _ \| ____/ ___|
# | || \| | | | | | | | | | | | _| \___ \
# | || |\ | |___| |__| |_| | |_| | |___ ___) |
#|___|_| \_|\____|_____\___/|____/|_____|____/
##############################
# Jobs,Clients,FileSets
##############################
@/etc/bacula/alldefs.inc
###############################################
# Schedules
###############################################
Schedule {
Name = "WeeklyCycle"
Run = Full 1st sat at 0:00am
Run = Differential 2nd,3rd,4th,5th sat at 0:00am
Run = Incremental sun-fri at 0:00am
}
Schedule {
Name = "CatalogCycle"
Run = Full mon at 3:05am
}
Schedule {
Name = "MailstoreWeeklyCycle"
Run = Full 1st sat at 0:00am
Run = Differential 2nd,3rd,4th,5th sat at 0:00am
Run = Incremental sun-fri at 0:00am
# Run = Incremental mon-sun at 12:00pm
}
Schedule {
Name = "WSWeeklyCycle"
Run = Full 1st fri at 11:00am
Run = Differential 2nd,3rd,4th,5th fri at 11:00am
Run = Incremental mon-thu at 11:00am
}
Schedule {
Name = "WSWeeklyNightCycle"
Run = Full 1st fri at 00:00am
Run = Differential 2nd,3rd,4th,5th fri at 00:00am
Run = Incremental mon-thu at 00:00am
}
Schedule {
Name = "VMWSWeeklyCycle"
Run = Full 1st fri at 11:00
Run = Differential 2nd,3rd,4th,5th fri at 11:00am
}
Schedule {
Name = "WSOnlyFullWeeklyCycle"
Run = Full fri at 12:30pm
}
# This schedule does the catalog. It starts after the WeeklyCycle
Schedule {
Name = "WeeklyCycleAfterBackup"
Run = Full sun-sat at 3:05am
}
###############################################
# Clients
###############################################
#### von backsv
# List of files to be backed up
FileSet {
Name = "Full Set"
Include {
Options {
signature = MD5
compression = GZIP4
}
#
# Put your list of files here, preceded by 'File =', one per line
# or include an external list with:
#
# File = <file-name
#
# Note: / backs up everything on the root partition.
# if you have other partitons such as /usr or /home
# you will probably want to add them too.
#
# By default this is defined to point to the Bacula build
# directory to give a reasonable FileSet to backup to
# disk storage during initial testing.
#
}
#
# If you backup the root directory, the following two excluded
# files can be useful
#
Exclude {
File = /proc
File = /tmp
File = /.journal
File = /.fsck
}
}
#
# When to do the backups, full backup on first sunday of the month,
# differential (i.e. incremental since full) every other sunday,
# and incremental backups other days
#Schedule {
# Name = "WeeklyCycle"
# Run = Full 1st sun at 23:05
# Run = Differential 2nd-5th sun at 23:05
# Run = Incremental mon-sat at 23:05
#}
# This schedule does the catalog. It starts after the WeeklyCycle
#Schedule {
# Name = "WeeklyCycleAfterBackup"
# Run = Full sun-sat at 23:10
#}
# This is the backup of the catalog
FileSet {
Name = "Catalog"
Include {
Options {
signature = MD5
compression = GZIP9
}
File = /backup/bacula.sql
}
}
# Definition of file storage device
Storage {
Name = FileFull
# Do not use "localhost" here
Address = backray.dvz.fh-giessen.de # N.B. Use a fully
qualified name here
SDPort = 9103
Password = "THISWASREMOVED"
Device = FileStorageFull
Media Type = File
# Funktioniert derzeit nicht
Maximum Concurrent Jobs = 15
}
Storage {
Name = FileDiff
# Do not use "localhost" here
Address = backray.dvz.fh-giessen.de # N.B. Use a fully
qualified name here
SDPort = 9103
Password = "THISWASREMOVED"
Device = FileStorageDiff
Media Type = File
# Funktioniert derzeit nicht
Maximum Concurrent Jobs = 15
}
Storage {
Name = FileInc
# Do not use "localhost" here
Address = backray.dvz.fh-giessen.de # N.B. Use a fully
qualified name here
SDPort = 9103
Password = "THISWASREMOVED"
Device = FileStorageInc
Media Type = File
# Funktioniert derzeit nicht
Maximum Concurrent Jobs = 15
}
# Generic catalog service
Catalog {
Name = MyCatalog
dbname = bacula; DB Address = ""; user = bacula; password = "DBPASSWDHERE"
}
# Reasonable message delivery -- send most everything to email address
# and to the console
Messages {
Name = Standard
#
# NOTE! If you send to two email or more email addresses, you will need
# to replace the %r in the from field (-f part) with a single valid
# email address in both the mailcommand and the operatorcommand.
#
mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula Backray\)
%r\" -s \"Bacula Backray: %t %e of %c %l\" %r"
operatorcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula Backray\)
%r\" -s \"Bacula Backray: Intervention needed for %j\" %r"
mail = [email protected] = all, !skipped
operator = [email protected] = mount
console = all, !skipped, !saved
#
# WARNING! the following will create a file that you must cycle from
# time to time as it will grow indefinitely. However, it will
# also keep all your messages if they scroll off the console.
#
append = "/var/lib/bacula/log" = all, !skipped
}
#
# Message delivery for daemon messages (no job).
Messages {
Name = Daemon
mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula Backray\)
%r\" -s \"Bacula Backray daemon message\" %r"
mail = [email protected] = all, !skipped
console = all, !skipped, !saved
append = "/var/lib/bacula/log" = all, !skipped
}
# Default pool definition
Pool {
Name = Full-Pool
Pool Type = Backup
Recycle = yes
AutoPrune = yes
VolumeRetention = 120 days
Label Format = Full-
Maximum Volume Bytes = 21474836480
Storage = FileFull
}
Pool {
Name = Diff-Pool
Pool Type = Backup
Recycle = yes
AutoPrune = yes
VolumeRetention = 120 days
Label Format = Diff-
Maximum Volume Bytes = 5368709120
Storage = FileDiff
}
Pool {
Name = Inc-Pool
Pool Type = Backup
Recycle = yes
AutoPrune = yes
VolumeRetention = 120 days
Label Format = Inc-
Maximum Volume Bytes = 2684354560
Storage = FileInc
}
#
# Restricted console used by tray-monitor to get the status of the director
#
Console {
Name = backray-mon
Password = "THISWASREMOVED"
CommandACL = status, .status
}
# $Id: bacula-sd.conf 15181 2009-04-22 12:05:51Z oweh $
# Default Bacula Storage Daemon Configuration file
#
# For Bacula release 1.38.9 (02 May 2006) -- debian 3.1
#
# You may need to change the name of your tape drive
# on the "Archive Device" directive in the Device
# resource. If you change the Name and/or the
# "Media Type" in the Device resource, please ensure
# that dird.conf has corresponding changes.
#
Storage { # definition of myself
Name = backray-sd
SDPort = 9103 # Director's port
WorkingDirectory = "/var/lib/bacula"
Pid Directory = "/var/run/bacula"
Maximum Concurrent Jobs = 40
Heartbeat Interval = 30s
}
#
# List Directors who are permitted to contact Storage daemon
#
Director {
Name = backray-dir
Password = "THISWASREMOVED"
}
#
# Devices supported by this Storage daemon
# To connect, the Director's bacula-dir.conf must have the
# same Name and MediaType.
#
Device {
Name = FileStorageFull
Media Type = File
Device Type = File
Archive Device = /backup
LabelMedia = yes; # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = no;
Maximum Spool Size = 250G
Spool Directory = /backup/spool
}
Device {
Name = FileStorageDiff
Media Type = File
Device Type = File
Archive Device = /backup
LabelMedia = yes; # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = no;
Maximum Spool Size = 250G
Spool Directory = /backup/spool
}
Device {
Name = FileStorageInc
Media Type = File
Device Type = File
Archive Device = /backup
LabelMedia = yes; # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = no;
Maximum Spool Size = 250G
Spool Directory = /backup/spool
}
#
# Send all messages to the Director,
# mount messages also are sent to the email address
#
Messages {
Name = Standard
director = backray-dir = all
}
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel