On 10/4/06, Grasso Maurizio <[EMAIL PROTECTED]> wrote:
> Hi MAx
>
> have you got an example of bacula-dir.conf and bacula-sd.conf  for manage
> the HP Ultrium?
>
> thanks a lot

Hi,

below here are some fragments taken from my bacula-sd.conf and bacula-dir.conf,
hopefully enough to help you get the HP Autoloader going.

In the bacula-sd.conf I define the autoloader as:

Autochanger {
  Name = 1x8_Autoloader
  Device = Ultrium-448
  Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/sg1
}
Note: if you have other SCSI devices, your changer can be detected at
a different
place than /dev/sg1. Check it by running 'tapeinfo -f /dev/sg1'.

Then the Device written in the Autochanger configuration is defined
few lines below as:

Device {
  Name = Ultrium-448
  Media Type = LTO-2
  Archive Device = /dev/nst0
  AutomaticMount = yes;               # when device opened, read it
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
## Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
## Changer Device = /dev/sg0
  AutoChanger = yes
## Enable the Alert command only if you have the mtx package loaded
## Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
}

Then in the bacula-dir.conf the tape unit is referenced uniquely as:

Storage {
  Name = Autoloader
  Address = scribe02
  SDPort = 9103
  Password = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
  Device = 1x8_Autoloader
  Media Type = LTO-2
  Autochanger = yes
}

An example of job defined on my director that uses the autoloader tape
is the following:

Job {
  Name = "DaisyUsers"
  Type = Backup
  Client = daisy-fd
  FileSet = "Users"
  Schedule = "DaisyUsersCycle"
  Storage = Autoloader
  Messages = Standard
  Pool = LTO2alt
}

Depending on your Linux distro + bacula installation you may need to
retouch some device or file permission and/or ownership to have
everything working.

Regards
-- 
Maxx

-------------------------------------------------------------------------
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