Big Blue Scratch Storage: Usage, Retention, and Cleanup Guidelines
The expensive, quick storage that makes up scratch directories is a limited resource. We are implementing this policy in order to utilize the space efficiently and have usable space for active research. Your /project and /home directories will not be affected and will continue to be routinely backed up. This policy change will only effect personal /scratch directories.
We anticipate this change could effect many users' existing scripts and old data. To learn more about proper HPC data storage, please review our training materials [here]. To setup a consulting meeting for our team to help you plan a migration, click [here].
About scratch data
Cluster scratch storage provides high-performance, temporary space for data associated with active jobs, applications, and computational workflows. It is not designed to serve as a permanent storage location for research data or other files. To maintain filesystem performance and ensure sufficient capacity for ongoing research activities, older files are periodically removed through automated cleanup processes. Scratch filesystems are optimized for speed and storage capacity rather than data protection, and are not backed up. Hardware failures or other system issues may therefore result in permanent data loss.
Any files whose loss could negatively affect your research should also be maintained in a more reliable storage location, such as your /project directory, which is regularly backed up.
Scratch data retention
Scratch storage cleanup is determined by the last access time and content modification time recorded for each individual file. Files that have not been accessed or had their contents modified within 60 days are eligible for automatic deletion. Changes to file metadata, including renaming files or adjusting permissions, will not reset this retention period. Large-scale operations that modify metadata or artificially update file timestamps without meaningful use of the files are discouraged and may result in suspension of scratch access.
Cleanup jobs run on a recurring schedule and may delete any files that have exceeded the applicable retention period when a job executes. Some files may remain on the system beyond the stated retention period, but this should not be interpreted as an extension of their availability. Once a file becomes eligible for deletion, it may be removed at any time without prior notice. Researchers should plan accordingly and maintain separate copies of any data they need to preserve.
Recommendations
The following practices can help you make effective use of scratch storage while minimizing the risk of data loss:
- Maintain a primary copy elsewhere. Keep important research data, results, and software in a more durable storage location, such as your home directory, project directory, or off-HPC storage. Use scratch for temporary working copies of data that are actively being processed.
- Stage input data before running jobs. At the beginning of a job or workflow, transfer the necessary input files from home, project, or elsewhere into scratch. This allows your jobs to benefit from scratch's high-performance storage rather than accessing data directly from archival locations.
- Transfer important results out of scratch automatically. Incorporate file transfers into your job scripts and workflows so that important outputs are copied back to your project space before a job finishes.
- Remove unnecessary files regularly. Include cleanup steps in your job scripts or perform periodic housekeeping to remove temporary files, intermediate results, and other data that is no longer needed. Keep only the files required for active work in scratch.
- Keep track of storage usage and file age. Check your scratch storage consumption periodically. Where available, use utilities such as atime to identify files approaching or meeting purge eligibility so you can move important data or remove files you no longer need.
- Build workflows with automatic deletion in mind. Design your jobs and data management practices around the assumption that scratch files may be removed once they become eligible for purging. Never make a workflow dependent on the continued availability of older scratch data.
