View Issue Details

IDProjectCategoryView StatusLast Update
0000320bareos-core[All Projects] directorpublic2014-07-18 22:07
ReporterholtkampAssigned To 
PrioritynormalSeverityminorReproducibilityalways
Status acknowledgedResolutionopen 
Product Version 
Fixed in Version 
Summary0000320: Lots of volumes reserved after Drive gets available
DescriptionWhen you start jobs and forgot to mount the tape drive (user unmounted) and then mount it, it will take all the tapes from the Scratch pool...
Steps To Reproduce1) Have a scratch pool with empty tapes
2) unmount tapedrive
3) start jobs that need a tape to write to
4) mount tapedrive
5) This happens:
16-Jul 19:23 backup.mb-dir JobId 12979: Using Volume "000261L5" from 'Scratch' pool.
16-Jul 19:23 backup.mb-dir JobId 12979: Using Volume "000262L5" from 'Scratch' pool.
16-Jul 19:23 backup.mb-dir JobId 12979: Using Volume "000263L5" from 'Scratch' pool.
16-Jul 19:23 backup.mb-dir JobId 12979: Using Volume "000264L5" from 'Scratch' pool.
16-Jul 19:23 backup.mb-dir JobId 12979: Using Volume "000265L5" from 'Scratch' pool.
16-Jul 19:23 backup.mb-dir JobId 12979: Using Volume "000267L5" from 'Scratch' pool.
16-Jul 19:23 backup.mb-dir JobId 12979: Using Volume "000268L5" from 'Scratch' pool.
16-Jul 19:23 backup.mb-dir JobId 12979: Using Volume "000269L5" from 'Scratch' pool.
16-Jul 19:23 backup.mb-dir JobId 12979: Using Volume "000270L5" from 'Scratch' pool.
16-Jul 19:23 backup.mb-dir JobId 12979: Using Volume "000271L5" from 'Scratch' pool.
16-Jul 19:23 backup.mb-dir JobId 12979: Using Volume "000272L5" from 'Scratch' pool.
16-Jul 19:23 backup.mb-dir JobId 12979: Using Volume "000273L5" from 'Scratch' pool.
16-Jul 19:23 backup.mb-dir JobId 12979: Using Volume "000274L5" from 'Scratch' pool.
16-Jul 19:23 backup.mb-dir JobId 12979: Using Volume "000275L5" from 'Scratch' pool.
16-Jul 19:23 backup.mb-dir JobId 12979: Using Volume "000276L5" from 'Scratch' pool.
16-Jul 19:23 backup.mb-dir JobId 12979: Using Volume "000277L5" from 'Scratch' pool.
16-Jul 19:23 backup.mb-dir JobId 12979: Recycled volume "000260L5"
16-Jul 19:23 backup.mb-dir JobId 12979: Using Volume "000260L5" from 'Scratch' pool.
16-Jul 19:23 backup.mb-dir JobId 12979: Using Device "TL-DRIVE-1" to write.
*list volumes pool=TL
Using Catalog "backup.mb.base.catalog"
+---------+------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten |
+---------+------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| 254 | 000260L5 | Recycle | 1 | 1 | 0 | 311,040,000 | 1 | 5 | 1 | LTO5 | 2014-07-14 14:20:24 |
| 1,847 | 000258L5 | Append | 1 | 40,053,629,952 | 287 | 311,040,000 | 1 | 3 | 1 | LTO5 | 2014-07-16 18:00:11 |
| 1,848 | 000259L5 | Append | 1 | 22,343,731,200 | 221 | 311,040,000 | 1 | 4 | 1 | LTO5 | 2014-07-16 17:58:21 |
| 1,849 | 000261L5 | Append | 1 | 64,512 | 0 | 311,040,000 | 1 | 6 | 1 | LTO5 | 0000-00-00 00:00:00 |
| 1,850 | 000262L5 | Append | 1 | 64,512 | 0 | 311,040,000 | 1 | 7 | 1 | LTO5 | 0000-00-00 00:00:00 |
| 1,851 | 000263L5 | Append | 1 | 64,512 | 0 | 311,040,000 | 1 | 8 | 1 | LTO5 | 0000-00-00 00:00:00 |
| 1,852 | 000264L5 | Append | 1 | 64,512 | 0 | 311,040,000 | 1 | 9 | 1 | LTO5 | 0000-00-00 00:00:00 |
| 1,853 | 000265L5 | Append | 1 | 64,512 | 0 | 311,040,000 | 1 | 10 | 1 | LTO5 | 0000-00-00 00:00:00 |
| 1,854 | 000267L5 | Append | 1 | 64,512 | 0 | 311,040,000 | 1 | 12 | 1 | LTO5 | 0000-00-00 00:00:00 |
| 1,855 | 000268L5 | Append | 1 | 64,512 | 0 | 311,040,000 | 1 | 13 | 1 | LTO5 | 0000-00-00 00:00:00 |
| 1,856 | 000269L5 | Append | 1 | 64,512 | 0 | 311,040,000 | 1 | 14 | 1 | LTO5 | 0000-00-00 00:00:00 |
| 1,857 | 000270L5 | Append | 1 | 64,512 | 0 | 311,040,000 | 1 | 15 | 1 | LTO5 | 0000-00-00 00:00:00 |
| 1,858 | 000271L5 | Append | 1 | 64,512 | 0 | 311,040,000 | 1 | 16 | 1 | LTO5 | 0000-00-00 00:00:00 |
| 1,859 | 000272L5 | Append | 1 | 64,512 | 0 | 311,040,000 | 1 | 17 | 1 | LTO5 | 0000-00-00 00:00:00 |
| 1,860 | 000273L5 | Append | 1 | 64,512 | 0 | 311,040,000 | 1 | 18 | 1 | LTO5 | 0000-00-00 00:00:00 |
| 1,861 | 000274L5 | Append | 1 | 64,512 | 0 | 311,040,000 | 1 | 19 | 1 | LTO5 | 0000-00-00 00:00:00 |
| 1,862 | 000275L5 | Append | 1 | 64,512 | 0 | 311,040,000 | 1 | 20 | 1 | LTO5 | 0000-00-00 00:00:00 |
| 1,863 | 000276L5 | Append | 1 | 64,512 | 0 | 311,040,000 | 1 | 21 | 1 | LTO5 | 0000-00-00 00:00:00 |
| 1,864 | 000277L5 | Append | 1 | 64,512 | 0 | 311,040,000 | 1 | 22 | 1 | LTO5 | 0000-00-00 00:00:00 |
+---------+------------+-----------+---------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
Additional InformationTested on 14.2 nightly from 14.7.2014

Basically this is just very annoying ;)
TagsNo tags attached.
bareos-master: impact
bareos-master: action
bareos-19.2: impact
bareos-19.2: action
bareos-18.2: impact
bareos-18.2: action
bareos-17.2: impact
bareos-17.2: action
bareos-16.2: impact
bareos-16.2: action
bareos-15.2: impact
bareos-15.2: action
bareos-14.2: impact
bareos-14.2: action
bareos-13.2: impact
bareos-13.2: action
bareos-12.4: impact
bareos-12.4: action

Activities

mvwieringen

mvwieringen

2014-07-18 22:07

developer   ~0000935

Each job kind of gets into a state that it wants to reserve a new tape and
it also does when there are enough tapes in the scratch pool. This is indeed
unwanted but I have no clear idea how to elegantly solve this resource starvation.
Maybe for a later redesign of the SD.

Issue History

Date Modified Username Field Change
2014-07-16 19:29 holtkamp New Issue
2014-07-18 22:07 mvwieringen Note Added: 0000935
2014-07-18 22:07 mvwieringen Status new => acknowledged