Bacula-users

Re: [Bacula-users] Tapes not in autochanger are being recycled

2012-01-20 07:24:25
Subject: Re: [Bacula-users] Tapes not in autochanger are being recycled
From: Martin Simmons <martin AT lispworks DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Fri, 20 Jan 2012 12:21:48 GMT
>>>>> On Thu, 19 Jan 2012 16:02:51 +0100, Michael Triska said:
> 
> we are running bacula 5.2.3 on centos with an Adic Scalar 100
> Autochanger. Two times a week the tapes with volstatus full are changed with
> new and/or expired tapes. New tapes are labeled via "label barcodes" and
> added to the scratch pool, then "update slots" is run in bconsole.
> 
> Everytime a job starts and no appendable volumes are available in the
> corresponding pool, bacula purges the oldest expired volume and requests it
> to mount, although InChanger=0 is set. Our expectation would be that bacula
> uses a volume from Scratch pool if no expired media is online within the
> corresponding pool the job uses, but instead it requests the oldest expired
> volume, regardless of its InChanger flag set to 0.
> 
> ...
> 
> # bacula storage ressource
> #
> Storage {
>   Name = STOR_ADICSCALAR
>   Address = backup-sd.backup
>   SDPort = 9103
>   Password = "dummy"
>   Device = DEV_ADICSCALAR
>   Media Type = LTO-3
>   Maximum Concurrent Jobs = 3
>   AllowCompression = No
> }

I think you need to add Autochanger = yes here in the bacula-dir.conf.  The
Director needs to know that it is using an autochanger, otherwise it ignores
the InChanger field.


> # bacula device ressource
> # 
> Autochanger {
>   Name = "DEV_ ADICSCALAR"
>   Device = Drive0
>   Device = Drive1
>   Device = Drive2
>   Changer Device = /dev/tape/by-id/scsi-dummy         #Adic_Scalar Changer
>   Changer Command = "/opt/bacula/scripts/mtx-changer_Adic %c %o %S %a %d"
> 
> }
> 
> Device {
>   Name = " ADICSCALAR_WR31_SD-2_Drive0"
>   Media Type = LTO-3
>   Archive Device = /dev/tape/by-id/dummy
>   DriveIndex = 0
>   LabelMedia = no;
>   AutoChanger = yes
>   AutomaticMount = yes;
>   AlwaysOpen = yes;
>   RemovableMedia = yes;
>   Maximum Concurrent Jobs = 1
>   Maximum Network Buffer Size = 65536
>   Maximum Spool Size = 286613470000             # ca. 274GB
> #  Maximum Job Spool Size = 53687091200          # ca. 50GB
>   Maximum Job Spool Size = 42949672960          # ca. 40GB
>   Spool Directory = /backup/SPOOL
> }

Have you edited these definitions before posting them?  The device names don't
seem to match.

__Martin

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users