I run bacula-1.38.11 on some Debian Sarge boxes, on one of them I have a Sun
L9 DLT8000 autochanger. Backing up to tape works and I can run mtx-cahnger
script manually, but when I try to run backup to the autochanger in sted of
to the tape the mtx-changer script will not load tape. I suspect that it
tries to load slot 0 in stead of 1. Any one that can help me on this? My
bacula-sd is like this:
Storage { # definition of myself
Name = dracula-sd
SDPort = 9103 # Director's port
WorkingDirectory = "/var/lib/bacula"
Pid Directory = "/var/run/bacula"
Maximum Concurrent Jobs = 20
}
Director {
Name = helsing-dir
Password = "some_password"
}
Device {
Name = FileStorage-Dracula
Media Type = File
Archive Device = /disks/DRACULA2/FileStorage-Dracula
LabelMedia = yes; # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = no;
AlwaysOpen = no;
}
Autochanger {
Name = Autochanger-Dracula
Device = DLT8000-Dracula
Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
Changer Device = /dev/sg1
}
Device {
Name = DLT8000-Dracula
Drive Index = 0
Media Type = DLT8000-L9
Archive Device = /dev/nst0
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
AutoChanger = yes
Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
Label media = yes
}
Messages {
Name = Standard
director = helsing-dir = all
}
Parts of my bacula-dir is like this:
Director { # define myself
Name = helsing-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 = 20
Password = "some_password" # Console password
Messages = Daemon
}
# Dracula-Autochanger
Storage {
Name = Autochanger-Dracula
Maximum Concurrent Jobs = 1
# Do not use "localhost" here
Address = dracula.hrp.no # N.B. Use a fully qualified name
here
SDPort = 9103
Password = "some_password"
Device = Autochanger-Dracula
Media Type = DLT8000-L9
Autochanger = yes
}
# Dracula-Tape
Storage {
Name = Full-Tape-Dracula
Maximum Concurrent Jobs = 1
# Do not use "localhost" here
Address = dracula.hrp.no # N.B. Use a fully qualified name
here
SDPort = 9103
Password = "some_password"
Device = DLT8000-Dracula
Media Type = DLT8000-L9
Autochanger = yes
}
Pool {
Name = Dracula-Full-Tape-Pool
Recycle Oldest Volume = yes
Label Format =
"VOlUME-Dracula-Tape-${Year}.${Month:p/2/0/r}.${Day:p/2/0/r}.${
Hour:p/2/0/r}"
Pool Type = Backup
Volume Use Duration = 1h
Recycle = yes # Bacula can automatically recycle
Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 350 days # almost year
Accept Any Volume = yes # write on any volume in the pool
}
Job {
Name = "Torvalds"
JobDefs = "DefaultJob"
Client = torvalds-fd
Schedule = "NoRun"
FileSet = "Torvalds Set"
Storage = Autochanger-Dracula
Pool = Dracula-Full-Tape-Pool
Write Bootstrap = "/var/lib/bacula/Torvalds.bsr"
}
FileSet {
Name = "Torvalds Set"
Include {
Options {
compression=GZIP
signature = MD5
keepatime=yes
}
File = /disks/TORVALDS2
}
}
Client {
Name = torvalds-fd
Address = torvalds.hrp.no
FDPort = 9102
Catalog = MyCatalog
Password = "some_password" # password for FileDaemon
File Retention = 350 days # almost a year
Job Retention = 350 days # almost a year
AutoPrune = yes # Prune expired Jobs/Files
}
--
Phone: +47 69809853 +47 99521685 (o_ <><
//\
ICQ: 48948625 MSM: [EMAIL PROTECTED] V_/_ i n u x
Registered Linux User # 171776 (http://counter.li.org)
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users