Subject: [Bacula-users] Bacula & vchanger



Hi,

I hope this is the right list to ask, although I did already before.
This is my first real experience with bacula.
I'm trying to use an RDX-drive as my backup storage, that's a removable
harddisk. I think I got vchanger running on its own, I did all the tests
in the how-to. Now I'm integrating it in bacula, which seems not to work.
I'm trying to issue the "label barcodes" command in bconsole. I get this :
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
Automatically selected Storage: c2
Connecting to Storage daemon c2 at linux-i4d6.ace-electronics.be:9103 ...
Connecting to Storage daemon c2 at linux-i4d6.ace-electronics.be:9103 ...
3306 Issuing autochanger "slots" command.
Device "usb-changer" has 0 slots.
No slots in changer to scan.

So I think my command failed. Anyone has some ideas ?
I tried "update slots" but this doesn't help. I started bacula-dir and
bacula-sd with -f -v -d 99, but I don't see anything meaningfull to me.

Thanks,

Koenraad Lelong.

bconsole says version 5.0.3.

This is my configuration :

vchanger's c2.conf :

### /etc/bacula/c1.conf
# work_dir=/var/spool/bacula
changer_name = c2
virtual_drives = 1
slots_per_magazine = 3
magazine_bays = 1
automount_dir = /mnt/vchanger
magazine = UUID:d23bab95-e0c9-46df-8b3b-eb1de036b29f
magazine = UUID:ec13e91a-1c3b-4ce2-aa33-c6b2f93198d3
magazine = UUID:49299ccc-6489-43f8-9536-d63dd3de9663
#eof

bacula-sd.conf :

###
Storage { # definition of myself
Name = koen-test-sd
SDPort = 9103 # Director's port
WorkingDirectory = "/var/spool/bacula"
Pid Directory = "/var/run"
Maximum Concurrent Jobs = 20
}
Director {
Name = koen-test-dir
Password = "@@SD_PASSWORD@@"
}
Director {
Name = koen-test-mon
Password = "@@MON_SD_PASSWORD@@"
Monitor = yes
}
Autochanger {
Name = usb-changer
Device = usb-changer-drive-0
Changer Command = "/usr/local/bin/vchanger %c %o %S %a %d"
Changer Device = /etc/bacula/c2.conf
}
Device {
Name = usb-changer-drive-0 #
Drive Index = 0
AutoChanger = yes
Device Type = File
Media Type = File
Archive Device = /var/lib/bacula/c2/0/drive0
RemovableMedia = No;
RandomAccess = Yes;
}
Messages {
Name = Standard
director = koen-test-dir = all
}

bacula-dir.conf :

### Default Bacula Director Configuration file
Director {
Name = koen-test-dir
DIRport = 9101
QueryFile = "/usr/lib/bacula/query.sql"
WorkingDirectory = "/var/spool/bacula"
PidDirectory = "/var/run"
Maximum Concurrent Jobs = 1
Password = "@@DIR_PASSWORD@@"
Messages = Daemon
}
Storage {
Name = c2
Address = linux-i4d6.ace-electronics.be
SDPort = 9103
Password = "@@SD_PASSWORD@@"
Device = usb-changer
Media Type = File
Autochanger = yes
}
JobDefs {
Name = "DefaultJob"
Type = Backup
Level = Incremental
Client = koen-test-fd
FileSet = "Full Set"
Schedule = "WeeklyCycle"
Storage = c2
Messages = Standard
Pool = File
Priority = 10
Write Bootstrap = "/var/spool/bacula/%c.bsr"
}
Job {
Name = "BackupClient1"
JobDefs = "DefaultJob"
}
Job {
Name = "BackupCatalog"
JobDefs = "DefaultJob"
Level = Full
FileSet="Catalog"
Schedule = "WeeklyCycleAfterBackup"
RunBeforeJob = "/usr/lib/bacula/make_catalog_backup.pl MyCatalog"
RunAfterJob = "/usr/lib/bacula/delete_catalog_backup"
Write Bootstrap = "/var/spool/bacula/%n.bsr"
Priority = 11
}
Job {
Name = "RestoreFiles"
Type = Restore
Client=koen-test-fd
FileSet="Full Set"
Storage = c2
Pool = Default
Messages = Standard
Where = /tmp/bacula-restores
}
FileSet {
Name = "Full Set"
Include {
Options {
signature = MD5
}
File = /usr/sbin
}
Exclude {
File = /var/spool/bacula
File = /tmp
File = /proc
File = /tmp
File = /.journal
File = /.fsck
}
}
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
}
Schedule {
Name = "WeeklyCycleAfterBackup"
Run = Full sun-sat at 23:10
}
FileSet {
Name = "Catalog"
Include {
Options {
signature = MD5
}
File = "/var/spool/bacula/bacula.sql"
}
}
Client {
Name = koen-test-fd
Address = localhost
FDPort = 9102
Catalog = MyCatalog
Password = "@@FD_PASSWORD@@"
File Retention = 30 days
Job Retention = 6 months
AutoPrune = yes
}
Catalog {
Name = MyCatalog
dbname = "bacula"; dbuser = "bacula"; dbpassword = ""
}
Messages {
Name = Standard
mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\"
-s \"Bacula: %t %e of %c %l\" %r"
operatorcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\)
\<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
mail = root@localhost = all, !skipped
operator = root@localhost = mount
console = all, !skipped, !saved
append = "/var/spool/bacula/log" = all, !skipped
catalog = all
}
Messages {
Name = Daemon
mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\"
-s \"Bacula daemon message\" %r"
mail = root@localhost = all, !skipped
console = all, !skipped, !saved
append = "/var/log/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
}
Pool {
Name = File
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle
Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 365 days # one year
Maximum Volume Bytes = 50G # Limit Volume size to something
reasonable
Maximum Volumes = 100 # Limit number of Volumes in Pool
}
Pool {
Name = Scratch
Pool Type = Backup
}
Console {
Name = koen-test-mon
Password = "@@MON_DIR_PASSWORD@@"
CommandACL = status, .status
}

------------------------------------------------------------------------------
Fulfilling the Lean Software Promise
Lean software platforms are now widely adopted and the benefits have been
demonstrated beyond question. Learn why your peers are replacing JEE
containers with lightweight application servers - and what you can gain
from the move. http://p.sf.net/sfu/vmware-sfemails
_______________________________________________
Bacula-users mailing list
Bacula-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/bacula-users



Privacy