I am getting the follwoing errors on restoring any file from tape:
09-Mar 07:22 storage-sd: 3302 Autochanger "loaded drive 0", result: nothing
loaded.
09-Mar 07:22 storage-sd: RestoreFiles.2010-03-09_07.22.19 Warning:
acquire.c:146 Couldn't rewind device "Drive-1" (/dev/nst0): ERR=dev.c:678
Rewind error on "Drive-1" (/dev/nst0). ERR=No medium found.
09-Mar 07:22 storage-sd: 3301 Issuing autochanger "loaded drive 0" command.
09-Mar 07:22 storage-sd: 3302 Autochanger "loaded drive 0", result: nothing
loaded.
09-Mar 07:22 storage-sd: 3304 Issuing autochanger "load slot 1, drive 0"
command.
09-Mar 07:23 storage-sd: RestoreFiles.2010-03-09_07.22.19 Error: block.c:263
Volume data error at 0:0! Wanted ID: "BB02", got "". Buffer discarded.
09-Mar 07:23 storage-sd: RestoreFiles.2010-03-09_07.22.19 Warning:
acquire.c:146 Requested Volume "000037L3" on "Drive-1" (/dev/nst0) is not a
Bacula labeled Volume, because: ERR=block.c:263 Volume data error at 0:0!
Wanted ID: "BB02", got "". Buffer discarded.
09-Mar 07:23 storage-sd: Please mount Volume "000037L3" on Storage Device
"Drive-1" (/dev/nst0) for Job RestoreFiles.2010-03-09_07.22.19
note: the tape is in the drive and ready to go. Nothing has changed from the
backup and the attempted restore process.
I have tried to restore from other jobs that are older thus different tapes
with the same result.
I am running bacula version 1.38.11 (yes I know it is old) on Debian etch
kernel 2.6.18-6-amd64 using a Dell PowerVault 124T autoloader. I have tried
the 4 steps mentioned in the bacula restore command referance in the dev-manual
on bacula.org.
I have dodged the bullet this time, however I would still like some
suggesstions as to how access a couple of files from the tapes and would like
some suggestions as to what I should change in my configs so that I don't have
this issue again.
Thanx all!!!
--- 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) -- debian testing/unstable
#
# 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 = storage-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 = 4
Password = "XXX" # Console password
Messages = Daemon
}
JobDefs {
Name = "DefaultJob"
Type = Backup
Level = Incremental
Storage = Autochanger
FileSet = linux-generic
Messages = Standard
Priority = 10
SpoolData = yes
Spool Attributes = yes
Maximum Concurrent Jobs = 4
}
#Job {
# Name = "storage-tue"
# Client = storage-fd
# JobDefs = "DefaultJob"
# FileSet = storage
# Schedule = Tuesday
# Pool = Tuesday
# Write Bootstrap = "/srv/bacula/bsr/storage-tue.bsr"
# SpoolData = no
# Spool Attributes = no
#}
Job {
Name = "storage-thu"
Client = storage-fd
JobDefs = "DefaultJob"
FileSet = storage
Schedule = Thursday
Pool = Thursday
Write Bootstrap = "/srv/bacula/bsr/storage-thu.bsr"
SpoolData = no
Spool Attributes = no
}
#Job {
# Name = "sqlserver-tue"
# Client = sqlserver-fd
# JobDefs = "DefaultJob"
# FileSet = sqlserver
# Schedule = Tuesday
# Pool = Tuesday
# Write Bootstrap = "/srv/bacula/bsr/sqlserver-tue.bsr"
#}
Job {
Name = "sqlserver-thu"
Client = sqlserver-fd
JobDefs = "DefaultJob"
FileSet = sqlserver
Schedule = Thursday
Pool = Thursday
Write Bootstrap = "/srv/bacula/bsr/sqlserver-thu.bsr"
}
# # xen decomissioned 20071216 sethm
#Job {
# Name = "xen-tue"
# Client = xen-fd
# JobDefs = "DefaultJob"
# Schedule = Tuesday
# Pool = Tuesday
# Write Bootstrap = "/srv/bacula/bsr/xen-tue.bsr"
#}
#
#Job {
# Name = "xen-thu"
# Client = xen-fd
# JobDefs = "DefaultJob"
# Schedule = Thursday
# Pool = Thursday
# Write Bootstrap = "/srv/bacula/bsr/xen-thu.bsr"
#}
#Job {
# Name = "mail-tue"
# Client = mail-fd
# JobDefs = "DefaultJob"
# Schedule = Tuesday
# Pool = Tuesday
# Write Bootstrap = "/srv/bacula/bsr/mail-tue.bsr"
#}
Job {
Name = "mail-thu"
Client = mail-fd
JobDefs = "DefaultJob"
Schedule = Thursday
Pool = Thursday
Write Bootstrap = "/srv/bacula/bsr/mail-thu.bsr"
}
#Job {
# Name = "utility-tue"
# Client = utility-fd
# JobDefs = "DefaultJob"
# Schedule = Tuesday
# Pool = Tuesday
# Write Bootstrap = "/srv/bacula/bsr/utility-tue.bsr"
#}
Job {
Name = "utility-thu"
Client = utility-fd
JobDefs = "DefaultJob"
Schedule = Thursday
Pool = Thursday
Write Bootstrap = "/srv/bacula/bsr/utility-thu.bsr"
}
#Job {
# Name = "services-tue"
# Client = services-fd
# JobDefs = "DefaultJob"
# Schedule = Tuesday
# Pool = Tuesday
# Write Bootstrap = "/srv/bacula/bsr/services-tue.bsr"
#}
#Job {
# Name = "services-thu"
# Client = services-fd
# JobDefs = "DefaultJob"
# Schedule = Thursday
# Pool = Thursday
# Write Bootstrap = "/srv/bacula/bsr/services-thu.bsr"
#}
#Job {
# Name = "timmy-tue"
# Client = timmy-fd
# JobDefs = "DefaultJob"
# Schedule = Tuesday
# Pool = Tuesday
# Write Bootstrap = "/srv/bacula/bsr/timmy-tue.bsr"
#}
Job {
Name = "timmy-thu"
Client = timmy-fd
JobDefs = "DefaultJob"
Schedule = Thursday
Pool = Thursday
Write Bootstrap = "/srv/bacula/bsr/timmy-thu.bsr"
}
# Added 20080801 marky
#Job {
# Name = "web-tue"
# Client = web-fd
# JobDefs = "DefaultJob"
# Schedule = Tuesday
# Pool = Tuesday
# Write Bootstrap = "/srv/bacula/bsr/web-tue"
#}
#added 20080801 marky
Job {
Name = "web-thu"
Client = web-fd
JobDefs = "DefaultJob"
Schedule = Thursday
Pool = Thursday
Write Bootstrap = "/srv/bacula/bsr/web-thu"
}
#Job {
# Name = "BackupCatalog-tue"
# JobDefs = "DefaultJob"
# Level = Full
# Schedule = Tuesday
# Pool = Tuesday
# FileSet = "Catalog"
# Client = storage-fd
# Priority = 11
# RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup baculanew bacula XXX"
# RunAfterJob = "/etc/bacula/scripts/delete_catalog_backup"
# Write Bootstrap = "/srv/bacula/bsr/BackupCatalog-tue.bsr"
#}
#
Job {
Name = "BackupCatalog-thu"
JobDefs = "DefaultJob"
Level = Full
Schedule = Thursday
Pool = Thursday
FileSet = "Catalog"
Client = storage-fd
Priority = 11
RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup baculanew bacula XXX"
RunAfterJob = "/etc/bacula/scripts/delete_catalog_backup"
Write Bootstrap = "/srv/bacula/bsr/BackupCatalog-thu.bsr"
}
#
# 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 = storage-fd
FileSet = "full"
Storage = Autochanger
Pool = Default
Messages = Standard
Where = /srv/bacula/restore
}
FileSet {
Name = "full"
Include {
Options {
signature = MD5
}
File = /
}
Exclude {
File = /proc
File = /tmp
File = /.journal
File = /.fsck
}
}
# List of files to be backed up
FileSet {
Name = "storage"
Include {
Options {
signature = SHA1
verify = pins1
fstype = ext2
fstype = xfs
aclsupport = yes
}
File = /etc
File = /boot
File = /home
File = /var
File = /usr/local
File = /srv
File = /root
}
Exclude {
File = /proc
File = /tmp
File = /.journal
File = /.fsck
File = /srv/bacula/spool
File = "/srv/filestore/public/IT/Marky BU"
}
}
FileSet {
Name = "sqlserver"
Enable VSS = yes
Include {
Options {
signature = SHA1
verify = pins1
}
File = "d:/Logs"
File = "d:/Archive"
File = "d:/Database/Backup"
}
}
FileSet {
Name = "linux-generic"
Include {
Options {
signature = SHA1
verify = pins1
fstype = ext2
fstype = xfs
aclsupport = yes
}
File = /etc
File = /usr/local
File = /var
File = /home
File = /boot
File = /srv
File = /root
}
Exclude {
File = /proc
File = /tmp
File = /.journal
File = /.fsck
}
}
#Schedule {
#Name = "Tuesday"
# Run = Level=Full 1st mon at 20:00
# Run = Level=Incremental 2nd-5th mon at 22:00
#}
Schedule {
Name = "Thursday"
Run = Level=Full 1st thu at 20:00
Run = Level=Incremental 2nd-5th thu at 22:00
}
# Temporary merger schedules until all the servers are moved
#Schedule {
# Name = "Tuesday"
# Run = Level=Incremental 1st-5th tue at 20:00
#}
#Schedule {
# Name = "Thursday"
# Run = Level=Incremental 1st-5th thu at 20:00
#}
# This is the backup of the catalog
FileSet {
Name = "Catalog"
Include {
Options {
signature = SHA1
verify = pins1
}
File = /var/lib/bacula/bacula.sql
}
}
# Client (File Services) to backup
Client {
Name = storage-fd
Address = storage
FDPort = 9102
Catalog = MyCatalog
Password = "XXX"
File Retention = 105 days
Job Retention = 105 days
AutoPrune = yes
}
Client {
Name = sqlserver-fd
Address = sqlserver
FDPort = 9102
Catalog = MyCatalog
Password = "XXX"
File Retention = 105 days
Job Retention = 105 days
AutoPrune = yes
}
Client {
Name = mail-fd
Address = mail
FDPort = 9102
Catalog = MyCatalog
Password = "XXX"
File Retention = 105 days
Job Retention = 105 days
AutoPrune = yes
}
Client {
Name = utility-fd
Address = utility
FDPort = 9102
Catalog = MyCatalog
Password = "XXX"
File Retention = 105 days
Job Retention = 105 days
AutoPrune = yes
}
Client {
Name = timmy-fd
Address = timmy
FDPort = 9102
Catalog = MyCatalog
Password = "XXX"
File Retention = 105 days
Job Retention = 105 days
AutoPrune = yes
}
#added web 20080801 marky
Client {
Name = web-fd
Address = web
FdPort = 9102
Catalog = MyCatalog
Password = "XXX"
File Retention = 105 days
Job Retention = 105 days
AutoPrune = yes
}
# Definition of file storage device
#Storage {
# Name = File
## Do not use "localhost" here
# Address = storage # N.B. Use a fully qualified name here
# SDPort = 9103
# Password = "XXX"
# Device = FileStorage
# Media Type = File
#}
Storage {
Name = Autochanger
# Do not use "localhost" here
Address = storage.theglenngroup.com # N.B. Use a fully
qualified name here
SDPort = 9103
Password = "XXX" # password for Storage daemon
Device = Autochanger # must be same as Device in Storage
daemon
Media Type = LTO3 # must be same as MediaType in Storage
daemon
Autochanger = yes # enable for autochanger device
Maximum Concurrent Jobs = 4
}
# sqlite3 catalog
#Catalog {
# Name = MyCatalog
# dbname = bacula; password = "@db_pswd@"
#}
# MySQL Catalogs
Catalog {
Name = MyCatalog
dbname = baculanew; DB Address = ""; user = bacula; password = "XXX"
}
# 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/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 = itst...@theglenngroup.com<mailto:itst...@theglenngroup.com> = all,
!skipped
operator = itst...@theglenngroup.com<mailto:itst...@theglenngroup.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/log" = all, !skipped
}
#
# Message delivery for daemon messages (no job).
Messages {
Name = Daemon
mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) %r\" -s
\"Bacula daemon message\" %r"
mail = itst...@theglenngroup.com<mailto:itst...@theglenngroup.com> = all,
!skipped
console = all, !skipped, !saved
append = "/var/lib/bacula/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 = 365 days # one year
Accept Any Volume = yes # write on any volume in the pool
}
Pool {
Name = Thursday
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Cleaning Prefix = "CLN"
Volume Retention = 105 days
}
Pool {
Name = Scratch
Pool Type = Backup
Cleaning Prefix = "CLN"
}
#
# Restricted console used by tray-monitor to get the status of the director
#
Console {
Name = storage-mon
Password = "XXX"
CommandACL = status, .status
}
-- bacula-sd.conf --
# Default Bacula Storage Daemon Configuration file
#
# For Bacula release 1.38.11 (28 June 2006) -- debian testing/unstable
#
# 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 = storage-sd
SDPort = 9103 # Director's port
WorkingDirectory = "/var/lib/bacula"
Pid Directory = "/var/run/bacula"
Maximum Concurrent Jobs = 20
SDAddress = storage
}
#
# List Directors who are permitted to contact Storage daemon
#
Director {
Name = storage-dir
Password = "XXX"
}
#
#
# 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/sg4
}
Device {
Name = Drive-1 #
Drive Index = 0
Media Type = LTO3
Archive Device = /dev/nst0
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
AutoChanger = yes
# Enable the Alert command only if you have the mtx package loaded
Alert Command = "sh -c 'tapeinfo -f /dev/nst0 | grep TapeAlert|cat'"
Spool Directory = /srv/bacula/spool
# Maximum Spool Size = 53687091200 # 50GB
Maximum Spool Size = 5368709120 # 5GB
}
#
# Send all messages to the Director,
# mount messages also are sent to the email address
#
Messages {
Name = Standard
director = storage-dir = all
}
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users