Today, being the first Sunday of the month, full backups are underway. The original problem has returned.
06-Sep 07:05 crey-sd JobId 216727: New volume "FullAuto-3234" mounted on device "vDrive-2" (/usr/local/bacula/volumes) at 06-Sep-2015 07:05.
06-Sep 07:09 crey-sd JobId 216721: End of medium on Volume "FullAuto-3233" Bytes=5,368,688,700 Blocks=83,220 at 06-Sep-2015 07:09.
06-Sep 07:09 bacula-dir JobId 216721: There are no more Jobs associated with Volume "FullAuto-3235". Marking it purged.
06-Sep 07:09 bacula-dir JobId 216721: All records pruned from Volume "FullAuto-3235"; marking it "Purged"
06-Sep 07:09 bacula-dir JobId 216721: Recycled volume "FullAuto-3235"
06-Sep 07:09 crey-sd JobId 216721: Recycled volume "FullAuto-3235" on file device "vDrive-3" (/usr/local/bacula/volumes), all previous data lost.
06-Sep 07:09 crey-sd JobId 216721: New volume "FullAuto-3235" mounted on device "vDrive-3" (/usr/local/bacula/volumes) at 06-Sep-2015 07:09.
06-Sep 07:13 crey-sd JobId 216727: End of medium on Volume "FullAuto-3234" Bytes=5,368,688,757 Blocks=83,220 at 06-Sep-2015 07:13.
06-Sep 07:14 crey-sd JobId 216727: Job zuul_jail_snapshots.2015-09-06_03.05.47_33 is waiting. Cannot find any appendable volumes.
Please use the "label" command to create a new Volume for:
Storage: "vDrive-2" (/usr/local/bacula/volumes)
Pool: FullFile
Media type: File
06-Sep 07:19 crey-sd JobId 216721: End of medium on Volume "FullAuto-3235" Bytes=5,368,688,722 Blocks=83,220 at 06-Sep-2015 07:19.
06-Sep 07:20 crey-sd JobId 216721: Job slocum_jail_snapshots.2015-09-06_03.05.17_27 is waiting. Cannot find any appendable volumes.
Please use the "label" command to create a new Volume for:
Storage: "vDrive-3" (/usr/local/bacula/volumes)
Pool: FullFile
Media type: File
...
I amended the pool definition, increasing 'Maximum Volumes'. In bconsole, I issued a reload and:
$ bconsole
1000 OK: 1 bacula-dir Version: 7.0.5 (28 July 2014)
Enter a period to cancel a command.
*m
You have no messages.
*reload
*m
You have no messages.
*mount
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
The defined Storage resources are:
1: CreyFile
2: CreyFileRestore
3: CompaqStorageWorksTapeLibrary
Select Storage resource (1-3): 1
Enter autochanger drive[0]:
Enter autochanger slot:
3906 File device ""vDrive-0" (/usr/local/bacula/volumes)" is always mounted.
*m
You have no messages.
*m
06-Sep 11:54 bacula-dir JobId 216721: Created new Volume="FullAuto-4875", Pool="FullFile", MediaType="File" in catalog.
06-Sep 11:54 bacula-dir JobId 0: Max configured use duration=86,400 sec. exceeded. Marking Volume "TwoHourly-4395" as Used.
06-Sep 11:54 crey-sd JobId 216721: Warning: mount.c:212 Open of file device "vDrive-3" (/usr/local/bacula/volumes) Volume "FullAuto-4875" failed: ERR=file_dev.c:172 Could not open(/usr/local/bacula/volumes/FullAuto-4875,OPEN_READ_WRITE,0640): ERR=No such file or directory
06-Sep 11:54 crey-sd JobId 216721: Warning: mount.c:212 Open of file device "vDrive-3" (/usr/local/bacula/volumes) Volume "FullAuto-4875" failed: ERR=file_dev.c:172 Could not open(/usr/local/bacula/volumes/FullAuto-4875,OPEN_READ_WRITE,0640): ERR=No such file or directory
06-Sep 11:54 crey-sd JobId 216721: Warning: mount.c:212 Open of file device "vDrive-3" (/usr/local/bacula/volumes) Volume "FullAuto-4875" failed: ERR=file_dev.c:172 Could not open(/usr/local/bacula/volumes/FullAuto-4875,OPEN_READ_WRITE,0640): ERR=No such file or directory
06-Sep 11:54 crey-sd JobId 216721: Warning: mount.c:212 Open of file device "vDrive-3" (/usr/local/bacula/volumes) Volume "FullAuto-4875" failed: ERR=file_dev.c:172 Could not open(/usr/local/bacula/volumes/FullAuto-4875,OPEN_READ_WRITE,0640): ERR=No such file or directory
It is having a similar problem with another volume creation:
06-Sep 11:00 crey-sd JobId 216727: Job zuul_jail_snapshots.2015-09-06_03.05.47_33 is waiting. Cannot find any appendable volumes.
Please use the "label" command to create a new Volume for:
Storage: "vDrive-2" (/usr/local/bacula/volumes)
Pool: FullFile
Media type: File
06-Sep 11:55 bacula-dir JobId 216727: Created new Volume="FullAuto-4876", Pool="FullFile", MediaType="File" in catalog.
06-Sep 11:55 crey-sd JobId 216727: Warning: mount.c:212 Open of file device "vDrive-2" (/usr/local/bacula/volumes) Volume "FullAuto-4876" failed: ERR=file_dev.c:172 Could not open(/usr/local/bacula/volumes/FullAuto-4876,OPEN_READ_WRITE,0640): ERR=No such file or directory
I have confirmed the Catalog contains the Volume:
bacula=# select mediaid, mediatype from media where volumename = 'FullAuto-4875';
mediaid | mediatype
---------+-----------
4875 | File
(1 row)
However, it is not on disk:
[dan@crey:~] $ ls -ld /usr/local/bacula/volumes
drwxr-xr-x 3 bacula bacula 2706 Aug 30 11:22 /usr/local/bacula/volumes
[dan@crey:~] $
$ ls -ld /usr/local/bacula/volumes/FullAuto-487*
ls: /usr/local/bacula/volumes/FullAuto-487*: No such file or directory
Disk space seems to not be the cause:
[dan@crey:~] $ df -h
Filesystem Size Used Avail Capacity Mounted on
system/usr/jails/crey 3.8T 820M 3.8T 0% /
Then I tried another mount, this time, with incorrect values:
*mount
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
The defined Storage resources are:
1: CreyFile
2: CreyFileRestore
3: CompaqStorageWorksTapeLibrary
Select Storage resource (1-3): 1
Enter autochanger drive[0]: 2
Enter autochanger slot: 2
3001 OK mount requested. Specified slot ignored. Device="vDrive-2" (/usr/local/bacula/volumes)
You have messages.
*m
06-Sep 13:03 crey-sd JobId 216727: Labeled new Volume "FullAuto-4876" on file device "vDrive-2" (/usr/local/bacula/volumes).
06-Sep 13:03 crey-sd JobId 216727: Wrote label to prelabeled Volume "FullAuto-4876" on file device "vDrive-2" (/usr/local/bacula/volumes)
06-Sep 13:03 crey-sd JobId 216727: New volume "FullAuto-4876" mounted on device "vDrive-2" (/usr/local/bacula/volumes) at 06-Sep-2015 13:03.
*
But it continued to have trouble with FullAuto-4875
So I tried this, which failed:
*mount
The defined Storage resources are:
1: CreyFile
2: CreyFileRestore
3: CompaqStorageWorksTapeLibrary
Select Storage resource (1-3): 1
Enter autochanger drive[0]: 2
Enter autochanger slot: 2
3906 File device ""vDrive-2" (/usr/local/bacula/volumes)" is always mounted.
*m
06-Sep 13:39 crey-sd JobId 216721: Warning: mount.c:212 Open of file device "vDrive-3" (/usr/local/bacula/volumes) Volume "FullAuto-4875" failed: ERR=file_dev.c:172 Could not open(/usr/local/bacula/volumes/FullAuto-4875,OPEN_READ_WRITE,0640): ERR=No such file or directory
Try a different approach:
*mount
The defined Storage resources are:
1: CreyFile
2: CreyFileRestore
3: CompaqStorageWorksTapeLibrary
Select Storage resource (1-3): 2
3906 File device ""Restore-Drive" (/usr/local/bacula/volumes)" is always mounted.
No, that didn't mount.
BUT THEN THIS WORKED:
*mount
The defined Storage resources are:
1: CreyFile
2: CreyFileRestore
3: CompaqStorageWorksTapeLibrary
Select Storage resource (1-3): 1
Enter autochanger drive[0]: 3
Enter autochanger slot: 2
3001 OK mount requested. Specified slot ignored. Device="vDrive-3" (/usr/local/bacula/volumes)
*m
You have no messages.
*m
You have no messages.
*m
06-Sep 13:39 crey-sd JobId 216721: Labeled new Volume "FullAuto-4875" on file device "vDrive-3" (/usr/local/bacula/volumes).
06-Sep 13:39 crey-sd JobId 216721: Wrote label to prelabeled Volume "FullAuto-4875" on file device "vDrive-3" (/usr/local/bacula/volumes)
06-Sep 13:39 crey-sd JobId 216721: New volume "FullAuto-4875" mounted on device "vDrive-3" (/usr/local/bacula/volumes) at 06-Sep-2015 13:39.
*