Hi there,
I upgraded Bacula from 5.0.3-2 to 5.2.13. It has no problem to run a backup job and back data directly on to USB device except "Autochanger" setting. I was trying to
configure "Autochanger" to swap USB drives automatically for data backup in order that I need not to manual exchange and mount HDD when one HDD is full.
I got below errors when trying below commands.
#Bacula is running as root
[root@backupsys bacula]# /etc/bacula/mtx-changer /etc/bacula/usbchanger1.conf list
/etc/bacula/usbchanger1.conf is not an sg device, or old sg driver
[root@backupsys bacula]# su bacula /etc/bacula/mtx-changer /etc/bacula/usbchanger1.conf list
cannot open SCSI device '/etc/bacula/usbchanger1.conf' - Permission denied
Also tried to run bacula as ID bacula but failed too
Configuration info:
Bacula version: bacula-5.2.13
OS: Fedora 14 (2.6.35.14-106.fc14.x86_64)
Postgresql: postgresql-8.4.9-1.fc14.x86_64
#setting in bacula-dir.conf file
JobDefs {
Name = "TestJob"
Type = Backup
Level = Full
Client = bacula-fd
FileSet = "Test Backup"
Storage = usbchanger1
Messages = Standard
Pool = TestPool
Priority = 10
}
Storage {
Name = usbchanger1
Address = localhost
SDPort = 9103
Password = "PASSWORD"
Device = usb-changer-1
Media Type = File
Autochanger = yes;
}
#setting in bacula-sd.conf file
Autochanger {
Name = usb-changer-1
Device = usb-changer-1-drive-0
Device = usb-changer-1-drive-1
Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
Changer Device = "/etc/bacula/usbchanger1.conf"
}
Device {
Name = usb-changer-1-drive-0
Drive Index = 0
Autochanger = yes;
Device Type = File
Media Type = File
Archive Device = /var/spool/bacula/usbchanger1/drive0 #symlink to /mnt/usbchanger1/magazine/volfiles
Random Access = Yes;
RemovableMedia = no;
}
#setting in usbchanger1.conf file
baculasd="usbchanger1"
baculasd_user=bacula
bconsole=/etc/bacula/bconsole
magslots=2
maxdrive=1
mountpoint=/mnt/usbchanger1/magazine
statedir=/var/spool/bacula/usbchanger1
Appreciate much for your help! Thanks in advance!
Regards,
Keith