I'm with GNU/Debian squeeze.
bacula 5.0.2-3
i've got two drives and one changer (Robot works with one logical library).
I defined one "autochanger" with one logical library.
I'd like to know how to define my bacula-dir.conf on the "storage" part.
Must i define two drives in the storage part or only one drive ?
which case is the good one ?
Thank you in advance for your feedback.
Here's my configs:
- # lsscsi -g
- [0:2:0:0] disk IBM ServeRAID M5014 2.0. /dev/sda /dev/sg0
- [1:0:0:0] tape IBM ULT3580-HH5 B6W1 /dev/st0 /dev/sg1
- [2:0:0:0] cd/dvd HL-DT-ST DVDRAM GT30N IS09 /dev/sr0 /dev/sg2
- [6:0:0:0] tape IBM ULT3580-HH5 B6W1 /dev/st1 /dev/sg3
- [6:0:0:1] mediumx IBM 3573-TL A.60 /dev/sch0 /dev/sg4
-
- # ll /dev/changer*
- lrwxrwxrwx 1 root root 3 12 juin 16:22 /dev/changer -> sg4
- lrwxrwxrwx 1 root root 3 12 juin 16:22 /dev/changer1 -> sg4
-
- # ll /dev/ntape*
- lrwxrwxrwx 1 root root 4 12 juin 16:22 /dev/ntape1 -> nst1
- lrwxrwxrwx 1 root root 4 12 juin 16:22 /dev/ntape2 -> nst0
-
-
-
- $ cat/etc/bacula/bacula-sd.conf
-
- [...]
- Autochanger {
- Name = Autochanger
- Device = Drive-1, Drive-2
- Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
- Changer Device = /dev/changer
- }
-
- Device {
- Name = Drive-1 #
- Drive Index = 0
- Media Type = LTO-5 # Library 3573-TL
- Archive Device = /dev/ntape1
- AutomaticMount = yes; # when device opened, read it
- AlwaysOpen = yes;
- RemovableMedia = yes;
- RandomAccess = no;
- AutoChanger = yes
- Maximum File Size = 12GB # 12GB OK
- Spool Directory = "/data/spool"
- Maximum Spool Size = 100gb
- Maximum Job Spool Size = 60gb
- Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
- }
-
- Device {
- Name = Drive-2 #
- Drive Index = 0
- Media Type = LTO-5 # Library 3573-TL
- Archive Device = /dev/ntape2
- AutomaticMount = yes; # when device opened, read it
- AlwaysOpen = yes;
- RemovableMedia = yes;
- RandomAccess = no;
- AutoChanger = yes
- Maximum File Size = 12GB # 12GB OK
- Spool Directory = "/data/spool"
- Maximum Spool Size = 100gb
- Maximum Job Spool Size = 60gb
- Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
- }
- [...]
-
-
-
-
- Case 1 :
-
- $ cat /etc/bacula/bacula-dir.conf
-
- [...]
- # Definition of file storage device
- Storage {
- Name = toto
- # Do not use "localhost" here
- Address = kraken # N.B. Use a fully qualified name here
- SDPort = 9103
- Password = "***" # password for Storage daemon
- Device = Autochanger # must be same as Device in Storage daemon <------ ???
- Media Type = LTO-5 # must be same as MediaType in Storage daemon
- Autochanger = yes # enable for Autochanger device
- }
-
- [...]
-
- Case 2 :
- $ cat /etc/bacula/bacula-dir.conf
-
- [...]
- # Definition of file storage device
- Storage {
- Name = titi1
- Address = kraken # N.B. Use a fully qualified name here
- SDPort = 9103
- Password = "***" # password for Storage daemon
- Device = Drive-1 # must be same as Device in Storage daemon <------ ???
- Media Type = LTO-5 # must be same as MediaType in Storage daemon
- Autochanger = yes # enable for Autochanger device
- }
- [...]
- Case 3 :
- [...]
- # Definition of file storage device
- Storage {
- Name = titi1
- Address = kraken # N.B. Use a fully qualified name here
- SDPort = 9103
- Password = "***" # password for Storage daemon
-
- Device = Drive-1 # must be same as Device in Storage daemon <------ ???
- Media Type = LTO-5 # must be same as MediaType in Storage daemon
- Autochanger = yes # enable for Autochanger device
- }
-
- Storage {
- Name = titi2
- Address = kraken # N.B. Use a fully qualified name here
- SDPort = 9103
- Password = "***" # password for Storage daemon
- Device = Drive-2 # must be same as Device in Storage daemon <------ ???
- Media Type = LTO-5 # must be same as MediaType in Storage daemon
- Autochanger = yes # enable for Autochanger device
- }
- [...]
