Hi guys,
i have many problem with bacula. I'm trying now a long time to get this changer
to work, but it will not!
Wenn I use the Btape tool, then he told me that the changertest was succesful,
but when I start to backup some clients and the first tape get full he dont
take the next.
I think I'm the main problem, because I am a beginner and I have some big
problems to understand this system.
I hope there is someone who can help me to get this changer to work.
Here are my Configs:
lsscsi -g
[0:0:0:0] disk ServeRA
Array1 V1.0 /dev/sda
/dev/sg0
[1:0:0:0] tape IBM
ULT3580-TD3 73P5 /dev/st0 /dev/sg1
[1:0:0:1] mediumx IBM
3573-TL 3.75 /dev/sch0 /dev/sg2
[4:0:0:0] cd/dvd HL-DT-ST RW/DVD
GCC-T10N 1.00 /dev/scd0 /dev/sg3
#
# Konfiguration des Bacula Directors
#
Director {
Name = backup-dir
DIRport = 9101
QueryFile = "/etc/bacula/scripts/query.sql"
WorkingDirectory = "/var/lib/bacula"
PidDirectory = "/var/run/bacula"
Maximum Concurrent Jobs = 1
Password = ""
Messages = Daemon
DirAddress = 192.168.100.253
}
#
# Definition der Job Defaults
#
JobDefs {
Name = "DefaultJob"
Type = Backup
Level = Full
Client = backup-fd
FileSet = "Full Set"
Schedule = "WeeklyCycle"
Storage = lokal
Messages = Standard
Pool = Default
Priority = 10
}
# Job Definition für die StudIP Datenbank
JobDefs {
Name = "DB"
Type = Backup
Level = Full
Client = studip_db-fd
FileSet = "StudIPDB"
Schedule = "WeeklyCycle"
Storage = lokal
Messages = Standard
Pool = Default
Priority = 11
}
#
# Definition der einzelnen Jobs
#
#
# Sicherung eines Baculatestservers
#
Job {
Name = "test"
Client = test-fd
JobDefs = "DefaultJob"
Storage = lokal
Write Bootstrap = "/var/lib/bacula/test.bsr"
}
# Sicherung der Datebbankbackups
Job {
Name = StudIP_DB
Client = studip_db-fd
JobDefs = "DB"
Storage = lokal
Write Bootstrap = "/var/lib/bacula/studip_db.bsr"
}
# Sicherung der Bacula Datenbank
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/scripts/make_catalog_backup bacula bacula
gerand"
# This deletes the copy of the catalog
RunAfterJob = "/etc/bacula/scripts/delete_catalog_backup"
Write Bootstrap = "/var/lib/bacula/BackupCatalog.bsr"
Priority = 11
}
# Wiederherstellung
Job {
Name = "RestoreFiles"
Type = Restore
Client=backup-fd
FileSet="Full Set"
Storage = lokal
Pool = Default
Messages = Standard
Where = /tmp/bacula-restores
}
#
# Definition der Sicherungsart (Was soll gesichert werden)
#
FileSet {
Name = "Full Set"
Include {
Options {
signature = MD5
onefs = no
}
File = /
}
# Welche Dateien, Verzeichnisse, ... sollen dabei nicht beachtet werden?
Exclude {
File = /proc
File = /tmp
File = /.journal
File = /.fsck
File = /sys
File = /dev
}
}
FileSet {
Name = "StudIPDB"
Include {
Options {
signature = MD5
onefs = no
}
File = /
}
Exclude {
File = /proc
File = /tmp
File = /.journal
File = /.fsck
File = /sys
File = /dev
}
}
# This is the backup of the catalog
FileSet {
Name = "Catalog"
Include {
Options {
signature = MD5
}
File = /var/lib/bacula/bacula.sql
}
}
#
# Zeitliche Steuerung der Sicherung
#
Schedule {
Name = "WeeklyCycle"
Run = Full mon-sat at 23:05
Run = Differential 2nd-5th sun at 23:05
Run = Incremental sun at 23:05
}
# This schedule does the catalog. It starts after the WeeklyCycle
Schedule {
Name = "WeeklyCycleAfterBackup"
Run = Full sun-sat at 23:10
}
#
# Die Clients, die gesichert werden sollen
# Backupserver
Client {
Name = backup-fd
Address = 192.168.100.253
FDPort = 9102
Catalog = MyCatalog
Password = ""
File Retention = 30 days # 30
days
Job Retention = 6 months # six
months
AutoPrune = yes
# Prune expired Jobs/Files
}
#
# Definition des Speichermediums/-ort
# Es handelt sich hierbei um die Tapelibarie
#
Storage {
Name = "lokal"
Address = 192.168.100.253
SDPort = 9103
Password = ""
Device = "Autochanger"
Media Type = Tape
}
Storage {
Name = File
Address = 192.168.100.253
SDPort = 9103
Password = ""
Device = FileStorage
Media Type = File
}
# Generic catalog service
Catalog {
Name = MyCatalog
dbname = bacula; DB Address = ""; 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.
# What this does is, it sets the email address that emails would display
# in the FROM field, which is by default the same email as they're being
# sent to. However, if you send email to more than one address, then
# you'll have to set the FROM address manually, to a single address.
# for example, a 'no-re...@mydomain.com', is better since that tends to
# tell (most) people that its coming from an automated source.
#
# 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
}
#
# Pool Definition
#
Pool {
Name = Default
Pool Type = Backup
Recycle = yes
# Bacula can automatically recycle Volumes
AutoPrune = yes
# Prune expired volumes
Volume Retention = 365 days # one year
# Accept Any Volume = yes
Label Format = "file-"
Maximum Volume Bytes = 400G
Maximum Volumes = 4
}
# Scratch pool definition
Pool {
Name = Scratch
Pool Type = Backup
}
#
# Restricted console used by tray-monitor to get the status of the director
#
Console {
Name = backup-lib-mon
Password = ""
CommandACL = status, .status
}
#
# Default Bacula Storage Daemon Configuration file
#
# For Bacula release 2.4.4 (28 December 2008) -- debian 5.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.
#
#
# Definition of myself
#
Storage {
Name = backup-sd
SDPort = 9103
# Director's port
WorkingDirectory = "/var/lib/bacula"
Pid Directory = "/var/run/bacula"
Maximum Concurrent Jobs = 20
SDAddress = 192.168.100.253
}
#
# List Directors who are permitted to contact Storage daemon
#
Director {
Name = backup-dir
Password = ""
}
#
# 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
LabelMedia = yes;
# lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes;
# when device opened, read it
RemovableMedia = no;
AlwaysOpen = no;
}
#
# An autochanger device with two drives
#
Autochanger {
Name = Autochanger
Device = Drive-1
Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
Changer Device = /dev/sg2
}
Device {
Name = Drive-1
Drive Index = 0
Media Type = LT03
Archive Device = /dev/st0
AutomaticMount = yes;
# when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
AutoChanger = yes
LabelMedia = yes
#
# Enable the Alert command only if you have the mtx package loaded
# Note, apparently on some systems, tapeinfo resets the SCSI controller
# thus if you turn this on, make sure it does not reset your SCSI
# controller. I have never had any problems, and smartctl
does
# not seem to cause such problems.
#
Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
# If you have smartctl, enable this, it has more info than tapeinfo
# Alert Command = "sh -c 'smartctl -H -l error %c'"
}
#
# Send all messages to the Director,
# mount messages also are sent to the email address
#
Messages {
Name = Standard
director = backup-dir = all
}
+----------------------------------------------------------------------
|This was sent by ds.siegfr...@googlemail.com via Backup Central.
|Forward SPAM to ab...@backupcentral.com.
+----------------------------------------------------------------------
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users