Hello,

2014-05-13 13:26 GMT+02:00 Keith T <keithb...@yahoo.com>:

> Thanks all for your reply and informative document!
>
> As stated on my previous message, I was using root to run bacula services
> and assumed it has no privilege issue. But not sure whether I have to run
> as bacula ID since I saw some suggested to do so?
>
> root     14419     1  4 May08 ?        06:03:09 /sbin/bacula-sd -v -c
> /etc/bacula/bacula-sd.conf
> root     14440     1 25 May08 ?        1-07:39:19 /sbin/bacula-fd -v -c
> /etc/bacula/bacula-fd.conf
> root     14463     1  0 May08 ?        00:02:01 /sbin/bacula-dir -v -c
> /etc/bacula/bacula-dir.conf
>
> I wonder why the command prompted me to check "sg device" but not "sd
> device" since I was connected a USB docking with dual slots.
>
> Recap:
> #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
>
>
In My Very Humble Opinion you are going in the wrong way!!! Stop before
someone gets hurt. :)

First of all. Do you have a tape library or autochanger connected into your
Bacula server? Could you show an output of the command (run as root):
# lsscsi -g

If you do not have any tape library then please forget about mtx-changer
script. It is for tape library/autochanger not disks.
In this case (hard disk storage) you should use a very simple
configuration, i.e. for two virtual devices:

#
# An autochanger device
#
Autochanger {
  Name = disk-storage
  Device = File-Storage-0
  Device = File-Storage-1
}

Device {
  Name = File-Storage-0
  Media Type = disk
  Device Type = File
  Archive Device = /backup/volumes
  Automatic Mount = yes;
  AlwaysOpen = yes;
  RemovableMedia = no;
  RandomAccess = yes;
  Drive Index = 0
  AutoChanger = yes
  Label Media = yes
  Maximum Concurrent Jobs = 1
}

Device {
  Name = File-Storage-1
  Media Type = disk
  Device Type = File
  Archive Device = /backup/volumes
  Automatic Mount = yes;
  AlwaysOpen = yes;
  RemovableMedia = no;
  RandomAccess = yes;
  Drive Index = 1
  AutoChanger = yes
  Label Media = yes
  Maximum Concurrent Jobs = 1
}

Thats all. You need to tune Archive Device parameter to suits your needs.
And works like a charm.

best regards
-- 
Radosław Korzeniewski
rados...@korzeniewski.net
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to