Actually, 9.0.4: truncate is re-truncating files that have already been truncated.
ID0002338: This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
---
| **Id** | **Project** | **Category** | **View** | **Due Date** | **Updated** |
| --- | --- | --- | --- | --- | --- |
| ID0002338 | Bacula Bug Reports | Director | public | 2017-10-15 | 2017-10-29 |
| | | | | | |
| --- | --- | --- | --- | --- | --- |
| **Reporter** | lrosenman | **Assigned To** | - | **Resolution** | fixed |
| **Priority** | normal | **Severity** | minor | **Reproducibility** | always |
| **Platform** | - | **OS** | - | **OS Version** | - |
| **Product Version** | - |
Description
see my posts on bacula-users, but basically I have the following in my BackupCatalog job:
Console = "prune expired volume yes"
Console = "truncate allpools"
in 7.0.x, this would just truncate the newly pruned volumes. in 9.0.x, this truncates ALL of the 9.0.x pruned volumes EVERY night.
the 7.0.x truncated files are 197 bytes:
-rw-r----- 1 bacula bacula 197 Aug 30 00:05 LERCTR-0162
the 9.0.x truncated files are 229 bytes:
-rw-r----- 1 bacula bacula 229 Oct 15 00:39 LERCTR-0204
From today's run:
15-Oct 00:39 borg-dir JobId 0: Automatically selected Catalog: MyCatalog
15-Oct 00:39 borg-dir JobId 0: Using Catalog "MyCatalog"
15-Oct 00:39 borg-dir JobId 0: Found 5 Job(s) associated with the Volume "LERCTR-0254" that will be pruned
15-Oct 00:39 borg-dir JobId 0: There are no more Jobs associated with Volume "LERCTR-0254". Marking it purged.
15-Oct 00:39 borg-dir JobId 0: Found 1 Job(s) associated with the Volume "LERCTR-0255" that will be pruned
15-Oct 00:39 borg-dir JobId 0: There are no more Jobs associated with Volume "LERCTR-0255". Marking it purged.
15-Oct 00:39 borg-dir JobId 0: 2 expired volumes found
15-Oct 00:39 borg-dir JobId 0: Automatically selected Storage: File
15-Oct 00:39 borg-dir JobId 0: Automatically selected Catalog: MyCatalog
15-Oct 00:39 borg-dir JobId 0: Using Catalog "MyCatalog"
15-Oct 00:39 borg-dir JobId 0: Connecting to Storage daemon File at borg.lerctr.org:9103 ...
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0195" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0195" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0251" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0251" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0246" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0246" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0207" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0207" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0223" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0223" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0240" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0240" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0244" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0244" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0230" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0230" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0248" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0248" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0199" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0199" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0235" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0235" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0225" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0225" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0238" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0238" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0250" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0250" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0196" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0196" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0218" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0218" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0226" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0226" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0232" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0232" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0243" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0243" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0237" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0237" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0206" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0206" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0193" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0193" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0233" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0233" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0189" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0189" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0213" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0213" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0188" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0188" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0219" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0219" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0239" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0239" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0200" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0200" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0253" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0253" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0221" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0221" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0224" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0224" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0204" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0204" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0241" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0241" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0255" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0255" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0211" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0211" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0208" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0208" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0236" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0236" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0201" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0201" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0209" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0209" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0254" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0254" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0190" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0190" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0252" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0252" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0228" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0228" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0194" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0194" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0249" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0249" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0242" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0242" has been truncated
15-Oct 00:39 borg-dir JobId 0: 3000 OK label. VolBytes=229 VolABytes=0 VolType=1 Volume="LERCTR-0247" Device="FileStorage" (/vault/backup/BACULA)
15-Oct 00:39 borg-dir JobId 0: The volume "LERCTR-0247" has been truncated
I would have expected the truncate to JUST truncate LERCTR-0254 and LERCTR-0255
Steps to Reproduce
run the above commands in BackupCatalog, and note how many volumes are truncated.