On Mon, 18 Sep 2006, Pietari Hyvärinen wrote:

Hi!
Our Autochcanger ( dell136T) is connected to four tape drives.
Two of the are older LTO-2 and the rest are LTO-3 capable drives.
How I define bacula-dir to understand that there are two of each
drives in same autochanger?

You have the bacula-sd definition right... BUT...

Bacula's current state means you can only use LTO3 tapes in the LTO3 drives and LTO2 tapes in the LTO2 drives.

Bacula has no way of knowing that you can use LTO2 tapes in the LTO3 drives. I've been requseting that functionality for a while, as we have always planned to install LTO3/LTO4 drives in our robot when hardware upgrade time happens.


The main stumbling block is really in bacula-dir

# Definition of LTO-2 tape storage autochanger
Storage {
  Name = Autochanger
  Autochanger = yes
  Address = XXXXXX     # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "supercalafragilisticexpialidocious"
  Device = Autochanger                     # must be same as Device in Storage 
daemon
  Media Type = LTO-2                   #  must be same as MediaType in Storage 
daemon
  Maximum Concurrent Jobs = 15
}

As you can see, the mediatype is locked into the changer entry and currently the only way to define LTO3 jobs is to create another changer - which will probably cause database issues with "update slots", etc.


We are using bacula version 1.38.11-3.

bacula-sd.conf configuration:

Autochanger {
  Name = Autochanger
  Device = Drive-1
  Device = Drive-2
  Device = Drive-3
  Device = Drive-4
  Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/sg0
}

Device {
  Name = Drive-1                      #
  Drive Index = 0
  Media Type = LTO-3
  Archive Device = /dev/nst0
  AutomaticMount = yes;               # when device opened, read it
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  AutoChanger = yes
}
Device {
  Name = Drive-2                      #
  Drive Index = 1
  Media Type = LTO-3
  Archive Device = /dev/nst2
  AutomaticMount = yes;               # when device opened, read it
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  AutoChanger = yes

}
Device {
  Name = Drive-3                      #
  Drive Index = 2
  Media Type = LTO-2
  Archive Device = /dev/nst1
  AutomaticMount = yes;               # when device opened, read it
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  AutoChanger = yes
}
Device {
  Name = Drive-4                      #
  Drive Index = 3
  Media Type = LTO-2
  Archive Device = /dev/nst3
  AutomaticMount = yes;               # when device opened, read it
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  AutoChanger = yes
}


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to