My Bacula 3.01 system (installed on Ubuntu 9.04) is doing File backups
to an internal, terabyte volume. Bacula is using PostgreSql as a
database backend.
The system is an Ubuntu 9.04 desktop system, with a terabyte internal
volume for the backups, and an external terabyte volume for VirtualFull
backups
Bacula was downloaded and compiled from bacula.org
The system is set up to do a VirtualFull backup to an external USB
terabyte disk drive, using the NextPool parameter in the pool. Both
filesystems are formatted as ReiserFS.
The storage subsystem has two devices set up, both are set for "Media
Type = File", but each is set for a different archive device.
I have two issues here:
First, for some reason, after a while, it decides that the VirtualFull
backup fails. Other than the following section in the log file, there
is no other information given.
The second problem is that even though the error occurred on the
External pool, using the ExternalFileStorage, on volume "D1", the volume
which is marked in error is the volume on the Internal pool, volume
"Internal"
In the bacula-sd.conf, the Maximum Concurrent Jobs is set to 1.
In bacula-dir.conf, the director has Maximum Concurrent Jobs set to 1,
both for the director and for the two storage devices.
In bacula-fd.conf,
There are two significant problems here. First, is that an error is
being reported on a filesystem which is brand new, completely tested,
and no errors are shown in the system log.
The second, and more serious, is that the wrong volume is being marked
as being in error. This totally negates the value of a backup, since a
perfectly good backup is marked as being in error.
Any ideas would be greatly appreciated. I've attached (sanitized)
copies of the bacula-dir.conf and bacula-sd.conf (hopefully they will
come through). If the attachments don't come through, let me know and
I'll email them to whoever is interested.
JBB
vvvvvvvvvvvvvvvvvv Log output vvvvvvvvvvvvvvvv
05-Jun 17:21 bayer-dir JobId 149: Start Virtual Backup JobId 149,
Job=ImageBuilder.2009-06-05_16.13.22_14
05-Jun 17:21 bayer-dir JobId 149: Fatal error: No previous Jobs found.
05-Jun 17:21 bayer-dir JobId 149: Error: Bacula bayer-dir 3.0.1
(30Apr09): 05-Jun-2009 17:21:07
Build OS: x86_64-unknown-linux-gnu ubuntu 9.04
JobId: 149
Job: ImageBuilder.2009-06-05_16.13.22_14
Backup Level: Virtual Full
Client: "imagebuilder-fd" 3.0.1 (30Apr09)
i686-pc-linux-gnu,ubuntu,7.10
FileSet: "ImageBuilder Full Set" 2009-06-04 10:37:15
Pool: "External" (From Job Pool's NextPool resource)
Catalog: "MyCatalog" (From Client resource)
Storage: "ExternalFileStorage" (From Storage from
Pool's NextPool resource)
Scheduled time: 05-Jun-2009 16:13:19
Start time: 05-Jun-2009 17:21:07
End time: 05-Jun-2009 17:21:07
Elapsed time: 0 secs
Priority: 10
SD Files Written: 0
SD Bytes Written: 0 (0 B)
Rate: 0.0 KB/s
Volume name(s):
Volume Session Id: 0
Volume Session Time: 0
Last Volume Bytes: 0 (0 B)
SD Errors: 0
SD termination status:
Termination: *** Backup Error ***
^^^^^^^^^ end log output ^^^^^^^^^^^^^^^^^^
vvvvvvvvvvvvvv Media listing vvvvvvvvvvvvvvvvvv
Pool: Internal
+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| mediaid | volumename | volstatus | enabled | volbytes |
volfiles | volretention | recycle | slot | inchanger | mediatype |
lastwritten |
+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| 1 | Internal | Error | 1 | 714,354,391,772 |
166 | 31,536,000 | 1 | 0 | 0 | File | 2009-06-05
04:10:49 |
+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
Pool: External
+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| mediaid | volumename | volstatus | enabled | volbytes |
volfiles | volretention | recycle | slot | inchanger | mediatype |
lastwritten |
+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| 5 | D1 | Append | 1 | 272,625,134,040 |
63 | 31,536,000 | 1 | 0 | 0 | File | 2009-06-05
18:33:31 |
+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
^^^^^^^^^^^^^^^^^ end media listing
#
# For Bacula release 3.0.1 (30 April 2009) -- ubuntu 9.04
#
# 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 = bayer-dir
DIRport = 9101 # where we listen for UA connections
QueryFile = "/etc/bacula/query.sql"
WorkingDirectory = "/var/lib/bacula/working"
PidDirectory = "/var/run"
Maximum Concurrent Jobs = 1
Password = "********************8OX+xZkXYblh/L2C+PBFWZq9" # Console
password
Messages = Daemon
}
JobDefs {
Name = "DefaultJob"
Type = Backup
Level = Incremental
Client = ws123-fd
FileSet = "Full Set"
Schedule = "WeeklyCycle"
Storage = File
Messages = Standard
Pool = Internal
Priority = 10
Allow Duplicate Jobs = yes
Accurate = yes
}
#
# Define the main nightly save backup job
# By default, this job will back up to disk in
#Job {
# Name = "Client1"
# JobDefs = "DefaultJob"
# Write Bootstrap = "/var/lib/bacula/working/Client1.bsr"
#}
# Backup the catalog database (after the nightly save)
Job {
Name = "BackupCatalog"
JobDefs = "DefaultJob"
Level = Full
FileSet="Catalog"
Schedule = "WeeklyCycleAfterBackup"
# This creates an ASCII copy of the catalog
# WARNING!!! Passing the password via the command line is insecure.
# see comments in make_catalog_backup for details.
# Arguments to make_catalog_backup are:
# make_catalog_backup <database-name> <user-name> <password> <host>
RunBeforeJob = "/etc/bacula/make_catalog_backup bacula bacula"
# This deletes the copy of the catalog
RunAfterJob = "/etc/bacula/delete_catalog_backup"
Write Bootstrap = "/var/lib/bacula/working/BackupCatalog.bsr"
Priority = 12 # run after main backup
}
#
# Standard Restore template, to be changed by Console program
# Only one such job is needed for all Jobs/Clients/Storage ...
#
Job {
Name = "RestoreFiles"
Type = Restore
Client=ws123-fd
FileSet="Full Set"
Storage = File
Pool = Internal
Messages = Standard
Where = /bacula-restores
}
# List of files to be backed up
FileSet {
Name = "Full Set"
Include {
Options {
signature = MD5
}
File = /home/jbb/Desktop/Bacula/bacula-3.0.1
}
#
# 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 1:05
Run = Differential 2nd-5th sun at 1:05
Run = Incremental mon-sat at 1:05
Run = VirtualFull daily at 5:05
}
# This schedule does the catalog. It starts after the WeeklyCycle
Schedule {
Name = "WeeklyCycleAfterBackup"
Run = Full sun-sat at 1:10
Run = VirtualFull daily at 5:05
}
# This is the backup of the catalog
FileSet {
Name = "Catalog"
Include {
Options {
signature = MD5
}
File = /var/lib/bacula/working/bacula.sql
}
}
# Definition of file storage device
Storage {
Name = File
Address = ws123.regiscope.net
SDPort = 9103
Password = "****************sD0Tr2kZPuyoYQce2PwMITAlasEV"
Device = FileStorage
Media Type = File
Maximum Concurrent Jobs = 1
}
# Definition of file storage device
Storage {
Name = ExternalFileStorage
# Do not use "localhost" here
Address = ws123.regiscope.net
SDPort = 9103
Password = "*****************D0Tr2kZPuyoYQce2PwMITAlasEV"
Device = ExternalFileStorage
Media Type = File
Maximum Concurrent Jobs = 1
}
# Generic catalog service
Catalog {
Name = MyCatalog
# Uncomment the following line if you want the dbi driver
# dbdriver = "dbi:postgresql"; dbaddress = 127.0.0.1; dbport =
dbname = "bacula"; dbuser = "bacula"; dbpassword = "bacula00"
}
# Reasonable message delivery -- send most everything to email address
# and to the console
Messages {
Name = Standard
#
mailcommand = "/sbin/bsmtp -h mail.regiscope.com -f \"\(Bacula\) \<%r\>\" -s
\"Bacula: %t %e of %c %l\" %r"
operatorcommand = "/sbin/bsmtp -h mail.regiscope.com -f \"\(Bacula\) \<%r\>\"
-s \"Bacula: Intervention needed for %j\" %r"
mail = jba...@regiscope.com = all, !skipped
operator = jba...@regiscope.com = 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/working/log" = all, !skipped
}
#
# Message delivery for daemon messages (no job).
Messages {
Name = Daemon
mailcommand = "/sbin/bsmtp -h mail.regiscope.com -f \"\(Bacula\) \<%r\>\" -s
\"Bacula daemon message\" %r"
mail = jba...@regiscope.com = all, !skipped
console = all, !skipped, !saved
append = "/var/lib/bacula/working/log" = all, !skipped
}
# Default pool definition
Pool {
Name = Internal
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 365 days # one year
NextPool = External
Storage = File
}
# Default pool definition
Pool {
Name = External
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 365 days # one year
Storage = ExternalFileStorage
}
# Scratch pool definition
Pool {
Name = Scratch
Pool Type = Backup
}
#
# Restricted console used by tray-monitor to get the status of the director
#
Console {
Name = bayer-mon
Password = "*****************rEStNzjCrOHFGVBQIvt4ygP0eGY"
CommandACL = status, .status
}
#
## All Client-specific files are stored in the bacula-dir.d directory and
included here
#
@bacula-dir.d/brian.conf
@bacula-dir.d/brian-desktop.conf
@bacula-dir.d/clonezilla.conf
@bacula-dir.d/darkroast.conf
@bacula-dir.d/demowebsrv.conf
@bacula-dir.d/dns.conf
@bacula-dir.d/ids.conf
@bacula-dir.d/imagebuilder.conf
@bacula-dir.d/mail.conf
@bacula-dir.d/nagios.conf
@bacula-dir.d/peaberry.conf
@bacula-dir.d/repository.conf
@bacula-dir.d/rdi.conf
@bacula-dir.d/regvpn1.conf
@bacula-dir.d/ws123.conf
@bacula-dir.d/www.conf
#
# Default Bacula Storage Daemon Configuration file
#
# For Bacula release 3.0.1 (30 April 2009) -- ubuntu 9.04
#
# 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 = bayer-sd
SDPort = 9103 # Director's port
WorkingDirectory = "/var/lib/bacula/working"
Pid Directory = "/var/run"
Maximum Concurrent Jobs = 1
}
#
# List Directors who are permitted to contact Storage daemon
#
Director {
Name = bayer-dir
Password = "*******************Tr2kZPuyoYQce2PwMITAlasEV"
}
#
# Restricted Director, used by tray-monitor to get the
# status of the storage daemon
#
Director {
Name = bayer-mon
Password = "*******************GmzyGTKFRonQST7uttNZ22G61"
Monitor = yes
}
#
# 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 = /var/lib/bacula/archive
LabelMedia = yes; # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = no;
AlwaysOpen = no;
SpoolDirectory = /var/spool/bacula
}
Device {
Name = ExternalFileStorage
Media Type = File
Archive Device = /media/bacula
LabelMedia = yes; # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = no;
AlwaysOpen = no;
SpoolDirectory = /var/spool/bacula
}
#
# Send all messages to the Director,
# mount messages also are sent to the email address
#
Messages {
Name = Standard
director = bayer-dir = all
}
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users