Hello,
On 26.10.2005 09:06, Frank Matthieß @Bacula ML wrote:
Hello *,
if i get the storage status, i saw the messages in the attachment
bacula-status.log.
What does "Device is BLOCKED waiting for appendable media." mean in detail?
That means that the device needs a volume to append data to. In other
words, whatever is loaded is now full.
Usually, you would also get a mail to the operator email account you
specified.
Arno
The Jobdescription for "Dienstag" is:
<bacula-dir.conf>
...
JobDefs {
Name = "SicherungServer"
Type = Backup
Level = Full
Client = server-fd
FileSet = "Server Vollsicherung"
Storage = SDX-500V
Messages = Standard
Run After Job = /bin/mt eject
Priority = 10
Max Wait Time = 10800
# Max Wait Time = 10800 -> 3h
}
...
Job {
Name = "ServerDienstag"
JobDefs = "SicherungServer"
Pool = fus-dienstag
Schedule = "DatensicherungTaeglichDienstag"
Write Bootstrap = "/var/lib/bacula/server.fus.lan.bsr"
}
...
Schedule {
Name = "DatensicherungTaeglichDienstag"
Run = Full Tue at 21:00
}
...
Pool {
Name = fus-dienstag
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 7 days
Accept Any Volume = yes
}
...
</bacula-dir.conf>
The alreay mounted voluime "dienstag" was created by me inside the pool
"fus-dienstag". So this volume should be used for backup.
Yesterday i umount and mount the tape manually. Is this the source of my
trouble with automounting?
I attach the full bacula-dir.conf for completness.
Frank Matthieß
------------------------------------------------------------------------
server:~# echo "status storage" | bconsole
Connecting to Director server:9101
1000 OK: server-dir Version: 1.36.2 (28 February 2005)
Enter a period to cancel a command.
status storage
Using default Catalog name=MyCatalog DB=bacula
Automatically selected Storage: SDX-500V
Connecting to Storage daemon SDX-500V at server:9103
server-sd Version: 1.36.2 (28 February 2005) i386-pc-linux-gnu debian 3.1
Daemon started 17-Oct-05 07:11, 9 Jobs run since started.
Running Jobs:
Full Backup job ServerDienstag JobId=200 Volume="" device="/dev/nst0"
Files=0 Bytes=0 Bytes/sec=0
FDReadSeqNo=6 in_msg=6 out_msg=4 fd=8
====
Terminated Jobs:
JobId Level Files Bytes Status Finished Name
======================================================================
178 Full 0 0 Cancel 06-Oct-05 17:04 BackupCatalog
191 Full 0 0 Error 23-Oct-05 04:00 ServerMontag
192 Full 0 0 Cancel 23-Oct-05 19:42 ServerDienstag
193 Full 0 0 Cancel 23-Oct-05 19:42 ServerMittwoch
194 Full 0 0 Cancel 23-Oct-05 19:42 ServerDonnerstag
195 Full 0 0 Cancel 23-Oct-05 19:43 ServerFreitag
196 Full 0 0 Cancel 23-Oct-05 19:45 BackupCatalog
197 Full 122,649 24,775,485,527 OK 23-Oct-05 20:51 ServerFreitag
198 Full 1 44,267,662 OK 24-Oct-05 03:00 BackupCatalog
199 Full 0 0 Cancel 25-Oct-05 12:49 ServerMontag
====
Device status:
Device "/dev/nst0" is mounted with Volume "dienstag"
Device is BLOCKED waiting for appendable media.
Total Bytes Read=129,024 Blocks Read=2 Bytes/block=64,512
Positioned at File=0 Block=0
------------------------------------------------------------------------
#
# /etc/bacula/bacula-dir.conf
# Frohne und Schindler
# 5.10.2005 fmat
#
#
#####################################################################################################
#
#
#
#####################################################################################################
Director { # define myself
Name = server-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 = 1
Password = "W8QIxpmli.3" # Console password
Messages = Daemon
}
#####################################################################################################
#
#
#
#####################################################################################################
JobDefs {
Name = "DefaultJob"
Type = Backup
Level = Full
Client = server-fd
FileSet = "Full Set"
Schedule = "WeeklyCycle"
Storage = SDX-500V
Messages = Standard
Pool = Default
Priority = 10
}
JobDefs {
Name = "SicherungServer"
Type = Backup
Level = Full
Client = server-fd
FileSet = "Server Vollsicherung"
Storage = SDX-500V
Messages = Standard
Run After Job = /bin/mt eject
Priority = 10
Max Wait Time = 10800
# Max Wait Time = 10800 -> 3h
}
#####################################################################################################
#
#
#
#####################################################################################################
#Job {
# Name = "Server"
# JobDefs = "DefaultJob"
# Pool = fus-montag
# Write Bootstrap = "/var/lib/bacula/Client1.bsr"
#}
Job {
Name = "ServerMontag"
JobDefs = "SicherungServer"
Pool = fus-montag
Schedule = "DatensicherungTaeglichMontag"
Write Bootstrap = "/var/lib/bacula/server.fus.lan.bsr"
}
Job {
Name = "ServerDienstag"
JobDefs = "SicherungServer"
Pool = fus-dienstag
Schedule = "DatensicherungTaeglichDienstag"
Write Bootstrap = "/var/lib/bacula/server.fus.lan.bsr"
}
Job {
Name = "ServerMittwoch"
JobDefs = "SicherungServer"
Schedule = "DatensicherungTaeglichMittwoch"
Pool = fus-mittwoch
Write Bootstrap = "/var/lib/bacula/server.fus.lan.bsr"
}
Job {
Name = "ServerDonnerstag"
JobDefs = "SicherungServer"
Schedule = "DatensicherungTaeglichDonnerstag"
Pool = fus-donnerstag
Write Bootstrap = "/var/lib/bacula/server.fus.lan.bsr"
}
Job {
Name = "ServerFreitag"
JobDefs = "SicherungServer"
Schedule = "DatensicherungTaeglichFreitag"
Pool = fus-freitag
Write Bootstrap = "/var/lib/bacula/server.fus.lan.bsr"
}
Job {
Name = "BackupCatalog"
JobDefs = "SicherungServer"
Level = Full
FileSet="Catalog"
Schedule = "WoechentlichNachSicherung"
Pool = fus-freitag
RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup -U bacula"
RunAfterJob = "/etc/bacula/scripts/delete_catalog_backup"
Write Bootstrap = "/var/lib/bacula/BackupCatalog.bsr"
Priority = 11 # run after main backup
}
Job {
Name = "RestoreFiles"
Type = Restore
Client=server-fd
FileSet="Full Set"
Storage = SDX-500V
Pool = Default
Messages = Standard
Where = /tmp/bacula-restores
}
#####################################################################################################
#
#
#
#####################################################################################################
FileSet {
Name = "Full Set"
Include {
Options {
signature = MD5
}
File = /
File = /usr
File = /var
File = /home
}
Exclude {
File = /proc
File = /tmp
File = /.journal
File = /.fsck
}
}
FileSet {
Name = "Server Vollsicherung"
Include {
Options {
signature = MD5
}
File = /
File = /usr
File = /var
File = /home
}
Exclude {
File = /proc
File = /tmp
File = /.journal
File = /.fsck
}
}
#####################################################################################################
#
#
#
#####################################################################################################
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
}
Schedule {
Name = "DatensicherungTaeglichMontag"
Run = Full mon at 21:00
}
Schedule {
Name = "DatensicherungTaeglichDienstag"
Run = Full Tue at 21:00
}
Schedule {
Name = "DatensicherungTaeglichMittwoch"
Run = Full Wed at 21:00
}
Schedule {
Name = "DatensicherungTaeglichDonnerstag"
Run = Full Thu at 21:00
}
Schedule {
Name = "DatensicherungTaeglichFreitag"
Run = Full Fri at 21:00
}
Schedule {
Name = "WoechentlichNachSicherung"
Run = Full Sat at 2:00
}
#####################################################################################################
#
#
#
#####################################################################################################
FileSet {
Name = "Catalog"
Include {
Options {
signature = MD5
}
File = /var/lib/bacula/bacula.sql
}
}
#####################################################################################################
#
#
#
#####################################################################################################
Client {
Name = server-fd
Address = server
FDPort = 9102
Catalog = MyCatalog
Password = "AtkpOt-GRRC"
File Retention = 30 days
Job Retention = 6 months
AutoPrune = yes
}
#####################################################################################################
#
#
#
#####################################################################################################
Storage {
Name = SDX-500V
Address = server
SDPort = 9103
Password = "DgpcS!X3U0I"
Device = SDX-500V
Media Type = SDX-500V
}
# Storage {
# Name = Ultrium960
# Address = server
# SDPort = 9103
# Password = "DgpcS!X3U0I"
# Device = Ultrium960
# Media Type = SDX-500V
# }
#####################################################################################################
#
#
#
#####################################################################################################
Catalog {
Name = MyCatalog
dbname = bacula; DB Address = localhost; user = bacula; password = "cooPig5k"
}
#####################################################################################################
#
#
#
#####################################################################################################
Messages {
Name = Standard
mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula: %t
%e of %c %l\" %r"
operatorcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula:
Intervention needed for %j\" %r"
mail = [EMAIL PROTECTED] = all, !skipped
operator = [EMAIL PROTECTED] = mount
console = all, !skipped, !saved
append = "/var/lib/bacula/log" = all, !skipped
}
Messages {
Name = Daemon
mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula
daemon message\" %r"
mail = [EMAIL PROTECTED] = all, !skipped
console = all, !skipped, !saved
append = "/var/lib/bacula/log" = all, !skipped
}
#####################################################################################################
#
#
#
#####################################################################################################
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 # write on any volume in the pool
}
Pool {
Name = fus-montag
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 7 days
Accept Any Volume = yes
}
Pool {
Name = fus-dienstag
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 7 days
Accept Any Volume = yes
}
Pool {
Name = fus-mittwoch
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 7 days
Accept Any Volume = yes
}
Pool {
Name = fus-donnerstag
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 7 days
Accept Any Volume = yes
}
Pool {
Name = fus-freitag
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 7 days
Accept Any Volume = yes
}
#####################################################################################################
#
#
#
#####################################################################################################
Console {
Name = server-mon
Password = ""
CommandACL = status, .status
}
--
IT-Service Lehmann [EMAIL PROTECTED]
Arno Lehmann http://www.its-lehmann.de
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users