[SOLVED] force PBS to use certain tape / tape order mixed up

fl0moto

New Member
Jun 3, 2024
4
1
3
Hi,
I somehow mixed up the order of our weekly tapes, hence the situation currently looks like this:

Code:
root@spb002:~# proxmox-tape pool list
┌──────────────────────┬────────────┬───────────┬──────────┬─────────┐
│ name                 │ allocation │ retention │ template │ encrypt │
╞══════════════════════╪════════════╪═══════════╪══════════╪═════════╡
│ Wochenbaender_spb002 │ always     │ 4 weeks   │          │ yes     │
└──────────────────────┴────────────┴───────────┴──────────┴─────────┘
root@spb002:~# proxmox-tape media list
┌──────────────┬──────────────────────┬──────────────────────────┬────────┬─────────┬──────────┬─────────┬──────────────────────────────────────┬──────────────────────────────────────┐
│ label-text   │ pool                 │ media-set-name           │ seq-nr │ status  │ location │ catalog │ uuid                                 │ media-set-uuid                       │
╞══════════════╪══════════════════════╪══════════════════════════╪════════╪═════════╪══════════╪═════════╪══════════════════════════════════════╪══════════════════════════════════════╡
│ Wochenband04 │ Wochenbaender_spb002 │ Mon Jun 23 09:15:00 2025 │      0 │ expired │ offline  │      ok │ 6f7a53ef-b38f-4fb1-bc83-e2b4a865199f │ 076ed32c-1399-4797-98e3-a6353a5ca1e3 │
├──────────────┼──────────────────────┼──────────────────────────┼────────┼─────────┼──────────┼─────────┼──────────────────────────────────────┼──────────────────────────────────────┤
│ Wochenband05 │ Wochenbaender_spb002 │ Mon Jun 30 09:15:00 2025 │      0 │ expired │ offline  │      ok │ 5235f3b6-0903-4460-b087-544d36e321cc │ 128d2524-5f95-403e-baf3-e57c2b85d3e8 │
├──────────────┼──────────────────────┼──────────────────────────┼────────┼─────────┼──────────┼─────────┼──────────────────────────────────────┼──────────────────────────────────────┤
│ Wochenband03 │ Wochenbaender_spb002 │ Mon Jun 16 09:15:00 2025 │      0 │ expired │ offline  │      ok │ 6e851232-b0dc-4dc3-b6d8-d105b45e6d89 │ 2137dbdb-4e61-4622-86e7-0567cc73ffb4 │
├──────────────┼──────────────────────┼──────────────────────────┼────────┼─────────┼──────────┼─────────┼──────────────────────────────────────┼──────────────────────────────────────┤
│ Wochenband07 │ Wochenbaender_spb002 │ Mon Jul 14 09:15:00 2025 │      0 │ full    │ offline  │      ok │ 2057f2fe-6a66-4b3b-ba4b-8dcf99da3d16 │ 2a7776b3-1be3-4cbe-ab71-5824e81a721a │
├──────────────┼──────────────────────┼──────────────────────────┼────────┼─────────┼──────────┼─────────┼──────────────────────────────────────┼──────────────────────────────────────┤
│ Wochenband01 │ Wochenbaender_spb002 │ Tue Jun 10 09:16:58 2025 │      0 │ expired │ offline  │      ok │ 81914d7d-4303-4732-bc04-985b69a27430 │ 4a4566e2-de4e-4747-9d3f-1b430f99f289 │
├──────────────┼──────────────────────┼──────────────────────────┼────────┼─────────┼──────────┼─────────┼──────────────────────────────────────┼──────────────────────────────────────┤
│ Wochenband02 │ Wochenbaender_spb002 │ Mon Jul 28 09:15:00 2025 │      0 │ full    │ offline  │      ok │ a0ec0b97-410c-4f23-8160-362ce3b37347 │ 57754725-c512-40ef-a24a-9c1eb2bc63cb │
├──────────────┼──────────────────────┼──────────────────────────┼────────┼─────────┼──────────┼─────────┼──────────────────────────────────────┼──────────────────────────────────────┤
│ Wochenband06 │ Wochenbaender_spb002 │ Mon Jul  7 09:15:00 2025 │      0 │ full    │ offline  │      ok │ 1eadb96e-7eb0-42f8-8e7b-5989d20611f9 │ 7e070026-985e-48d3-abee-25000e92b5a8 │
├──────────────┼──────────────────────┼──────────────────────────┼────────┼─────────┼──────────┼─────────┼──────────────────────────────────────┼──────────────────────────────────────┤
│ Wochenband08 │ Wochenbaender_spb002 │ Mon Jul 21 09:15:00 2025 │      0 │ full    │ offline  │      ok │ 20fac2c1-a75b-4f21-997b-7c63ab9b8f1f │ ab303be4-5ae0-49fd-a412-80371442fb10 │
└──────────────┴──────────────────────┴──────────────────────────┴────────┴─────────┴──────────┴─────────┴──────────────────────────────────────┴──────────────────────────────────────┘
root@spb002:~# proxmox-tape backup-job list
┌─────┬──────────────────┬──────────────────────┬──────────────┬───────────┬──────────────────────────┬──────────────────┬────────────────────────────────┐
│ id  │ store            │ pool                 │ drive        │ schedule  │                 next-run │ next-media-label │ comment                        │
╞═════╪══════════════════╪══════════════════════╪══════════════╪═══════════╪══════════════════════════╪══════════════════╪════════════════════════════════╡
│ 100 │ Datenverzeichnis │ Wochenbaender_spb002 │ Bandlaufwerk │ mon 09:15 │ Mon Aug  4 09:15:00 2025 │ Wochenband01     │ Woechentliche Sicherung SPB002 │
└─────┴──────────────────┴──────────────────────┴──────────────┴───────────┴──────────────────────────┴──────────────────┴────────────────────────────────┘
root@spb002:~#

with ascending date:
Code:
Wochenband01 │ Wochenbaender_spb002 │ Tue Jun 10 09:16:58 2025 │      0 │ expired │ offline  │      ok │ 81914d7d-4303-4732-bc04-985b69a27430 │ 4a4566e2-de4e-4747-9d3f-1b430f99f289
Wochenband03 │ Wochenbaender_spb002 │ Mon Jun 16 09:15:00 2025 │      0 │ expired │ offline  │      ok │ 6e851232-b0dc-4dc3-b6d8-d105b45e6d89 │ 2137dbdb-4e61-4622-86e7-0567cc73ffb4
Wochenband04 │ Wochenbaender_spb002 │ Mon Jun 23 09:15:00 2025 │      0 │ expired │ offline  │      ok │ 6f7a53ef-b38f-4fb1-bc83-e2b4a865199f │ 076ed32c-1399-4797-98e3-a6353a5ca1e3
Wochenband05 │ Wochenbaender_spb002 │ Mon Jun 30 09:15:00 2025 │      0 │ expired │ offline  │      ok │ 5235f3b6-0903-4460-b087-544d36e321cc │ 128d2524-5f95-403e-baf3-e57c2b85d3e8
Wochenband06 │ Wochenbaender_spb002 │ Mon Jul  7 09:15:00 2025 │      0 │ full    │ offline  │      ok │ 1eadb96e-7eb0-42f8-8e7b-5989d20611f9 │ 7e070026-985e-48d3-abee-25000e92b5a8
Wochenband07 │ Wochenbaender_spb002 │ Mon Jul 14 09:15:00 2025 │      0 │ full    │ offline  │      ok │ 2057f2fe-6a66-4b3b-ba4b-8dcf99da3d16 │ 2a7776b3-1be3-4cbe-ab71-5824e81a721a
Wochenband08 │ Wochenbaender_spb002 │ Mon Jul 21 09:15:00 2025 │      0 │ full    │ offline  │      ok │ 20fac2c1-a75b-4f21-997b-7c63ab9b8f1f │ ab303be4-5ae0-49fd-a412-80371442fb10
Wochenband02 │ Wochenbaender_spb002 │ Mon Jul 28 09:15:00 2025 │      0 │ full    │ offline  │      ok │ a0ec0b97-410c-4f23-8160-362ce3b37347 │ 57754725-c512-40ef-a24a-9c1eb2bc63cb

I wanted to use Wochenband01 last Monday, but PBS forced me to use Wochenband02.
I assume it will ask me to use Wochenband01 next Monday as it's the oldest, expired tape (after reading again, I noticed the backup-job list command actually tells me).

What's the right procedure for this mix up?
I've set a retention of 4 weeks, but have 8 tapes, so I could simply not use Wochenband01 for a while.
By setting its status to retired, PBS shouldn't ask for that tape anymore.

After some time, Wochenband 03, 04, 05, 06, 07, 08 will be used.
If I then reset Wochenband01 via "clear status", will it be the one that will be used first?

I appreciate any information or other approaches
Thank you!
 
Last edited:
Hi,
(...)
... I could simply not use Wochenband01 for a while.
By setting its status to retired, PBS shouldn't ask for that tape anymore.

After some time, Wochenband 03, 04, 05, 06, 07, 08 will be used.
If I then reset Wochenband01 via "clear status", will it be the one that will be used first?

I appreciate any information or other approaches
Thank you!

I did set the status of Wochenband01 to "retired" via the GUI and waited.
The latest backup was written on Wochenband08,I reset the status of band01.
It changed its status to expired, is the tape with the oldest backup and will be used next week.
Everything is back in order.
 
  • Like
Reactions: p-user