Kern Sibbald wrote:
Hello,
On Monday 12 December 2005 19:35, Richard W. Knight wrote:
Hi all,
A couple of weeks ago I upgraded my Bacula installation from 1.34 to
1.38.1. I made a few other changes at the same time and everything has
been working well since. Yesterday I decided to upgrade to 1.38.3. I
built from source using the same configuration options that I used to
build 1.38.1 with the addition of "--with-python". The build went OK,
no errors. I stopped 1.38.1 and started 1.38.3. Everything seemed to be
OK. I ran a couple of small test backups and there were no errors so I
assumed that the upgrade went fine. Last night the scheduled backup ran
and after the first job, instead of continuing on to the next job, I got
this message ...
12-Dec 07:29 MyJob-SMB-sd: Job MyJob.2005-12-12_01.05.01 waiting to reserve
a device.
This morning, when I first saw this message, I just did a mount from
bconsole and the job continued, I have bacula configured for 6 jobs per
media and the tape wasn't full so the job should have just started as it
hallways has. Now it's time to backup up the catalog, to file, and I'm
getting the same message.
I have an HP DDS2 drive, no changer, running on Slackware 10. I'm using
the same conf files the worked fine on 1.38.1. Can anyone tell me why
I'm now getting this error message?
You are not by any chance running on a 2.4 kernel with /lib/tls?
Could you send me your bacula-dir.conf and bacula-sd.conf along with the job
report that shows the jobs blocking?
Thanks,
RickKnight
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users
Thanks Kern,
I am running a 2.4.26 kernel, but I don't know about /lib/tls. I don't
have a /lib/tls on my system. How can I tell? Also, the .conf files are
attached along with the log.
Thanks again,
RickKnight
#
# 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.34.5 (21 June 2004) -- slackware Slackware 9.0.0
#
# 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 = knight-linux-SMB-dir
DIRport = 9101 # where we listen for UA connections
QueryFile = "/etc/bacula/query.sql"
WorkingDirectory = "/etc/bacula/work"
PidDirectory = "/var/run"
Maximum Concurrent Jobs = 1
Password = "justforbackup" # Console password
Messages = Standard
}
#JobDefs {
# Name = "DefaultJob"
# Type = Backup
# Level = Incremental
# Client = knight-linux-SMB-fd
# FileSet = "Full Set"
# Schedule = "WeeklyCycle"
# Storage = File
# Messages = Standard
# Pool = Default
# Priority = 10
#}
#
# Define the main nightly save backup job
# By default, this job will back up to disk in /tmp
#Job {
# Name = "WeeklySave"
# JobDefs = "DefaultJob"
# Level = Full
# Storage = Exabyte 8505XL
# Pool = WeeklyPool
# Write Bootstrap = "/etc/bacula/work/WeeklySave.bsr"
#}
Job {
Name = "Knight-Linux SMB"
# JobDefs = "DefaultJob"
Type = Backup
Client = knight-linux-SMB-fd
FileSet = "Knight-Linux SMB"
Schedule = WeeklyCycle
Storage = HP SureStore DAT-8
Messages = Standard
Pool = Default
Max Start Delay = 22h
Write Bootstrap = "/etc/bacula/work/NightlySave.bsr"
}
Job {
Name = "Knight-Linux"
Type = Backup
Client = knight-linux-fd
FileSet = "Knight-Linux"
Schedule = WeeklyCycle
Storage = HP SureStore DAT-8
Messages = Standard
Pool = Default
Max Start Delay = 22h
Write Bootstrap = "/etc/bacula/work/NightlySave_knight-linux.bsr"
}
# Backup the catalog database (after the nightly save)
Job {
Name = "BackupCatalog"
# JobDefs = "DefaultJob"
Level = Full
Type = backup
Client = knight-linux-SMB-fd
FileSet="Catalog"
Schedule = "WeeklyCycleAfterBackup"
Storage = File
Messages = Standard
Pool = Default
# This creates an ASCII copy of the catalog
RunBeforeJob = "/etc/bacula/make_catalog_backup bacula bacula justforbackup"
# This deletes the copy of the catalog
#RunAfterJob = "/etc/bacula/delete_catalog_backup"
RunAfterJob = "/etc/bacula/end_of_backup.sh"
Write Bootstrap = "/etc/bacula/work/BackupCatalog.bsr"
Priority = 11 # run after main backup
}
# Standard Restore template, to be changed by Console program
Job {
Name = "Restore Knight-Linux SMB"
Type = Restore
Client=knight-linux-SMB-fd
FileSet="Knight-Linux SMB"
Storage = File
Pool = Default
Messages = Standard
Where = /tmp/bacula-restores
Max Start Delay = 22h
}
Job {
Name = "Restore Knight-Linux"
Type = Restore
Client=knight-linux-fd
FileSet="Knight-Linux"
Storage = File
Pool = Default
Messages = Standard
Where = /tmp/bacula-restores
Max Start Delay = 22h
}
# List of files to be backed up
# All files (for knight-linux)
FileSet {
Name = "Knight-Linux"
Include {
Options {
signature = MD5;
onefs = no;
}
#
# Put your list of files here, one per line or include an
# external list with:
#
# <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.
#
File = /
File = /boot
}
#
# If you backup the root directory, the following two excluded
# files can be useful
#
Exclude {
File = /proc
File = /tmp
File = /mnt
File = /.journal
File = /.fsck
}
}
FileSet {
Name = "Knight-Linux SMB"
Include {
Options { signature=MD5 }
File = /public
File = /opt
FIle = /home
File = /etc
File = /usr/local/etc
}
Exclude {
File = /etc/bacula
}
}
# This is the backup of the catalog
FileSet {
Name = "Catalog"
Include {
Options {
signature=MD5;
compression = GZIP;
}
File = /etc/bacula/work/bacula.sql
}
}
#
# 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 = Level=Full Pool=WeeklyPool Saturday at 1:05
Run = Level=Incremental Pool=DailyPool Sunday at 1:05
Run = Level=Incremental Pool=DailyPool Monday at 1:05
Run = Level=Incremental Pool=DailyPool Tuesday at 1:05
Run = Level=Incremental Pool=DailyPool Wednesday at 1:05
Run = Level=Incremental Pool=DailyPool Thursday at 1:05
Run = Level=Incremental Pool=DailyPool Friday at 1:05
}
#Schedule {
# Name = "DailyCycle"
# Run = Incremental sun-fri at 1:05
#}
# This schedule does the catalog. It starts after the WeeklyCycle
Schedule {
Name = "WeeklyCycleAfterBackup"
Run = Full sun-sat at 1:10
}
# Client (File Services) to backup
Client {
Name = knight-linux-SMB-fd
Address = knight-linux-SMB
FDPort = 9102
Catalog = MyCatalog
Password = "justforbackup" # password for FileDaemon
File Retention = 30 days # 30 days
Job Retention = 6 months # six months
AutoPrune = yes # Prune expired Jobs/Files
}
Client {
Name = knight-linux-fd
Address = knight-linux.rlknight.com
# Address = 64.165.88.6
FDPort = 9102
Catalog = MyCatalog
Password = "justforbackup" # password for FileDaemon
File Retention = 30 days # 30 days
Job Retention = 6 months # six months
AutoPrune = yes # Prune expired Jobs/Files
}
# Definiton of file storage device
Storage {
Name = File
Address = knight-linux-SMB # N.B. Use a fully qualified name
here
SDPort = 9103
Password = "justforbackup"
Device = FileStorage
Media Type = File
}
# Definition of DDS tape storage device
Storage {
Name = HP SureStore DAT-8
Address = knight-linux-SMB # N.B. Use a fully qualified name
here
SDPort = 9103
Password = "justforbackup" # password for Storage daemon
Device = DAT-8 # must be same as Device in Storage daemon
Media Type = DDS2 # must be same as MediaType in Storage
daemon
}
# Definition of 8mm tape storage device
#Storage {
# Name = "8mmDrive"
# Address = knight-linux-SMB # N.B. Use a fully qualified name
here
# SDPort = 9103
# Password = "justforbackup"
# Device = "Exabyte 8mm"
# MediaType = "8mm"
#}
# Generic catalog service
Catalog {
Name = MyCatalog
dbsocket = /var/run/mysql/mysql.sock
dbname = bacula; user = bacula; password = "justforbackup"
}
# 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/bin/bsmtp -h mail.rlknight.com -f \"\(Bacula\) %r\" -s
\"Bacula: %t %e of %c %l\" %r"
operatorcommand = "/usr/bin/bsmtp -h mail.rlknight.com -f \"\(Bacula\) %r\"
-s \"Bacula: 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 = "/etc/bacula/work/log" = all, !skipped
}
# Default pool definition
Pool {
Name = Default
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 90 days # one year
Accept Any Volume = yes # write on any volume in the pool
Maximum Volume jobs = 0
Label Format = Catalog--
Maximum Volumes = 12
}
Pool {
Name = WeeklyPool
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 35d
Accept Any Volume = yes
Maximum Volume jobs = 2
Label Format = WeeklyFull-
Maximum Volumes = 12
}
Pool {
Name = DailyPool
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 14d
Accept Any Volume = yes
Maximum Volume jobs = 6
Label Format = DailyIncr-
Maximum Volumes = 6
}
#
# Default Bacula Storage Daemon Configuration file
#
# For Bacula release 1.34.5 (21 June 2004) -- slackware Slackware 9.0.0
#
# 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 = knight-linux-SMB-sd
SDPort = 9103 # Director's port
WorkingDirectory = "/etc/bacula/work"
Pid Directory = "/var/run"
}
#
# List Directors who are permitted to contact Storage daemon
#
Director {
Name = knight-linux-SMB-dir
Password = "justforbackup"
}
#
# Devices supported by this Storage daemon
# To connect, the Director's bacula-dir.conf must have the
# same Name and MediaType.
#
Device {
Name = FileStorage
Media Type = File
Archive Device = /tmp/bacula_cat
LabelMedia = yes; # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = no;
AlwaysOpen = no;
}
#
# A Linux or Solaris tape drive
#
#Device {
# Name = 8505XL # Exabyte 8505XL Tape drive
# Media Type = 8MM
# Archive Device = /dev/nst0
# AutomaticMount = yes; # when device opened, read it
# AlwaysOpen = no;
# RemovableMedia = yes;
# RandomAccess = no;
#}
#
# A Linux or Solaris tape drive
#
Device {
Name = DAT-8 # HP SureStore DAT-8 DDS-2 Tape Drive
Media Type = DDS2
Archive Device = /dev/nst0
LabelMedia = yes; # automatically label blank media
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = no;
RemovableMedia = yes;
RandomAccess = no;
}
#
# A FreeBSD tape drive
#
#Device {
# Name = DDS-4
# Description = "DDS-4 for FreeBSD"
# Media Type = DDS-4
# Archive Device = /dev/nsa1
# AutomaticMount = yes; # when device opened, read it
# AlwaysOpen = yes
# Offline On Unmount = no
# Hardware End of Medium = no
# BSF at EOM = yes
# Backward Space Record = no
# Fast Forward Space File = no
# TWO EOF = yes
#}
#
# A OnStream tape drive.
# You need the kernel osst driver 0.9.14 or later, and
# do "mt -f /dev/nosst0 defblksize 32768" once as root.
#
#Device {
# Name = OnStream
# Description = "OnStream drive on Linux"
# Media Type = OnStream
# Archive Device = /dev/nst0
# AutomaticMount = yes; # when device opened, read it
# AlwaysOpen = yes
# Offline On Unmount = no
## The min/max blocksizes of 32768 are *required*
# Minimum Block Size = 32768
# Maximum Block Size = 32768
#}
#
# A very old Exabyte with no end of media detection
#
#Device {
# Name = "Exabyte 8mm"
# Media Type = "8mm"
# Archive Device = /dev/nst0
# Hardware end of medium = No;
# AutomaticMount = yes; # when device opened, read it
# AlwaysOpen = Yes;
# RemovableMedia = yes;
# RandomAccess = no;
#}
#
# Send all messages to the Director,
# mount messages also are sent to the email address
#
Messages {
Name = Standard
director = knight-linux-SMB-dir = all
}
12-Dec 01:05 knight-linux-SMB-dir: Start Backup JobId 558,
Job=Knight-Linux_SMB.2005-12-12_01.05.00
12-Dec 01:05 knight-linux-SMB-sd: Job Knight-Linux_SMB.2005-12-12_01.05.00
waiting to reserve a device.
12-Dec 02:05 knight-linux-SMB-sd: Job Knight-Linux_SMB.2005-12-12_01.05.00
waiting to reserve a device.
12-Dec 04:05 knight-linux-SMB-sd: Job Knight-Linux_SMB.2005-12-12_01.05.00
waiting to reserve a device.
12-Dec 04:17 knight-linux-SMB-sd: Volume "DailyIncr-0011" previously written,
moving to end of data.
12-Dec 04:18 knight-linux-SMB-sd: Ready to append to end of Volume
"DailyIncr-0011" at file=3.
12-Dec 04:29 knight-linux-SMB-dir: Bacula 1.38.3 (09Dec05): 12-Dec-2005 04:29:17
JobId: 558
Job: Knight-Linux_SMB.2005-12-12_01.05.00
Backup Level: Incremental, since=2005-12-11 01:05:02
Client: "knight-linux-SMB-fd"
i686-pc-linux-gnu,slackware,Slackware 10.0.0
FileSet: "Knight-Linux SMB" 2005-11-21 01:05:02
Pool: "DailyPool"
Storage: "HPSureStoreDAT-8"
Scheduled time: 12-Dec-2005 01:05:00
Start time: 12-Dec-2005 01:05:02
End time: 12-Dec-2005 04:29:17
Priority: 10
FD Files Written: 1,885
SD Files Written: 1,885
FD Bytes Written: 288,793,783
SD Bytes Written: 289,064,639
Rate: 23.6 KB/s
Software Compression: None
Volume name(s): DailyIncr-0011
Volume Session Id: 2
Volume Session Time: 1134331562
Last Volume Bytes: 1,514,516,308
Non-fatal FD errors: 0
SD Errors: 0
FD termination status: OK
SD termination status: OK
Termination: Backup OK
12-Dec 04:29 knight-linux-SMB-dir: Begin pruning Jobs.
12-Dec 04:29 knight-linux-SMB-dir: No Jobs found to prune.
12-Dec 04:29 knight-linux-SMB-dir: Begin pruning Files.
12-Dec 04:29 knight-linux-SMB-dir: No Files found to prune.
12-Dec 04:29 knight-linux-SMB-dir: End auto prune.