Absolutely fantastic - thank you Dominik! With that patch I was able to write to a tape with no problems:
Code:
2025-04-16T09:02:26-05:00: Starting tape backup job 'test-store:test-single-tape-pool:lto0_01:test-store-single-tape'
2025-04-16T09:02:26-05:00: update media online status
2025-04-16T09:02:26-05:00: media set uuid: 94757cdd-c20f-4e7b-bfb2-35f7e4db0591
2025-04-16T09:02:26-05:00: found 1 groups (out of 1 total)
2025-04-16T09:02:26-05:00: latest-only: true (only considering latest snapshots)
2025-04-16T09:02:26-05:00: backup snapshot "vm/101/2025-04-15T15:28:23Z"
2025-04-16T09:02:26-05:00: allocated new writable media 'CJP180L8'
2025-04-16T09:02:26-05:00: trying to load media 'CJP180L8' into drive 'lto0_01'
2025-04-16T09:03:07-05:00: could not set encryption mode on drive: decode data encryption caps page failed - drive does not support setting AES-GCM encryption, ignoring.
2025-04-16T09:03:07-05:00: found media label CJP180L8 (23460ce5-68bf-4c29-8d6b-f4610748f83b)
2025-04-16T09:03:07-05:00: moving to end of media
2025-04-16T09:03:07-05:00: arrived at end of media
2025-04-16T09:03:13-05:00: wrote 970 chunks (1042.02 MB at 153.91 MB/s)
2025-04-16T09:03:13-05:00: end backup test-store:"vm/101/2025-04-15T15:28:23Z"
2025-04-16T09:03:13-05:00: percentage done: 100.00% (1/1 snapshots)
2025-04-16T09:03:16-05:00: append media catalog
2025-04-16T09:03:16-05:00: rewind media
2025-04-16T09:04:23-05:00: exported media 'CJP180L8' to import/export slot 24
2025-04-16T09:04:23-05:00: queued notification (id=6cb72bf8-9704-4085-9a2d-d5d1150ecce9)
2025-04-16T09:04:23-05:00: TASK OK
I also saw your note in the mailing list response about not being able to read labels:
Note that in contrast to normal operation, the tape label will also be
encrypted then and will not be readable in case the encryption key is
lost or changed.
And that's definitely something we've been keeping in mind but bears repeating to anyone else reading this thread down the line: When the library is managing its keys the encryption becomes completely transparent to PBS, which means
backing up those keys becomes critical. As part of the MSL Encryption Kit from HPE we received two identical key storage units, and their instructions state specifically to keep them mirrored and keep one offsite.
That sidebar for posterity over, I deleted the snapshot from the datastore and went to restore, forgetting that I needed to move the tape from the import/export slot first:
Code:
2025-04-16T09:32:12-05:00: Mediaset '94757cdd-c20f-4e7b-bfb2-35f7e4db0591'
2025-04-16T09:32:12-05:00: Pool: test-single-tape-pool
2025-04-16T09:32:12-05:00: Datastore(s): test-store
2025-04-16T09:32:12-05:00: Drive: lto0_01
2025-04-16T09:32:12-05:00: Required media list: CJP180L8
2025-04-16T09:32:12-05:00: trying to load media 'CJP180L8' into drive 'lto0_01'
2025-04-16T09:32:12-05:00: Unit Attention, Additional sense: Import or export element accessed
2025-04-16T09:32:13-05:00: could not load tape into drive - unable to load media 'CJP180L8' - inside import/export slot
2025-04-16T09:32:13-05:00: Please insert media 'CJP180L8' into changer 'tape_library01'
2025-04-16T09:32:13-05:00: queued notification (id=b43217d8-f9b3-4731-af6b-0031bdb7ecb8)
2025-04-16T09:34:12-05:00: could not set encryption mode on drive: decode data encryption caps page failed - drive does not support setting AES-GCM encryption, ignoring.
2025-04-16T09:34:12-05:00: found media label CJP180L8 (23460ce5-68bf-4c29-8d6b-f4610748f83b)
2025-04-16T09:34:12-05:00: File 2: chunk archive for datastore 'test-store'
2025-04-16T09:34:16-05:00: restored 0 B (0 B/s)
2025-04-16T09:34:16-05:00: register 970 chunks
2025-04-16T09:34:16-05:00: File 3: snapshot archive test-store:vm/101/2025-04-15T15:28:23Z
2025-04-16T09:34:16-05:00: restore snapshot vm/101/2025-04-15T15:28:23Z
2025-04-16T09:34:16-05:00: File 4: skip catalog '23460ce5-68bf-4c29-8d6b-f4610748f83b'
2025-04-16T09:34:16-05:00: detected EOT after 5 files
2025-04-16T09:34:16-05:00: Restore mediaset '94757cdd-c20f-4e7b-bfb2-35f7e4db0591' done
2025-04-16T09:34:16-05:00: TASK WARNINGS: 1
And sure enough, the backup shows up right where it should, with PVE picking it up as well. The only way to streamline this process would be some sort of "When media is inserted into import/export slot, move it into a free spot in the library" rule, but that's incredibly minor and not part of this.
Thank you again, Dominik! I'm consistently amazed at how easy Proxmox has made this entire process - not just the tape backup side of things, but the entire setup of and migration to our new stack. I can't tell you how much we appreciate the quick response on getting our tape library up and running within our regulatory requirements. Again, thanks, and as always please let us know if you'd like to use our unit for testing over the next few weeks as we finish commissioning the system.