[This is preliminary documentation and subject to change.]
RSM might reset deallocated media to allocated when the RSM database is restored with an older copy during a disaster recovery. You can prepare for this by designing your application to periodically enumerate the LMIDs in each media pool and deallocate any media that you no longer need.
For more information about disaster recovery see Disaster Recovery.