Duplicate tape in Media Set

jamarsa

Active Member
Mar 31, 2020
23
0
41
62
Hello, we are using Proxmox Backup (currently 2.4-4, soon to change that when new hardware arrives), which is connected to a tape library, and also to an external drive.
In the media library we do daily backups. The external one is used as a failsafe in case of failure of the library, and to keep it verified we make a second backup twice a week, with a different mediaset of tapes, that we take out of the office.

So far, all was working perfectly. But today we decided to transfer the external drive to another computer, so we inserted the external mediaset in the tape library, and edited the backup jobs to use the tape library instead.

To our surprise, PBS inserted the correct tape cartridge EXT011L8 in the mediaset, but complained that it was the 'wrong' tape with label EXT011L8 and that we must supply EXT011L8 instead. Also, it marked that tape as full.

Looking at the inventory, in the graphical interface shows that the mediaset comprises the same three tapes, but the output of proxmox-tape media list shows four tapes instead, two of them EXT011L8, with the same media-set name and media-set uuid, but with different tape uuid and seq number.

Code:
proxmox-tape media list --output-format json-pretty --pool EXTERNAL_ALT
[
  {
    "catalog": true,
    "ctime": 1720457026,
    "expired": false,
    "label-text": "EXT011L8",
    "location": "offline",
    "media-set-ctime": 1763711837,
    "media-set-name": "Mon Nov  3 08:08:02 2025",
    "media-set-uuid": "af8e8b82-0086-48cc-a500-fc0a5cf611e8",
    "pool": "EXTERNAL_ALT",
    "seq-nr": 2,
    "status": "writable",
    "uuid": "1abda109-6563-451e-8958-8d9b619f438c"
  },
  {
    "catalog": true,
    "ctime": 1731307793,
    "expired": false,
    "label-text": "EXT012L8",
    "location": "offline",
    "media-set-ctime": 1762153682,
    "media-set-name": "Mon Nov  3 08:08:02 2025",
    "media-set-uuid": "af8e8b82-0086-48cc-a500-fc0a5cf611e8",
    "pool": "EXTERNAL_ALT",
    "seq-nr": 0,
    "status": "full",
    "uuid": "5d19717e-da04-445b-a4f9-4cb2ee408ed3"
  },
  {
    "catalog": true,
    "ctime": 1745869119,
    "expired": true,
    "label-text": "I00002L8",
    "location": "offline",
    "media-set-ctime": 1758097563,
    "media-set-name": "b0e7169d-5671-40ec-ad01-00bfca1ad876",
    "media-set-uuid": "b0e7169d-5671-40ec-ad01-00bfca1ad876",
    "pool": "EXTERNAL_ALT",
    "seq-nr": 1,
    "status": "full",
    "uuid": "ca124d88-3547-4703-a37e-0cd5ae7bdcb2"
  },
  {
    "catalog": true,
    "ctime": 1741593637,
    "expired": false,
    "label-text": "EXT011L8",
    "location": "offline",
    "media-set-ctime": 1762939605,
    "media-set-name": "Mon Nov  3 08:08:02 2025",
    "media-set-uuid": "af8e8b82-0086-48cc-a500-fc0a5cf611e8",
    "pool": "EXTERNAL_ALT",
    "seq-nr": 1,
    "status": "full",
    "uuid": "d71c1770-84c5-4c6a-bda5-aa384b14d378"
  }
]

Is there any method to correct this without destroying the entire mediaset?
 
Last edited: