Cookies

We use cookies to ensure that we give you the best experience on our website. You can change your cookie settings at any time. Otherwise, we'll assume you're OK to continue.

Durham University

COSMA

Connecting to COSMA

COSMA has 5 login servers, two for COSMA5, one for COSMA6, and two for COSMA6/7. To connect to COSMA, you will need an SSH keypair added to your authorized keys (follow steps 1 to 3). A single SSH keypair will be able to connect to all login nodes. Please note that each login node has a separate fingerprint, which will cause a warning and prompt you to accept it the first time you try to log in.

The same SSH keypair can also be used for git access (for example, see this guide for GitHub).

Logging in with SSH

If you have done that already, use SSH to connect:

ssh USER@login.cosma.dur.ac.uk

where USER is your COSMA username. This will log you in via a secure shell to COSMA5 (the default). You can also login to a different machine by specifying a different login node:

  • login7.cosma.dur.ac.uk for COSMA7
  • login6.cosma.dur.ac.uk for COSMA6
  • login5.cosma.dur.ac.uk for COSMA5
  • cosma-n.cosma.dur.ac.uk for a specific login node cosma-n
  • etc.

The login systems are also the developing nodes: so they know about the compilers, have access to modules, and the batch system. Unless otherwise specified, all of your interactive work should be done on the login nodes. For instructions on how to submit jobs to the batch quees, see https://cms.dur.ac.uk/icc/cosma/support/slurm/.

Running programmes with graphical interface

If you wish to open a graphical programme on a login node (i.e. to view a gnuplot/matplotlib window, open a PDF in an evince viewer or a picture in eog, view an HDF5 file in hdfviewer, etc.), you need to add -X flag to forward the X server:

ssh -X USER@login.cosma.dur.ac.uk

You should then be able to have programmes forwarded to your local X server. For instance, typing

eog PICTURE.png

on a COSMA login node will open the file.

This should works out of the box on most Linux / BSD systems. If you are using macOS, you will need to install XQuartz on your machine.

Saving SSH Configuration

To save yourself from typing the full command every time, you can save your SSH configuration in a ~/.ssh/config file on your local machine. For instance, if your configuration file looks like this:

Host cosma
  User USER
  IdentityFile ~/.ssh/id_rsa
  HostName login.cosma.dur.ac.uk
  ForwardX11 yes

typing

ssh cosma

will be equivalent to

ssh -X USER@login.cosma.dur.ac.uk

To learn about more advanced options, please refer to the manual: man 5 ssh_config.

Disk Usage

Your home quota is usually 10 GB. The contents of your $HOME are backed up every night, and should only be used for code and small datasets that are not easily recoverable.

All generated/large datasets should be stored in a separate space, located in /cosma[567]/data/project_name/USER. Your quota there is more generous and is currently set by default to 10 TB.

COSMA7 / COSMA[5,6] Differences

Due to differences in CPU architecture between COSMA5, 6 and 7, code compiled with strong optimisation on the COSMA7 login nodes may not work on the COSMA5 or 6 compute nodes, throwing illegal instructions errors. Therefore, please try to use COSMA5 or 6 login nodes to compile code for these queues, or add a recompilation step to your submission script.

COSMA logo