Bacula-users

Re: [Bacula-users] how dedicate tape for one pool

2008-06-13 10:29:36
Subject: Re: [Bacula-users] how dedicate tape for one pool
From: Arno Lehmann <al AT its-lehmann DOT de>
To: bacula-users AT lists.sourceforge DOT net
Date: Fri, 13 Jun 2008 16:28:46 +0200
Hello,

13.06.2008 14:58, worm75011 wrote:
> Arno Lehmann a écrit :
>> Hi,
>>
>> 13.06.2008 12:04, worm75011 wrote:
>>> Tilman Schmidt a écrit :
>>>> Arno Lehmann schrieb:
>>>>> 13.06.2008 10:52, worm75011 wrote:
>>>>>> i have a a library quantum scalar24 with 2 lto-3 tapes
>>>>>> I would like to dedicate a tape for one pool and the second tape for 
>>>>>> a nother pool.
>>>>>>
>>>>>> Somebody  have a idea?
>>>>> When you create a new volume - typically using the 'label' command - 
>>>>> you assign it to one specific pool. [...]
>>>>> Conclusion: Just label your volumes and you get what you want.
>>>> I think he is talking about tape *drives*.
>> Good point. :-)
>>
>>>> HTH
>>>> T.
>>>
>>> => You're right Tilman tape = drive for me sorry
>> Ok, this is a bit different.
>>
>> You'd need the two tape drives as storage devices configured for 
>> Bacula, i.e. do *not* only use the autochanger resource in the DIR config.
>>
>> Then, set "Storage=" directives in the pool resources.
>>
>> Or, what I would prefer, let Bacula handle this itself.
>>
>> If you leave the default setting of "Prefer mounted volume=yes", and 
>> have jobs using two different pools running in parallel, Bacula should 
>> use one drive for each set of jobs. In theory :-)
>>
>> Arno
>>
>>> thanks for your help
>>>
>>> philippe
...
> i have on my bacula-dir.conf :
> #####################################################################
> #                                                                   #
> # Fichier de configuration de bacula-director                       #
> # Pour  Bacula release 2.2.0 (08 August 2007) -- Debian Lenny       #
> #                                                                   #
> #####################################################################
...
> # Definition of the  Autochanger
> Storage {
>    Name = "Autochanger"
> #  Do not use "localhost" here
>    Address = svmasbacu01                # N.B. Use a fully qualified 
> name here
>    SDPort = 9103
>    Password = "titi"          # password for Storage daemon
>    Device = LTO-1                      # must be same as Device in 
> Storage daemon
>    Media Type = LTO3
>    Device = LTO-2

This is probably not what you want. Two device entries here are not 
useful.

>    Autochanger = yes                   # enable for autochanger device
>    #Maximum Concurrent Jobs = 2
>    Maximum Concurrent Jobs = 1

Also, for the autochanger as a whole, you will need at least two 
concurrent jobs if you want to use both drives simultaneously.

> }
> 
...
> ==============
> my bacula-sd.conf
> 
> 
> #####################################################################
> #                                                                   #
> # Fichier de configuration de bacula-storage                        #
> # Pour  Bacula release 2.2.0 (08 August 2007) -- Debian Lenny       #
> #                                                                   #
> #####################################################################
...
> #
> # An autochanger device with two drives
> # definition du robot
> Autochanger {
>    Name = "Autochanger"

Use this name as the device for the autochanger in the DIR configuration.

>    Device = LTO-1
>    Device = LTO-2
>    Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
>    Changer Device = /dev/changer
> }
...


> => if i anderstand your anwser i can write :
> 
> Pool {
>    Name = Default
>    Pool Type = Backup
>    Recycle = yes              # Bacula peut automatiquement recycler des 
> volumes
>    AutoPrune = yes            # Prune expired volumes
>    Volume Retention = 15 day  # retention du 2 semaines
>    Cleaning Prefix = "CLN"
>    Storage = Autochanger
> }

If you fix the autochanger device as mentioned above, yes. But what 
you might want to try is
a) adding storage devices for LTO-1 and LTO-2 to the DIR 
configuration, and
b) use those as the storage in the pool definitions.

> 
> Pool {
>          Name = SortieHebdo
>          Pool Type = Backup
>          Recycle = no
>          AutoPrune = no
>          Cleaning Prefix = "CLN"
>       Storage = Autochanger
> }
> 
> but how to make the difference drive to use => i must create 2 
> autochanger  each with 1 drive?

No, but you define the single drives as storae devices in the DIR.

And you should allow job concurrency.

Arno

> i have a storage library with 2 drives
> 
> 
> thx
> 
> philippe
> 
> 
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Bacula-users mailing list
> Bacula-users AT lists.sourceforge DOT net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 

-- 
Arno Lehmann
IT-Service Lehmann
www.its-lehmann.de

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users