Bacula-users

[Bacula-users] Config of bacula-dir.conf for two drive with one autochanger

2012-06-12 11:34:59
Subject: [Bacula-users] Config of bacula-dir.conf for two drive with one autochanger
From: yesi <yesi AT altern DOT org>
To: Bacula-users AT lists.sourceforge DOT net
Date: Tue, 12 Jun 2012 17:31:31 +0200
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. Case 1 :

  64. $ cat /etc/bacula/bacula-dir.conf
  65.  
  66. [...]
  67. # Definition of file storage device
  68. Storage {
  69.   Name = toto
  70. #  Do not use "localhost" here
  71.   Address = kraken                # N.B. Use a fully qualified name here
  72.   SDPort = 9103
  73.   Password = "***"          # password for Storage daemon
  74.   Device = Autochanger                    # must be same as Device in Storage daemon   <------ ???
  75.   Media Type = LTO-5                  # must be same as MediaType in Storage daemon
  76.   Autochanger = yes                   # enable for Autochanger device
  77. }
  78.  
  79. [...]



  1. Case 2 :
  2. $ cat /etc/bacula/bacula-dir.conf
  3.  
  4. [...]
  5. # Definition of file storage device
  6. Storage {
  7.   Name = titi1
  8.   Address = kraken                # N.B. Use a fully qualified name here
  9.   SDPort = 9103
  10.   Password = "***"          # password for Storage daemon
  11.   Device = Drive-1                    # must be same as Device in Storage daemon        <------ ???
  12.   Media Type = LTO-5                  # must be same as MediaType in Storage daemon
  13.   Autochanger = yes                   # enable for Autochanger device
  14. }
  15. [...]


  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.   Device = Drive-1                    # must be same as Device in Storage daemon        <------ ???
  10.   Media Type = LTO-5                  # must be same as MediaType in Storage daemon
  11.   Autochanger = yes                   # enable for Autochanger device
  12. }

  13. Storage {
  14.   Name = titi2
  15.   Address = kraken                # N.B. Use a fully qualified name here
  16.   SDPort = 9103
  17.   Password = "***"          # password for Storage daemon
  18.   Device = Drive-2                    # must be same as Device in Storage daemon        <------ ???
  19.   Media Type = LTO-5                  # must be same as MediaType in Storage daemon
  20.   Autochanger = yes                   # enable for Autochanger device
  21. }
  22. [...]





------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>