Scenario:
Restore a dir from a full backup job.
From the log:
bareos-sd JobId 256: Please mount read Volume "Audio-001" for:
Job: RestoreFiles.2021-04-28_14.18.25_49
Storage: "LTO7-Tape-Drive" (/dev/nst0)
Pool: Incremental
Media type: LTO-7
Problem, the Volume "Audio-001" is not or was never a member of the "Incremental" pool.
*list volumes pool=Incremental
No results to list.
But this is correct now:
*list volumes pool=AudioBackup
+---------+------------+-----------+---------+-------------------+----------+--------------+---------+------+-----------+-----------+---------------------+---------+
| mediaid | volumename | volstatus | enabled | volbytes | volfiles | volretention | recycle | slot | inchanger | mediatype | lastwritten | storage |
+---------+------------+-----------+---------+-------------------+----------+--------------+---------+------+-----------+-----------+---------------------+---------+
| 45 | Audio-001 | Append | 1 | 1,325,144,182,784 | 67 | 946,080,000 | 0 | 0 | 0 | LTO-7 | 2021-04-26 16:09:42 | Tape |
+---------+------------+-----------+---------+-------------------+----------+--------------+---------+------+-----------+-----------+---------------------+---------+
You can see, Audio-001 is a member of AudioBackup pool.
The job was started with an empty LTO drive. Get also the Email message:
28-Apr 14:18 bareos-sd JobId 256: Please mount read Volume "Audio-001" for:
Job: RestoreFiles.2021-04-28_14.18.25_49
Storage: "LTO7-Tape-Drive" (/dev/nst0)
Pool: Incremental
Media type: LTO-7
I have cenceled the job and insert the Audio-001 tape, the start the restore job again. Now it takes the right volume:
bareos-sd JobId 257: Ready to read from volume "Audio-001" on device "LTO7-Tape-Drive" (/dev/nst0).
Is this a bug or have I do a mount after interting the right tape?
But if I wouldn't know, to which pool / volume the required restoring files are belogngs, this would be a nightmare to find the right tape, when it shows me the wrong name of the pool.
Thanks for an hints, Frank