]> git.sur5r.net Git - bacula/bacula/blob - bacula/examples/devices/two-drive-autoloader.conf
update technotes
[bacula/bacula] / bacula / examples / devices / two-drive-autoloader.conf
1 #
2 # An autochanger device with two drives
3 #
4 Autochanger {
5   Name = Autochanger
6   Device = Drive-1
7   Device = Drive-2
8   Changer Command = "@scriptdir@/mtx-changer %c %o %S %a %d"
9   Changer Device = /dev/sg0
10 }
11
12 Device {
13   Name = Drive-1                      #
14   Drive Index = 0
15   Media Type = DLT-8000
16   Archive Device = /dev/nst0
17   AutomaticMount = yes;               # when device opened, read it
18   AlwaysOpen = yes;
19   RemovableMedia = yes;
20   RandomAccess = no;
21   AutoChanger = yes
22   #
23   # Enable the Alert command only if you have the mtx package loaded
24   # Note, apparently on some systems, tapeinfo resets the SCSI controller
25   #  thus if you turn this on, make sure it does not reset your SCSI 
26   #  controller.  I have never had any problems, and smartctl does
27   #  not seem to cause such problems.
28   #
29   Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
30   If you have smartctl, enable this, it has more info than tapeinfo 
31   Alert Command = "sh -c 'smartctl -H -l error %c'"  
32 }
33
34 Device {
35   Name = Drive-2                      #
36   Drive Index = 1
37   Media Type = DLT-8000
38   Archive Device = /dev/nst1
39   AutomaticMount = yes;               # when device opened, read it
40   AlwaysOpen = yes;
41   RemovableMedia = yes;
42   RandomAccess = no;
43   AutoChanger = yes
44   # Enable the Alert command only if you have the mtx package loaded
45   Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
46   If you have smartctl, enable this, it has more info than tapeinfo 
47   Alert Command = "sh -c 'smartctl -H -l error %c'"  
48 }