Hi,
I have come across some strange behaviour of bacula today and I would
like to know if someone else has encountered this one.
About my scenario:
I use a SATA-Backplane with 4 harddiscs for backup. bacula is configured
to accept this as an autochanger wiht 4 slots and starts an
autochanger-script which mounts and unmounts the correct volume. This
works pretty fine.
Today I was about to change the discs again and wanted to use the
opportunity to give this system the ability to read the labels and
update the labels from the script.
I adapted my script according to the manual to produce the right output
for the command "list". So far so good.
When I try to run the command "update slots (scan)" in the console it
fails. bacula complains that the device is not an auto changer.
"3995 Device /mnt/backup-disc is not an autochanger."
This is a fact, but all the time bacula accepts this device as an
autochanger, when I start backups. It rotates the discs, mount them
properly and so on.
Is there a difference in the treatment of this device between backing up
an scanning, which could explain this?
The used bacula version is bacula-postgresql-1.36.2-1.
I have added excerpts of the used config-files.
Best regards
Daniel Blömer
bacula-sd.conf:
Device {
Name = SATAStorage
Media Type = File
Archive Device = /mnt/backup-disc
LabelMedia = yes; # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = yes;
AlwaysOpen = yes;
Changer Command = "/etc/bacula/changedisc %o %a %v"
Changer Device = /dev/null
Autochanger = yes
}
bacula-dir.conf:
Storage {
Name = SATA
...
Device = SATAStorage
Media Type = File
Autochanger = Yes
}
changescript:
#!/bin/bash
# Usage chagedisc %c %a %v
# Command Archive Volume
case "$1" in
...
list)
echo 1:`/sbin/e2label /dev/sda1`
echo 2:`/sbin/e2label /dev/sdb1`
echo 3:`/sbin/e2label /dev/sdc1`
echo 4:`/sbin/e2label /dev/sdd1`
exit 0
;;
esac
exit 0
--
Daniel Bloemer - BusinessCoDe GmbH
Systemadministration and Support
Phone: +49 (0)228 / 28925-43
http://www.business-code.de
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users