Enterprise LTO9 tapes are cool, but if you buy them in stocks of 1,000, or even 2,000, you potentially need [weeks](https://www.ibm.com/docs/en/ts4500-tape-library?topic=drives-media-optimization) before using them.
Connect the Tape Library to a Linux server using SAS or FiberChannel (I only have tested FC), then run `lsscsi -g | grep medium` to get the special device of the changer, which will be something like `/dev/sgX`.
Then you can run the command:
`optimizer.sh </dev/sgX> <parallelism>`
Where 'parallelism' is a number, which can be equal to the number of the drives of the library/partition.
The script takes **long** pauses to avoid too many load/unload commands, so... be patient.