Disk areas in CSC’s HPC environment

In this section, you will learn how to work in different disk areas in CSC’s HPC environment

All materials (c) 2020-2026 by CSC – IT Center for Science Ltd. This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 Unported License, http://creativecommons.org/licenses/by-sa/4.0/

Why manage your data well while computing?

  • Data change all the time during computing – without records, you (or your collaborators) soon can’t tell which file came from what
  • Choices about tools, file formats, access rights, versioning and backups affect data quality and research integrity
  • Documenting and organizing data as you go makes results reproducible and later sharing, archiving and publishing much easier
  • Want more?

Why documentation matters

  • During computing: documentation records how data are processed, which tools and environments are used, and how versions and quality are managed, so analyses stay accurate, traceable and reproducible
  • Long term: it lets others (or your future self) reproduce, verify and reuse the data, supports version control and collaboration, and makes the data compatible with repositories, tools and disciplinary standards

How to document your work

FAIR by design

  • Create documentation and metadata throughout the process, not only at the end, so data stay FAIR and publishing is easy

Overview of disk areas

  • Main disk areas and their specific uses on Roihu
  • Moving data between supercomputers
  • Understanding quotas (available space and number of files) of different disk areas
  • Additional fast disk areas
  • Keeping your data safe and manageable: backups, version control and cleaning up

Disk and storage overview

Main disk areas in Roihu

  • Personal home directory ($HOME)
  • ProjAppl directory (/projappl/project_name)
    • Shared with project members
    • Possible to limit access (chmod g-rw) to subfolders
  • Scratch directory (/scratch/project_name)
    • Shared with project members
    • Files not accessed for 90 days (5+ TiB quota) or 180 days (smaller quotas) are removed periodically
  • These directories reside on the Lustre parallel file system
  • Default quotas and more info in disk areas section of Docs CSC

Dataset projects in Roihu

  • Roihu users can apply for separate dataset projects

  • Intended for data sharing and active use, not long-term storage

  • Dataset projects provide access to shared disk area under (/dataset/project_name) but have no computational resources

  • Write access to a dataset directory is restricted to a single project, while multiple other projects can be granted read access to this disk area.

Moving data between and to/from supercomputers

Displaying current status of disk areas

  • Use the csc-workspaces command to show available projects and quotas

Disk and storage overview (revisited)

Additional fast local disk areas

  • $TMPDIR on login nodes
    • Each of the login nodes have 80 GiB of fast local storage (per user) in $TMPDIR
    • The local disk is meant for temporary storage (e.g. compiling software) and is cleaned frequently
  • NVMe disks on compute nodes on Roihu
    • All compute nodes have fast local disks (NVMe) in $TMPDIR
    • You must copy data to and from the fast disk during your batch job since the NVMe is accessible only during your job allocation
    • If your job reads and/or writes a lot of small files, using this can give a huge performance boost!

Disaggregated storage / smart bunch of flash (SBoF)

  • Fast storage for compute jobs, similarly to compute node NVMe
  • Available in larger quantities than the local NVMe on compute nodes
  • Needs to be requested in the batch job script
  • You must copy data to and from the fast disk during your batch job since the storage is accessible only during your job allocation

What are the different disk areas for? 1/2

  • Allas – for data which is not actively used
  • $HOME – small, for the most important (small) files, personal access only
  • /scratch – main working area, shared with project members, only for data in active use
  • /projappl – not cleaned up, e.g. for shared binaries
  • /dataset – dataset projects for sharing data between mutiple projects

What are the different disk areas for? 2/2

Best practices

  • None of the disk areas are automatically backed up by CSC, so make sure to perform regular backups to, e.g., Allas
  • Don’t run databases or Conda on Lustre (/projappl, /scratch, $HOME, /dataset)
    • Containerize Conda environments with Tykky and use other CSC services like Pukki, cPouta or Rahti for databases
  • Don’t create a lot of files, especially within a single folder
    • If you’re creating 10 000+ files, you should probably rethink your workflow
  • Consider using fast local disks when working with many small files
  • Lustre best practices and efficient I/O in high-throughput workflows

Backups and version control

  • Backups
    • CSC’s disk areas are not backed up, so copy important data to, e.g., Allas (tutorial)
    • Agree in your project: who makes backups, how often, where they are kept, and who removes outdated copies
  • Version control – track changes to code, scripts and configuration files
    • E.g. Git with GitHub or GitLab (Docs CSC: versioning)
    • Compare, restore and share earlier versions; makes results easier to verify
    • Does not replace backups

Clean up data you no longer need

  • Files in /scratch that have not been used for 90/180 days are removed automatically – decide yourself what to keep
  • Regularly look for duplicates, outdated intermediate files and superseded versions
    • csc-workspaces and lue show where your data is
  • Before deleting:
    • Always keep raw data and everything needed to reproduce your results
    • Make sure backups are in place, and follow legal and institutional policies
  • Document what you removed and why
  • Read more: Docs CSC cleaning up data, RDMkit data deletion