View Issue Details

IDProjectCategoryView StatusLast Update
0001605bareos-coredirectorpublic2024-03-27 14:33
ReporterInt Assigned Tobruno-at-bareos  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionunable to reproduce 
PlatformLinuxOSRHEL (and clones)OS Version8
Product Version23.0.1 
Summary0001605: jobs refuse to load volumes from the default Scratch pool
DescriptionWhen a job needs a new tape volume it does not accept a volume from the Scratch pool although it is mounted in the tape drive already.
It refuses to use the tape volume with this error - some examples:

2024-02-24 20:01:03 bareos-sd JobId 35561: Warning: Director wanted Volume "NWX005L7".
Current Volume "ZKI079L7" not acceptable because:
1998 Volume "ZKI079L7" catalog status is Append, not in Pool.

2024-02-27 10:15:10 bareos-sd JobId 35567: Warning: Director wanted Volume "NWX005L7".
Current Volume "NIX460L6" not acceptable because:
1998 Volume "NIX460L6" catalog status is Append, not in Pool.


My current workaround is to move the tape volume manually from the Scratch pool to the required pool with this command sequence:

*update volume=NIX460L6 pool=Archiv_Intego_2Y
New Pool is: Archiv_Intego_2Y
*update volume=NIX460L6
12: Volume from Pool
Updating Volume "NIX460L6"
Volume defaults updated from "Archiv_Intego_2Y" Pool record.
*
*umount storage=Tape
*mount storage=Tape
Connecting to Storage daemon Tape at igms07.vision.local:9103 ...
3001 Device "tapedrive-0" (/dev/tape/by-id/scsi-35005076312156561-nst) is mounted with Volume "NIX460L6"
*


After digging into this issue a bit I think the problem is a mismatch of the pool IDs.
The Scratch pool has poolid: 1
but in the pool "Archiv_Intego_2Y" and all other pools the scratch pool is referenced with scratchpoolid: 0

I configured the option "Scratch Pool = Scratch" in the pool config explicit
and issued the command "update pool=Archiv_Intego_2Y" but in the pool the scratch pool is still referenced with scratchpoolid: 0
Additional Information
*llist volume=NIX460L6
Using Catalog "MyCatalog"
mediaid: 994
volumename: NIX460L6
slot: 0
poolid: 1
pool: Scratch
mediatype: LTO
firstwritten:
lastwritten:
labeldate: 2024-02-22 14:38:12
voljobs: 0
volfiles: 0
volblocks: 0
volmounts: 0
volbytes: 64,512
volerrors: 0
volwrites: 0
volcapacitybytes: 0
volstatus: Append
enabled: 1
recycle: 1
volretention: 1
voluseduration: 0
maxvoljobs: 0
maxvolfiles: 0
maxvolbytes: 0
inchanger: 0
endfile: 0
endblock: 0
labeltype: 0
storageid: 1
deviceid: 0
locationid: 0
recyclecount: 0
initialwrite:
scratchpoolid: 0
scratchpool:
recyclepoolid: 0
recyclepool:
comment:
storage: Tape

*
*llist pool=Scratch
poolid: 1
name: Scratch
numvols: 11
maxvols: 0
useonce: 0
usecatalog: 1
acceptanyvolume: 0
volretention: 1
voluseduration: 0
maxvoljobs: 0
maxvolbytes: 0
autoprune: 1
recycle: 1
pooltype: Scratch
labelformat: *
enabled: 1
scratchpoolid: 0
recyclepoolid: 0
labeltype: 0

*
*llist pool=Archiv_Intego_2Y
poolid: 13
name: Archiv_Intego_2Y
numvols: 72
maxvols: 0
useonce: 0
usecatalog: 1
acceptanyvolume: 0
volretention: 63,072,000
voluseduration: 432,000
maxvoljobs: 0
maxvolbytes: 0
autoprune: 1
recycle: 1
pooltype: Backup
labelformat: *
enabled: 1
scratchpoolid: 0
recyclepoolid: 0
labeltype: 0


Pool {
  Name = Archiv_Intego_2Y
  Storage = Tape
  Pool Type = Backup
  Recycle = yes # Bareos can automatically recycle Volumes
  AutoPrune = yes # Prune expired volumes
  Scratch Pool = Scratch
  Recycle Pool = Scratch
  Volume Retention = 2 years # How long should the Full Backups be kept? (0000006)
  MaximumBlockSize = 1048576
  Volume Use Duration = 5 days # speciļ¬es the maximum time that jobs can be written to the Volume after first write. 1 Weekend to complete archive job + extra time should manual intervention be necessary on Monday
}
TagsNo tags attached.

Activities

Int

Int

2024-03-01 06:44

reporter   ~0005823

I changed the Storage of pool "Archiv_Intego_2Y" from
Storage = Tape
to
Storage = Autochanger
and this seems to have fixed the scratchpoolid.

*llist pool=Archiv_Intego_2Y
now shows the correct ids:
scratchpoolid: 1
recyclepoolid: 1

And mysteriosly this seems to have fixed also all other pools although I did not change the Storage option on them.
They all show the correct ids now.

But I did not test yet if picking a tape from the Scratch pool is working correctly now.
Int

Int

2024-03-12 09:41

reporter   ~0005829

Although the pool now shows the correct ids for the scratch pool the the issue persists.

Jobs still refuse to pick a tape from the scratch pool:

2024-03-12 09:30:23 bareos-sd JobId 35797: Warning: Director wanted Volume "NIX396L6".
Current Volume "NIX461L6" not acceptable because:
1998 Volume "NIX461L6" catalog status is Append, not in Pool.
bruno-at-bareos

bruno-at-bareos

2024-03-27 14:33

manager   ~0005872

While we tried to contact you several times per email and didn't get any return, we won't work on any issue opened by you before you contact our sales department.

Issue History

Date Modified Username Field Change
2024-02-27 14:45 Int New Issue
2024-03-01 06:44 Int Note Added: 0005823
2024-03-12 09:41 Int Note Added: 0005829
2024-03-27 14:33 bruno-at-bareos Assigned To => bruno-at-bareos
2024-03-27 14:33 bruno-at-bareos Status new => closed
2024-03-27 14:33 bruno-at-bareos Resolution open => unable to reproduce
2024-03-27 14:33 bruno-at-bareos Note Added: 0005872