Bacula-users

Re: [Bacula-users] Cannot find any appendable volumes

2010-04-23 10:09:29
Subject: Re: [Bacula-users] Cannot find any appendable volumes
From: Peter Reilly <peter_reilly AT wycliffe DOT org>
To: bacula-users AT lists.sourceforge DOT net
Date: Fri, 23 Apr 2010 10:05:36 -0400
Hello,

I'm trying to understand what condition would cause bacula to not find any appendable volumes, or recycle any tapes.

*ver
orlbacula-dir Version: 2.4.2 (26 July 2008) i686-redhat-linux-gnu redhat

I'm getting this error:

23-Apr 07:30 orlbacula-sd JobId 14636: Job ons-nids-daily.2010-04-22_21.05.30 waiting. Cannot find any appendable volumes.
Please use the "label"  command to create a new Volume for:
    Storage:      "Drive-0" (/dev/nst0)
    Pool:         Weekly
    Media type:   ULTRIUM-LTO-4


I've have these tapes in the pool.

Pool: Weekly
+---------+------------+-----------+---------+-------------------+----------+--------------+---------+------+-----------+---------------+---------------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes          | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType     | LastWritten         |
+---------+------------+-----------+---------+-------------------+----------+--------------+---------+------+-----------+---------------+---------------------+
|      40 | 000052     | Full      |       1 | 1,617,950,702,592 |    3,239 |    1,209,600 |       1 |   14 |         1 | ULTRIUM-LTO-4 | 2010-03-14 21:50:29 |
|      42 | 000003     | Full      |       1 | 1,955,061,255,168 |    3,921 |    1,209,600 |       1 |   21 |         1 | ULTRIUM-LTO-4 | 2010-04-18 12:17:10 |
|      46 | 000008     | Full      |       1 | 1,874,225,009,664 |    3,753 |    1,209,600 |       1 |   29 |         1 | ULTRIUM-LTO-4 | 2010-04-18 21:26:21 |
|      47 | 000009     | Full      |       1 | 1,721,672,064,000 |    3,455 |    1,209,600 |       1 |   30 |         1 | ULTRIUM-LTO-4 | 2010-04-23 02:39:29 |
|      48 | 000012     | Append    |       1 | 1,346,732,061,696 |    2,701 |    1,209,600 |       1 |    3 |         1 | ULTRIUM-LTO-4 | 2010-04-23 06:11:36 |
|      50 | 000015     | Full      |       1 | 1,505,648,083,968 |    3,017 |    1,209,600 |       1 |    5 |         1 | ULTRIUM-LTO-4 | 2010-03-14 01:31:53 |
|      65 | 000054     | Append    |       1 | 1,052,429,930,496 |    2,109 |    1,209,600 |       1 |   24 |         1 | ULTRIUM-LTO-4 | 2010-04-23 08:53:08 |
|      73 | 000049     | Full      |       1 | 1,189,703,789,568 |    2,381 |    1,209,600 |       1 |    1 |         1 | ULTRIUM-LTO-4 | 2010-03-20 22:04:19 |
|      79 | 000045     | Full      |       1 | 1,848,184,095,744 |    3,699 |    1,209,600 |       1 |    8 |         1 | ULTRIUM-LTO-4 | 2010-03-21 08:27:10 |
|      80 | 000062     | Recycle   |       1 |                 1 |        0 |    1,209,600 |       1 |    6 |         1 | ULTRIUM-LTO-4 | 2010-03-03 05:36:10 |
|      81 | 000063     | Full      |       1 | 2,113,247,840,256 |    4,235 |    1,209,600 |       1 |   28 |         1 | ULTRIUM-LTO-4 | 2010-03-03 05:59:26 |
|      83 | 000048     | Full      |       1 | 1,634,520,932,352 |    3,275 |    1,209,600 |       1 |   25 |         1 | ULTRIUM-LTO-4 | 2010-03-07 08:59:21 |
|      84 | 000065     | Full      |       1 | 2,100,940,434,432 |    4,209 |    1,209,600 |       1 |   20 |         1 | ULTRIUM-LTO-4 | 2010-03-13 22:01:54 |
+---------+------------+-----------+---------+-------------------+----------+--------------+---------+------+-----------+---------------+---------------------+


With a retention period of 14 days, I was expecting the volumes 000052, 000015, 000049, 000045, 000062, 000063, 000048, and 000065 to be usable.

Here are the config file relevant portions:

#bacula-sd.conf

Autochanger {
  Name = Autochanger
  Device = Drive-0, Drive-1
  Changer Command = "/usr/lib/bacula/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/sg4
}

Device {
  Name = Drive-0
  Drive Index = 0
  Media Type = ULTRIUM-LTO-4
  Archive Device = /dev/nst0
  AutomaticMount = yes;               # when device opened, read it
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  AutoChanger = yes
  Check Labels = yes
  LabelMedia = yes
  Label Type = ANSI
  Alert Command = "sh -c 'smartctl -H -l error %c'" 
}

Device {
  Name = Drive-1
  Drive Index = 1
  Media Type = ULTRIUM-LTO-4
  Archive Device = /dev/nst1
  AutomaticMount = yes;               # when device opened, read it
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  AutoChanger = yes
  Check Labels = yes
  LabelMedia = yes
  Label Type = ANSI
  Alert Command = "sh -c 'smartctl -H -l error %c'" 
}

# bacula-dir.conf

JobDefs {
  Name = "Weekly"
  Type = Backup
  Level = Full
  Client = orlbacula-fd
  FileSet = "Full Set"
  Maximum Concurrent Jobs = 2
  #Maximum Concurrent Jobs = 4
  Schedule = "Weekly"
  Storage = tape
  Messages = Standard
  Pool = Weekly
  Priority = 10
  Max Start Delay = 23h
  Prefer Mounted Volumes = no
}

Storage {
  Name = tape
  Address = gideon.wycliffe.org
  SDPort = 9103
  Maximum Concurrent Jobs = 4
  Password = "password"
  Device = Autochanger
  Media Type = ULTRIUM-LTO-4
  Autochanger = yes
}

Pool {
  Name = Weekly
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 14 days
}




Thanks!

Peter


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