Hi
We've been struggling with this problem for a few weeks and i'm completely out
of ideas on how to permanently solve it, so any help will be appreciated.
We have a 'Weekly' pool which comprises 5 different LTO-3 tapes: W001, W002,
... W005. One tape per whole week. This pool is configured this way:
Pool {
Name = Weekly
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Use Duration = 4 days
Volume Retention = 15 days
Recycle Oldest Volume = yes
Purge Oldest Volume = yes
Maximum Volumes = 5
}
And backup jobs follow this schedule:
Schedule {
Name = "MonthlyCycle"
Run = Level=Full Pool=Weekly 1st thu at 23:05
Run = Level=Full Pool=Weekly 2nd-5th mon at 23:05
Run = Level=Incremental Pool=Weekly 2nd-5th thu at 23:05
}
The problem is that bacula always recycle the wrong tape on Mondays. For
example, if it is supposed to use tape 'W005' this week, it will recycle and
ask for 'W001', next week's tape. Backup jobs fail and this error comes up:
23-Oct 23:05 br01 JobId 666: Start Backup JobId 666,
Job=Backup-br01.2010-10-25_23.05.00_36
23-Oct 23:05 br01 JobId 666: Using Device "LTO-3"
23-Oct 23:05 br01 JobId 666: Warning: Director wanted Volume "W001".
Current Volume "W005" not acceptable because:
1998 Volume "W005" status is Used, but should be Append, Purged or Recycle.
23-Oct 23:05 br01 JobId 666: Please mount Volume "W001" or label a new one for:
Job: Backup-br01.2010-09-20_23.05.00_36
Storage: "LTO-3" (/dev/nst0)
Pool: Semanal
Media type: LTO-3
Funny thing is that W005 is in fact the oldest volume and first on the queue to
be recycled.
Pool: Weekly
+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles |
VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten |
+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| 11 | W005 | Used | 1 | 1 | 0 |
1,296,000 | 1 | 0 | 0 | LTO-3 | 2010-09-23 23:13:53 |
| 20 | W001 | Recycle | 1 | 1 | 0 |
1,296,000 | 1 | 0 | 0 | LTO-3 | 2010-09-30 23:11:20 |
| 21 | W002 | Used | 1 | 441,216,792,576 | 445 |
1,296,000 | 1 | 0 | 0 | LTO-3 | 2010-10-08 02:18:54 |
| 27 | W003 | Used | 1 | 446,883,913,728 | 451 |
1,296,000 | 1 | 0 | 0 | LTO-3 | 2010-10-15 17:41:38 |
| 28 | W004 | Used | 1 | 450,299,824,128 | 458 |
1,296,000 | 1 | 0 | 0 | LTO-3 | 2010-10-21 23:14:39 |
+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
*llist volume=W005
MediaId: 11
VolumeName: W005
Slot: 0
PoolId: 3
MediaType: LTO-3
FirstWritten: 1969-12-31 21:00:00
LastWritten: 2010-09-23 23:13:53 <- Clearly, THE oldest tape.
LabelDate: 2010-09-21 09:11:28
VolJobs: 0
VolFiles: 0
VolBlocks: 0
VolMounts: 11
VolBytes: 1
VolErrors: 0
VolWrites: 19,940,451
VolCapacityBytes: 0
VolStatus: Used
Enabled: 1
Recycle: 1
VolRetention: 1,296,000
VolUseDuration: 604,800
MaxVolJobs: 0
MaxVolFiles: 0
MaxVolBytes: 0
InChanger: 0
EndFile: 444
EndBlock: 4,462
VolParts: 0
LabelType: 0
StorageId: 1
DeviceId: 0
LocationId: 0
RecycleCount: 3
InitialWrite: 0000-00-00 00:00:00
ScratchPoolId: 0
RecyclePoolId: 0
Comment: NULL
*llist volume=W001
MediaId: 20
VolumeName: W001
Slot: 0
PoolId: 3
MediaType: LTO-3
FirstWritten: 1969-12-31 21:00:00
LastWritten: 2010-09-30 23:11:20 <-Not the oldest tape
LabelDate: 2010-09-27 23:05:00
VolJobs: 0
VolFiles: 0
VolBlocks: 0
VolMounts: 7
VolBytes: 1
VolErrors: 0
VolWrites: 7,024,038
VolCapacityBytes: 0
VolStatus: Recycle
Enabled: 1
Recycle: 1
VolRetention: 1,296,000
VolUseDuration: 604,800
MaxVolJobs: 0
MaxVolFiles: 0
MaxVolBytes: 0
InChanger: 0
EndFile: 446
EndBlock: 5,798
VolParts: 0
LabelType: 0
StorageId: 1
DeviceId: 0
LocationId: 0
RecycleCount: 2
InitialWrite: 0000-00-00 00:00:00
ScratchPoolId: 0
RecyclePoolId: 0
Comment: NULL
So every Monday I must open bconsole and manually change back the volume status
of the next tape (in this case W001) to 'Used', so that the current tape is
correctly recycled. But I think this action could be actually provoking the
situation, but I'm not sure. I'm thinking about maybe changing 'Volume
Retention' to a longer time, 28 days for example.
Any ideas?
Rodrigo Ferraz
CONCEPT NETSERVICES
www.conceptnetservices.com
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|