Hi!

On Fri, 22 Jul 2005 - 10:21am, Rico wrote:

>hi
>
>i have read the manual again and again and again......
>but can't find the solution.
>
>i have 10 tapes for 10 full-backups(montag1-freitag1, montag2-freitag2).
>5 jobs are to write on one tape.
We have something very similar.
16 tapes, which get used every 2 weeks.
They are named "D01170", "D02180", "D0319", ... guess you get it.

># Default pool definition
>Pool {
>  Name = Default
>  Pool Type = Backup
>  Recycle = yes
>  AutoPrune = yes
>  Volume Retention = 325 hours #13,5days
>  Accept Any Volume = yes
>  Recycle Current Volume = yes
>  Maximum Volumes = 10
>  Maximum Volume Jobs = 5
>}
We use a "Maximum Use Duration" setting of 23 hours, not a Max Vol Jobs.
but that doesnt seem to be your problem.

>i will take donnerstag2 as example.
>donnerstag2 had the status "Used" yesterday before the daily backup.
>
>1st job(mounts the tape). this jobs is ok:
>
>Job {
>  Name = "_before"
>  JobDefs = "DefaultJob"
>  Type = Admin
>  RunBeforeJob = "/etc/bacula/before_backup"
>  Priority = 1
>}
>
>2nd job. look logfile below:
>
>Job {
>  Name = "thepig"
>  JobDefs = "DefaultJob"
>  Client = thepig-fd
>  FileSet = "thepig"
>  Write Bootstrap = "/var/bacula/thepig.bsr"
>  Priority = 2
>}
>
>Schedule {
>  Name = "DaylyCycle"
>  Run = mon-fri at 20:00
>}
>
>
>here is the logfile.
>the volume was pruned and status was set to "Recycle".
>but to the tape was not written.
>
>
>21-Jul 22:09 pe2800oracle-dir: Start Backup JobId 424,
>Job=thepig.2005-07-21_20.00.01
>21-Jul 22:36 pe2800oracle-dir: Pruned 5 Jobs on Volume "donnerstag2"
>from catalog.
>21-Jul 22:36 pe2800oracle-sd: Job thepig.2005-07-21_20.00.01 waiting.
>Cannot find any appendable volumes.
>Please use the "label"  command to create a new Volume for:
>    Storage:      LTO Ultrium 2
>    Media type:   LTO-G2
>    Pool:         Default
>21-Jul 23:36 pe2800oracle-dir: Recycled volume "donnerstag2"
>21-Jul 23:36 pe2800oracle-sd: Please mount Volume "donnerstag2" on
>Storage Device "LTO Ultrium 2" for Job thepig.2005-07-21_20.00.01
>Use "mount" command to release Job.
>22-Jul 01:36 pe2800oracle-sd: Please mount Volume "donnerstag2" on
>Storage Device "LTO Ultrium 2" for Job thepig.2005-07-21_20.00.01
>Use "mount" command to release Job.
>22-Jul 05:36 pe2800oracle-sd: Please mount Volume "donnerstag2" on
>Storage Device "LTO Ultrium 2" for Job thepig.2005-07-21_20.00.01
>Use "mount" command to release Job.
>
>
>this is the output after the jobs was canceled.
>
>*list media
>Pool: Default
>+---------+-------------+-----------+--------------+----------+--------------+---------+------+-----------+-----------+---------------------+
>| MediaId | VolumeName  | VolStatus | VolBytes     | VolFiles |
>VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten
>    |
>+---------+-------------+-----------+--------------+----------+--------------+---------+------+-----------+-----------+---------------------+
>| 1       | montag1     | Used      | 371207648203 | 374      | 1170000
>     | 1       | 0    | 1         | LTO-G2    | 2005-07-12 03:40:57 |
>| 2       | dienstag1   | Used      | 375189988078 | 378      | 1170000
>     | 1       | 0    | 1         | LTO-G2    | 2005-07-13 03:56:17 |
>| 3       | mittwoch1   | Used      | 374915259786 | 377      | 1170000
>     | 1       | 0    | 1         | LTO-G2    | 2005-07-14 04:43:18 |
>| 4       | donnerstag1 | Used      | 372614864552 | 375      | 1170000
>     | 1       | 0    | 1         | LTO-G2    | 2005-07-15 04:16:53 |
>| 5       | freitag1    | Used      | 373439663991 | 376      | 1170000
>     | 1       | 0    | 1         | LTO-G2    | 2005-07-16 04:11:37 |
>| 7       | dienstag2   | Used      | 372883955813 | 376      | 1170000
>     | 1       | 0    | 1         | LTO-G2    | 2005-07-20 04:55:07 |
>| 9       | mittwoch2   | Read-Only | 1            | 0        | 1170000
>     | 1       | 0    | 1         | LTO-G2    | 2005-07-07 04:06:36 |
>| 10      | donnerstag2 | Recycle   | 1            | 0        | 1170000
>     | 1       | 0    | 1         | LTO-G2    | 2005-07-08 03:56:32 |
>| 11      | freitag2    | Used      | 374264238512 | 377      | 1170000
>     | 1       | 0    | 1         | LTO-G2    | 2005-07-09 03:57:32 |
>| 12      | montag2     | Used      | 373419137501 | 376      | 1170000
>     | 1       | 0    | 1         | LTO-G2    | 2005-07-19 04:30:11 |
>+---------+-------------+-----------+--------------+----------+--------------+---------+------+-----------+-----------+---------------------+
>
>
>
>where is th error?

The only problem I can see is your LTO-changer device.
The tape itself is ready to be used, its just not "there" to be used.

Did you configure your SD to use an "autochanger"?

Our example from the -sd.conf
Device {
  Name      = TapeStorage
  Media Type    = LTO
  Archive Device  = /dev/tape
  AutoChanger   = yes
  Changer Device  = /dev/changer
  Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
  LabelMedia    = yes
  RandomAccess  = no
  AutomaticMount  = yes
  RemovableMedia  = yes
  AlwaysOpen    = no
  Maximum Open Wait = 10 seconds
  Spool Directory = /u02/tmp/spool
  Maximum Spool Size = 40G
}

Dont forget to run "update slots" in bconsole after you changed the tapes in 
the changer. We have two things for that.
1.) a cronjob 30 minutes before the first backup-job that runs "mtx inventory"
2.) all our tapes have barcodes; whenever our mtx-changer script finds a filled 
slot without a read barcode in the "mtx status" output it executes an "mtx 
inventory"

Hope that helps.

Greetings, Michael



-- 
 I am root. If you see me laughing, you better have a backup.



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to