Scratch Storage

 


Scratch is a storage location on O2 for temporary data. In summary:

  • THE SCRATCH SPACE IS NOT BACKED UP!

  • Files are AUTOMATICALLY DELETED 45 days after they are last modified.

    • Modification time indicates when a file’s content was last changed, not merely accessed.

  • There are NO SNAPSHOTS available for recovering deleted data from scratch folders.

  • O2 users can have up to 25 TiB and 2.5 million files/directories under the /n/scratch filesystem.

  • Use this space for intermediate files in a longer workflow or for extra output that doesn't matter much.

To reiterate, if you delete a file on purpose or by accident or just leave it sitting for 45 days, it is GONE. You can't get it back, and Research Computing can't get it back for you. Using this model lets us provide cost-effective, high-end storage to many more users than would be possible with permanent and backed-up files. But it is important that you understand the risks of using it.

Important - Artificially modifying file modification times is against policy and may result in losing your access to scratch.

Scratch Overview

A scratch space is available on O2, mounted at /n/scratch.

Users cannot write files directly under /n/scratch itself.

If you don't have a scratch directory, then you must use the scratch create directory script.

Scratch Directories: Users

On scratch, user directories are found under:

  • /n/scratch/users/<first_hms_id_char>/<HMSID>

Where "<first_hms_id_char>" is the first character of your HMS ID (formerly eCommons ID), and  "<HMSID>" is your HMS ID.

For example, the scratch directory for a user with the username "abc123" would be located at:

  • /n/scratch/users/a/abc123

For an HMS ID of “zz999” the scratch directory will be at:

  • /n/scratch/users/z/zz999

Scratch Directories: Groups

On scratch, labs folders can be found under:

  • /n/scratch/groups/<institution>/<department>/<lab>

The scratch groups spaces are intended to facilitate collaboration between users in a lab.

Note that any data placed under /n/scratch/groups/ is still counted against the default user’s quota limits (25TiB and 2.5M files).

/n/scratch/groups spaces are created upon request. If your lab wants a scratch space, please contact us at rchelp@hms.harvard.edu, indicating your existing Active Compute Lab’s storage.

Create a User Scratch Directory

To create your own scratch directory on O2, please run the following command from a login node (not an interactive job):

/n/cluster/bin/scratch_create_directory.sh

Scratch Storage Usage

The storage usage is on a user basis rather than a group. To check your personal and group storage utilization and limits, please run the following command:

quota-v2

More information about the O2 quota-v2 command can be found on this wiki page.