Bacula-users

Re: [Bacula-users] Virtual Autochanger

2015-06-05 09:10:19
Subject: Re: [Bacula-users] Virtual Autochanger
From: Heitor Faria <heitor AT bacula.com DOT br>
To: Jogi Hofmüller <jogi AT mur DOT at>
Date: Fri, 5 Jun 2015 10:02:58 -0300 (BRT)
Hello Jogi,

Perhaps you can try to use different Media Types for each device, like it is 
being discussed lately on this list and also recommended by the same whitepaper.
Once I managed to deploy a solution like yours, but with Shell Script. I run my 
backups all at a single tape a time, and had a script that grep(ed) status 
storage output every 180s looking for blocked devices waiting for media; a 
single bacula-sd tape where the Archive Device was a symlink that was changed 
between nst0 and nst1 by the prior script. I've posted at this list (I think 
2008) and it worked like a charm.

Regards,
======================================================================= 
Heitor Medrado de Faria - LPIC-III | ITIL-F | Bacula Systems Certified 
Administrator II 
15 a 26 de junho: Treinamento Telepresencial Bacula: 
http://www.bacula.com.br/?p=2174 
61 8268-4220 
Site: www.bacula.com.br | Facebook: heitor.faria 
========================================================================

----- Mensagem original -----
> De: "Jogi Hofmüller" <jogi AT mur DOT at>
> Para: bacula-users AT lists.sourceforge DOT net
> Enviadas: Sexta-feira, 5 de junho de 2015 7:17:13
> Assunto: [Bacula-users] Virtual Autochanger

> Dear all,
> 
> We recently bought two identical HP Ultrium 448i tape drives.  We want
> to use them with Bacula and found the white paper "Best Practices for
> Disk Backup" [1] that describes how to configure a virtual autochanger.
> We applied the necessary changes in order to model our two drives
> combined in one virtual autochanger and tried it with a backup job that
> needs more than one tape.
> 
> Bacula used the first tape as expected but when in came to use the
> second tape it requested the second tape to be mounted in the first
> drive although the tape was correctly mounted in the second drive.
> 
> Now I would like to ask the experts if it is possible to make a setup
> like I described work and if so, what we did wrong so far.  We are
> currently using bacula 5.2.6 from Debian stable (8.0 aka jessie).  So
> far we have been using bacula with one drive for the past 10 years or so
> and did not have any problems.
> 
> Here are the relevant portions of our configs:
> 
> <bacula-dir.conf>
> 
> Storage {
>  Name = TapeChanger
>  Address = 127.0.0.1
>  Password = "03292ab58a34fc3895a70a0d6581581c6105a5fd"
>  Device = Virtual
>  Media Type = Ultrium2
>  Autochanger = yes
> }
> 
> JobDefs {
>  Name = "DefaultJob"
>  Type = Backup
>  Client = hamster-file
>  FileSet = HomeBackupFileSet
>  Messages = Standard
>  Storage = TapeChanger
>  Priority = 10
> }
> 
> Job {
>  Name = "BackupFiles"
>  JobDefs = DefaultJob
>  Schedule = DailySchedule
>  Pool = WeeklyPool
>  Write Bootstrap = "/var/lib/bacula/BackupFiles.bsr"
> }
> 
> </bacula-dir.conf>
> 
> <bacula-sd.conf>
> 
> Autochanger {
>  Name = Virtual
>  Changer Device = /dev/null
>  Changer Command = ""
>  Device = virtual-0, virtual-1
> }
> 
> Device {
>  Name = virtual-0
>  Media Type = Ultrium2
>  Archive Device = /dev/nst0
>  Device Type = Tape
>  AutomaticMount = yes
>  AlwaysOpen = yes
>  RemovableMedia = yes
>  Autochanger = yes
>  Drive Index = 0
>  Volume Poll Interval = 15
>  Autoselect = yes
> }
> 
> Device {
>  Name = virtual-1
>  Media Type = Ultrium2
>  Archive Device = /dev/nst1
>  Device Type = Tape
>  AutomaticMount = yes
>  AlwaysOpen = yes
>  RemovableMedia = yes
>  Autochanger = yes
>  Drive Index = 1
>  Volume Poll Interval = 15
>  Autoselect = yes
> }
> 
> </bacula-sd.conf>
> 
> 
> Thanks for any input on this matter!
> 
> [1]  http://blog.bacula.org/whitepapers/CommunityDiskBackup.pdf
> 
> Cheers,
> --
> J.Hofmüller
> 
> ich zitiere wie Espenlaub.
> 
> https://twitter.com/TheGurkenkaiser/status/463444397678690304
> 
> 
> ------------------------------------------------------------------------------
> 
> _______________________________________________
> Bacula-users mailing list
> Bacula-users AT lists.sourceforge DOT net
> https://lists.sourceforge.net/lists/listinfo/bacula-users

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