Hi I'm having trouble using Bacula on Solaris 10 (x86) and an Exabyte
VXA 1x10. See my configuration and the output for the problem. I
already tried the btape test and it runs succesful.
My bacula-dir.conf:
#
# 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.11 (28 June 2006) -- solaris 5.10
#
# 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 = chet-dir
DIRport = 9101 # where we listen for UA connections
QueryFile = "/opt/32/bacula/etc/query.sql"
WorkingDirectory = "/opt/32/bacula/var/bacula/working"
PidDirectory = "/var/run"
Maximum Concurrent Jobs = 1
Password = "*****************************" # Console password
Messages = Daemon
}
JobDefs {
Name = "DefaultJob"
Type = Backup
Level = Incremental
Client = chet-fd
FileSet = "Home Directories"
Schedule = "WeeklyCycle"
Storage = Tape
Messages = Standard
Pool = Default
Priority = 10
}
# Backup of the home directories
Job {
Name = "Home Directories Job"
Enabled = yes
Type = Backup
Client = chet-fd
FileSet = "Home Directories"
Schedule = "WeeklyCycle"
Messages = Standard
Pool = Default
Storage = Tape
}
# Backup of mail
Job {
Name = "Mail Job"
Enabled = yes
Type = Backup
Client = chet-fd
FileSet = "Mail Directories"
Schedule = "WeeklyCycle"
Messages = Standard
Pool = Default
Storage = Tape
}
# backup of the mysql database
Job {
Name = "MySQL Job"
Enabled = yes
Type = Backup
Client = chet-fd
FileSet = "MySQL Dump"
Schedule = "WeeklyCycle"
Messages = Standard
Pool = Default
Storage = Tape
RunBeforeJob = "/opt/32/bacula/etc/make_mysql_backup root [EMAIL PROTECTED]"
RunAfterJob = "/opt/32/bacula/etc/delete_mysql_backup"
}
# 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
RunBeforeJob = "/opt/32/bacula/etc/make_catalog_backup bacula
bacula 8fGGVjey24f7vhUe"
# This deletes the copy of the catalog
RunAfterJob = "/opt/32/bacula/etc/delete_catalog_backup"
Write Bootstrap = "/opt/32/bacula/var/bacula/working/
BackupCatalog.bsr"
Priority = 11 # 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=chet-fd
FileSet="Home Directories"
Storage = File
Pool = Default
Messages = Standard
Where = /tmp/bacula-restores
}
FileSet {
Name = "Mail Directories"
Include {
Options {
signature = MD5
}
File = /var/qmail/popboxes/domains/
}
}
FileSet {
Name = "Home Directories"
Include {
Options {
signature = MD5
}
File = /export/home/users/
File = /export/home/large/
File = /export/home/medium/
File = /export/home/lite/
File = /export/home/agenda/
}
}
FileSet {
Name = "MySQL Dump"
Include {
Options {
signature = MD5
}
File = /export/home/mysql/backup/bacula.sql.bz2
}
}
#
# 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
}
File = /opt/32/bacula/var/bacula/working/bacula.sql
}
}
# Client (File Services) to backup
Client {
Name = chet-fd
Address = chet
FDPort = 9102
Catalog = MyCatalog
Password = "********************************" # password
for FileDaemon
File Retention = 30 days # 30 days
Job Retention = 6 months # six months
AutoPrune = yes # Prune expired Jobs/Files
}
#
# Second Client (File Services) to backup
# You should change Name, Address, and Password before using
#
#Client {
# Name = chet2-fd
# Address = chet2
# FDPort = 9102
# Catalog = MyCatalog
# Password = "************************************" #
password for FileDaemon 2
# File Retention = 30 days # 30 days
# Job Retention = 6 months # six months
# AutoPrune = yes # Prune expired Jobs/Files
#}
# Definition of file storage device
Storage {
Name = File
# Do not use "localhost" here
Address = chet # N.B. Use a fully qualified name here
SDPort = 9103
Password = "*********************************************"
Device = FileStorage
Media Type = File
}
# Definition of DDS tape storage device
Storage {
Name = Tape
# Do not use "localhost" here
Address = chet # N.B. Use a fully qualified name here
SDPort = 9103
Password = "******************************************" #
password for Storage daemon
Device = "Exabyte VXA-2 Drive" # must be same as Device in
Storage daemon
Media Type = "VXA-2" # must be same as MediaType
in Storage daemon
Autochanger = yes # enable for autochanger device
}
# Generic catalog service
Catalog {
Name = MyCatalog
dbname = bacula; user = bacula; password = "************************"
}
# 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 = "/opt/32/bacula/sbin/bsmtp -h smtp.youngguns.nl -f
\"\(Bacula\) %r\" -s \"Bacula: %t %e of %c %l\" %r"
operatorcommand = "/opt/32/bacula/sbin/bsmtp -h smtp.youngguns.nl -
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 = "/opt/32/bacula/var/bacula/working/log" = all, !skipped
}
#
# Message delivery for daemon messages (no job).
Messages {
Name = Daemon
mailcommand = "/opt/32/bacula/sbin/bsmtp -h smtp.youngguns.nl -f
\"\(Bacula\) %r\" -s \"Bacula daemon message\" %r"
mail = [EMAIL PROTECTED] = all, !skipped
console = all, !skipped, !saved
append = "/opt/32/bacula/var/bacula/working/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 = 60 days # one year
#Accept Any Volume = yes # write on any volume in the
pool
Cleaning Prefix = "CLN"
}
#
# Restricted console used by tray-monitor to get the status of the
director
#
Console {
Name = chet-mon
Password = "***********************************"
CommandACL = status, .status
}
And bacula-sd.conf:
#
# Default Bacula Storage Daemon Configuration file
#
# For Bacula release 1.38.11 (28 June 2006) -- solaris 5.10
#
# 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 = chet-sd
SDPort = 9103 # Director's port
WorkingDirectory = "/opt/32/bacula/var/bacula/working"
Pid Directory = "/var/run"
Maximum Concurrent Jobs = 50
}
#
# List Directors who are permitted to contact Storage daemon
#
Director {
Name = chet-dir
Password = "**************************"
}
#
# Restricted Director, used by tray-monitor to get the
# status of the storage daemon
#
Director {
Name = chet-mon
Password = "***************************"
Monitor = yes
}
#
# Devices supported by this Storage daemon
# To connect, the Director's bacula-dir.conf must have the
# same Name and MediaType.
#
Autochanger {
Name = "Exabyte VXA-2 PacketLoader 1x10"
Device = "Exabyte VXA-2 Drive"
Changer Device = /dev/sg0
Changer Command = "/opt/bacula/etc/mtx-changer %c %o %S %a %d"
}
Device {
Name = "Exabyte VXA-2 Drive"
Drive Index = 0
Media Type = "VXA-2"
Device Type = Tape
Archive Device = /dev/rmt/0mbn
AutomaticMount = yes
AlwaysOpen = yes
RemovableMedia = yes
RandomAccess = no
AutoChanger = yes
Changer Command = "/opt/bacula/etc/mtx-changer %c %o %S %a %d"
Alert Command = "sh -c '/opt/mtx/sbin/tapeinfo -f %c |grep
TapeAlert|cat'"
Changer Device = /dev/sg0
Label Media = yes
}
Messages {
Name = Standard
director = chet-dir = all
}
And the output:
05-Feb 00:16 chet-dir: Start Backup JobId 41, Job=Mail_Job.
2007-02-04_23.05.01
05-Feb 00:46 chet-sd: Mail_Job.2007-02-04_23.05.01 Error: block.c:569
Write error at 87:755 on device "Exabyte VXA-2 Drive" (/dev/rmt/
0mbn). ERR=I/O error.
05-Feb 00:46 chet-sd: Mail_Job.2007-02-04_23.05.01 Error: Error
writing final EOF to tape. This Volume may not be readable.
dev.c:1687 ioctl MTWEOF error on "Exabyte VXA-2 Drive" (/dev/rmt/
0mbn). ERR=I/O error.
05-Feb 00:46 chet-sd: End of medium on Volume "A0000002"
Bytes=70,250,213,376 Blocks=1,088,947 at 05-Feb-2007 00:46.
05-Feb 00:46 chet-sd: 3307 Issuing autochanger "unload slot 2, drive
0" command.
05-Feb 00:49 chet-sd: 3304 Issuing autochanger "load slot 3, drive 0"
command.
05-Feb 00:50 chet-sd: 3305 Autochanger "load slot 3, drive 0", status
is OK.
05-Feb 00:50 chet-sd: 3301 Issuing autochanger "loaded? drive 0"
command.
05-Feb 00:50 chet-sd: 3302 Autochanger "loaded? drive 0", result is
Slot 3.
05-Feb 00:50 chet-sd: Wrote label to prelabeled Volume "A0000003" on
device "Exabyte VXA-2 Drive" (/dev/rmt/0mbn)
05-Feb 00:50 chet-sd: New volume "A0000003" mounted on device
"Exabyte VXA-2 Drive" (/dev/rmt/0mbn) at 05-Feb-2007 00:50.
05-Feb 00:51 chet-sd: Job write elapsed time = 00:31:29, Transfer
rate = 3.937 M bytes/second
05-Feb 00:51 chet-dir: Bacula 2.0.0 (04Jan07): 05-Feb-2007 00:51:53
JobId: 41
Job: Mail_Job.2007-02-04_23.05.01
Backup Level: Full
Client: "chet-fd" 2.0.0 (04Jan07) i386-pc-
solaris2.10,solaris,5.10
FileSet: "Mail Directories" 2007-01-28 23:05:01
Pool: "Default" (From Job resource)
Storage: "Tape" (From Job resource)
Scheduled time: 04-Feb-2007 23:05:00
Start time: 05-Feb-2007 00:16:20
End time: 05-Feb-2007 00:51:53
Elapsed time: 35 mins 33 secs
Priority: 10
FD Files Written: 78,697
SD Files Written: 78,697
FD Bytes Written: 7,422,296,793 (7.422 GB)
SD Bytes Written: 7,437,297,229 (7.437 GB)
Rate: 3479.7 KB/s
Software Compression: None
VSS: no
Encryption: no
Volume name(s): A0000002|A0000003
Volume Session Id: 2
Volume Session Time: 1170549260
Last Volume Bytes: 397,264,896 (397.2 MB)
Non-fatal FD errors: 0
SD Errors: 0
FD termination status: OK
SD termination status: OK
Termination: Backup OK
05-Feb 00:51 chet-dir: Begin pruning Jobs.
05-Feb 00:51 chet-dir: No Jobs found to prune.
05-Feb 00:51 chet-dir: Begin pruning Files.
05-Feb 00:51 chet-dir: No Files found to prune.
05-Feb 00:51 chet-dir: End auto prune.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users