Bacula-users

Re: [Bacula-users] tape label

2008-04-11 19:31:06
Subject: Re: [Bacula-users] tape label
From: "Bob Gamble" <kiksadiweb AT gmail DOT com>
To: ceron <igor AT bbcenter.com DOT br>, bacula-users AT lists.sourceforge DOT net, giovanni.colapinto AT assioma DOT net
Date: Fri, 11 Apr 2008 15:30:52 -0800
I've also posted on this same issue several times now.  I haven't had any luck.  Here are my configs related to the problem described in this post:

This volume was migrated onto a tape labeled 000101 via barcode:

JobDefs {
  Name = "DefaultJob"
  Type = Backup
  Level = Incremental
  Client = sitbackup-fd
  FileSet = "Full Set"
  Schedule = "WeeklyCycle"
  Storage = File
  Messages = Standard
  Pool = sitbackup-pool
  Priority = 10
}
Job {
  Name = "Client1"
  JobDefs = "DefaultJob"
  Write Bootstrap = "/etc/bacula/bin/working/Client1.bsr"
}
FileSet {
  Name = "Full Set"
  Include {
    Options {
      signature = MD5
    }
    File = /etc/bacula/bin
  }
  Exclude {
  }
}
Client {
  Name = sitbackup-fd
  Address = sitbackup
  FDPort = 9102
  Catalog = MyCatalog
  Password = "blo0dyg0od"          # password for FileDaemon
  File Retention = 1 day            # 1 day
  Job Retention = 1 day             # 1 day
  AutoPrune = yes                     # Prune expired Jobs/Files
}
Pool {
  Name = sitbackup-pool
  Pool Type = Backup
  Recycle = yes                       # Bacula can automatically recycle Volumes
  AutoPrune = yes                     # Prune expired volumes
  Next Pool = sitbackup-tape               # Added to migrate to tape
  Volume Retention = 1 day
  Maximum Volume Jobs = 1
  Maximum Volumes = 1
  Storage = File
}
# Tape pool definition
Pool {
  Name = sitbackup-tape
  Pool Type = Backup
  AutoPrune = yes
  Recycle = yes
  Storage = PV-132T
}
Job {
  Name = "sitbackup-volume"
  Type = Migrate
  Level = Full
  Client = sitbackup-fd
  FileSet = "Full Set"
  Messages = Standard
  Pool = sitbackup-pool
  Maximum Concurrent Jobs = 4
  Selection Type = Volume
  Selection Pattern = "sitbackup"
}

This volume gives errors when trying to migrate:

JobDefs {
  Name = "3mserver"
  Type = Backup
  Level = Incremental
  Client = 3mserver-fd
  FileSet = "3mserver Set"
  Schedule = "WeeklyCycle"
  Storage = File
  Messages = Standard
  Pool = 3mserver-pool
  Priority = 10
}
Job {
  Name = "3mserverclient"
  JobDefs = "3mserver"
  Write Bootstrap = "/etc/bacula/bin/working/3mserver.bsr"
}
FileSet {
  Name = "3mserver Set"
  Enable VSS = yes
  Include {
    Options {
      signature = MD5
    }
    File = "c:/3m"
  }
 Exclude {
  }
}
Client {
  Name = 3mserver-fd
  Address = 3mserver
  FDPort = 9102
  Catalog = MyCatalog
  Password = "blo0dyg0od"          # password for FileDaemon
  File Retention = 3 months            # 3 months
  Job Retention = 3 months            # 3 months
  AutoPrune = yes                     # Prune expired Jobs/Files
}
Pool {
  Name = 3mserver-pool
  Pool Type = Backup
  Recycle = yes                       # Bacula can automatically recycle Volumes
  AutoPrune = yes                     # Prune expired volumes
  Next Pool = 3mserver-tape               # Added to migrate to tape
  Volume Retention = 3 months         # 3 months
  Maximum Volume Bytes = 20000000000 # 20gb limit
  Label Format = 3mserver-
  Maximum Volumes = 2
  Storage = File
}
# Tape pool definition
Pool {
  Name = 3mserver-tape
  Pool Type = Backup
  AutoPrune = yes
  Recycle = yes
  Storage = PV-132T
}
Job {
  Name = "3mserver-volume"
  Type = Migrate
  Level = Full
  Client = sitbackup-fd
  FileSet = "3mserver Set"
  Messages = Standard
  Pool = 3mserver-pool
  Maximum Concurrent Jobs = 4
  Selection Type = Volume
  Selection Pattern = "3mserver"
}

The errors are in my previous post referring to not being able find any appendable volumes.  I know the five tapes I have labeled with "label barcodes" are indeed appendable and aren't even close to full.  The single volume migrated so far was only 1.5gb.  Each tape is capable of handling 400gb.

Lastly, I'll include my bacula-sd.conf portion with the autochanger resource:

Autochanger {
  Name = "PV-132T"
  Device = LTO-1,LTO-2
  Changer Device = /dev/sg4
  Changer Command = "/etc/bacula/bin/mtx-changer %c %o %S %a %d"
}
#
# A Linux or Solaris tape drive
#
Device {
  Name = LTO-1
  Drive Index = 0
  Media Type = LTO-3
  Archive Device = /dev/st0
  AutomaticMount = yes;               # when device opened, read it
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
 Changer Command = "/etc/bacula/bin/mtx-changer %c %o %S %a %d"
 Changer Device = /dev/sg4
 AutoChanger = yes
  # Enable the Alert command only if you have the mtx package loaded
 Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
}

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

*This is pretty much my last effort in trying to do this with bacula.  It is very powerful, there is mass documentation that is good, but none that I can find to get me on my way with migrating disk based backups to storage.  I've already had to ditch a large disk volume and will need to continue doing this with other volumes unless I can figure this out.  But I wish someone could help.*

Thank you.


On Tue, Apr 8, 2008 at 6:03 AM, ceron <igor AT bbcenter.com DOT br> wrote:

Dear Giovanni,

In order to help you provide some more information, like your job and pool
resources and the entire error line in your job log.



Colapinto Giovanni wrote:
>
> Hello guys.
>
> I've a problem with label tape in bacula. I've searched through mailing
> list archive, but can't find anything, probably for the general type of
> question....
>
> I've an up and running disk backup. I want to have a tape backup, so I
> create the job to write to tape.
>
> Now the problem: I label a tape, put it in the correct pool, but when
> the backup begins, it ask me to label a new tape, without using the new
> labeled tape.
>
> Why?
>
> Thanx
>
> --
> -------------------------------------
> GIOVANNI COLAPINTO
> Resp. Logistica e Sistemi Informativi
> Assioma.net
> Via Quintino Sella 19
> 20094 Corsico (MI)
> Telefono: 02/45055818
> Cellulare: 3404945829
> Email: giovanni.colapinto AT assioma DOT net
> -------------------------------------
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________
> Bacula-users mailing list
> Bacula-users AT lists.sourceforge DOT net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
>

--
View this message in context: http://www.nabble.com/tape-label-tp16489811p16558739.html
Sent from the Bacula - Users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Register now and save $200. Hurry, offer ends at 11:59 p.m.,
Monday, April 7! Use priority code J8TLD2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
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>