|
From: yesi <ye...@al...> - 2012-06-12 15:32:16
|
Hi,
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:
1. # lsscsi -g
2. [0:2:0:0] disk IBM ServeRAID M5014 2.0. /dev/sda
/dev/sg0
3. [1:0:0:0] tape IBM ULT3580-HH5 B6W1 /dev/st0
/dev/sg1
4. [2:0:0:0] cd/dvd HL-DT-ST DVDRAM GT30N IS09 /dev/sr0
/dev/sg2
5. [6:0:0:0] tape IBM ULT3580-HH5 B6W1 /dev/st1
/dev/sg3
6. [6:0:0:1] mediumx IBM 3573-TL A.60 /dev/sch0
/dev/sg4
7.
8. # ll /dev/changer*
9. lrwxrwxrwx 1 root root 3 12 juin 16:22 /dev/changer -> sg4
10. lrwxrwxrwx 1 root root 3 12 juin 16:22 /dev/changer1 -> sg4
11.
12. # ll /dev/ntape*
13. lrwxrwxrwx 1 root root 4 12 juin 16:22 /dev/ntape1 -> nst1
14. lrwxrwxrwx 1 root root 4 12 juin 16:22 /dev/ntape2 -> nst0
15.
16.
17.
18. $ cat/etc/bacula/bacula-sd.conf
19.
20. [...]
21. Autochanger {
22. Name = Autochanger
23. Device = Drive-1, Drive-2
24. Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
25. Changer Device = /dev/changer
26. }
27.
28. Device {
29. Name = Drive-1 #
30. Drive Index = 0
31. Media Type = LTO-5 # Library 3573-TL
32. Archive Device = /dev/ntape1
33. AutomaticMount = yes; # when device opened, read it
34. AlwaysOpen = yes;
35. RemovableMedia = yes;
36. RandomAccess = no;
37. AutoChanger = yes
38. Maximum File Size = 12GB # 12GB OK
39. Spool Directory = "/data/spool"
40. Maximum Spool Size = 100gb
41. Maximum Job Spool Size = 60gb
42. Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
43. }
44.
45. Device {
46. Name = Drive-2 #
47. Drive Index = 0
48. Media Type = LTO-5 # Library 3573-TL
49. Archive Device = /dev/ntape2
50. AutomaticMount = yes; # when device opened, read it
51. AlwaysOpen = yes;
52. RemovableMedia = yes;
53. RandomAccess = no;
54. AutoChanger = yes
55. Maximum File Size = 12GB # 12GB OK
56. Spool Directory = "/data/spool"
57. Maximum Spool Size = 100gb
58. Maximum Job Spool Size = 60gb
59. Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
60. }
61. [...]
62.
63.
64.
65.
66. *Case 1 :*
67.
68. $ cat /etc/bacula/bacula-dir.conf
69.
70. [...]
71. # Definition of file storage device
72. Storage {
73. Name = toto
74. # Do not use "localhost" here
75. Address = kraken # N.B. Use a fully qualified name
here
76. SDPort = 9103
77. Password = "***" # password for Storage daemon
78. *Device = Autochanger * # must be same as Device
in Storage daemon <------ ???
79. Media Type = LTO-5 # must be same as MediaType in
Storage daemon
80. Autochanger = yes # enable for Autochanger device
81. }
82.
83. [...]
1.
2. *Case 2 *:
3. $ cat /etc/bacula/bacula-dir.conf
4.
5. [...]
6. # Definition of file storage device
7. Storage {
8. Name = titi1
9. Address = kraken # N.B. Use a fully qualified name
here
10. SDPort = 9103
11. Password = "***" # password for Storage daemon
12. *Device = Drive-1 * # must be same as Device in
Storage daemon <------ ???
13. Media Type = LTO-5 # must be same as MediaType in
Storage daemon
14. Autochanger = yes # enable for Autochanger device
15. }
16. [...]
1. *Case 3 :*
2. [...]
3. # Definition of file storage device
4. Storage {
5. Name = titi1
6. Address = kraken # N.B. Use a fully qualified name
here
7. SDPort = 9103
8. Password = "***" # password for Storage daemon
9.
10. *Device = Drive-1 * # must be same as Device in
Storage daemon <------ ???
11. Media Type = LTO-5 # must be same as MediaType in
Storage daemon
12. Autochanger = yes # enable for Autochanger device
13. }
14.
15. Storage {
16. Name = titi2
17. Address = kraken # N.B. Use a fully qualified name
here
18. SDPort = 9103
19. Password = "***" # password for Storage daemon
20. *Device = Drive-2 * # must be same as Device in
Storage daemon <------ ???
21. Media Type = LTO-5 # must be same as MediaType in
Storage daemon
22. Autochanger = yes # enable for Autochanger device
23. }
24. [...]
|