1 of 34

LIP Computing training basic level

1

2 of 34

Outline

  • Introduction
    • LIP
    • LIP/CNCA Computing infrastructure
    • Computing farm structure
    • Authentication mechanism
    • Documentation
  • How to access the infrastructure
    • What is ssh & why use it
    • Generate ssh keys

  • Useful information
    • Linux commands
    • Best practices

2

3 of 34

LIP

LIP- Laboratório de Instrumentação e Física Experimental de Partículas

  • Created in 1986
  • Three nodes: Lisbon, Coimbra and Braga
  • More than 202 people: staff, researchers, students, collaborations
  • Four main research areas:
    • Astroparticle Physics
    • Particle Physics
    • Detectors and Applications
    • Computing

3

4 of 34

LIP - IT infrastructure

  • general IT services – Core institutional services, network services, security, and also LIP-Lisbon specific services
  • Data Intensive Computing Infrastructure @CNCA (past @INCD)

4

5 of 34

Introduction LIP/CNCA Computing infrastructure

6 of 34

CNCA - Centro Nacional de Computação Avançada

  • CNCA is a digital infrastructure:
    • LIP Technical coordination
    • Goals:
      • Provide computing and data services for the research community.
      • Computing Services:
        • Cloud.
        • HTC and HPC (farm)

6

7 of 34

CNCA operations centres in 2025

CNCA-A @ LNEC in Lisbon

HPC / HTC / Cloud / Federation

6000 CPU cores

5 Petabytes online raw

100 Gbps + 100 Gbps LHCONE

Includes the WLCG Tier-2

CNCA-L @ LIP in Lisbon

Tape storage

1 Petabyte backups

10 Gbps

CNCA-C @ UC in Coimbra

(BEING IMPROVED)

Tape storage expansion

20 Petabytes

10 Gbps

CNCA-D @ UTAD in Vila Real

HPC / HTC / Cloud / Federation

5000 CPU cores + IB HDR200

4 Petabytes online raw

10 Gbps + 10 Gbps

CNCA-B @ REN in Riba-de-Ave

(partially moved to Lisbon)

HPC / HTC

2600 CPU cores (640 cores)

384 Terabytes raw

1 Gbps

CNCA Portuguese Distributed Computing Infrastructure

1º Encontro "Computation in Science @UAlg" - 26th October 2018

8 of 34

Peerings

CNCA-D

UTAD

Vila Real

LHCONE

FCCN Géant

RCTS Internet

FCCN

CNCA-C

UC

Coimbra

CNCA-L2

FCCN

CNCA-A

LNEC

Lisboa

CNCA-L

LIP

Lisboa

Backup via RCTS

Peering CNCA L2

Default via CNCA L2

Default via RCTS

Peering LHCONE

PT

Tier2

CNCA Portuguese Distributed Computing Infrastructure

1º Encontro "Computation in Science @UAlg" - 26th October 2018

9 of 34

Introduction FARM Computing infrastructure

10 of 34

Computing Farm:

Applications run in a compute/worker node:

  • Linux:
    • pauli.a.incd.pt (Centos 7 )
    • curie.a.incd.pt (Alamalinux9 )
  • You do not have any direct access to the compute nodes
  • Access trough scheduler (slurm)
  • Storage accessible in both submission node and compute nodes

10

Compute nodes

Job submission�(pauli.a.incd.pt)

Job scheduling

Scheduler (slurm)

Storage

11 of 34

Computing Farm Advantages:

  • Applications with limited execution time (minutes-weeks).
  • “Almost” static environment:
    • Operating System, software, compilers and libraries are deployed by the system administrator. Users request the sys admins to deployed specific software, libraries, compilers to their needs.
  • Applications are scheduled into a queue for execution.
  • Resources are shared with other others users

11

12 of 34

Useful informationLinux commands �&�Best practices

13 of 34

Useful Linux commands

  • cd: Change directory.
  • rm: Delete files.
  • mkdir: Create directory.
  • ls: List files.
  • pwd: Print current directory name.
  • cat: View files.
  • Ctrl-c: press “Ctrl” and “c” keys to kill what you are running in terminal.

For more commands, check the Quick Reference guide: http://www.macs.hw.ac.uk/~hwloidl/Courses/LinuxIntro/linux-quickref.pdf

13

14 of 34

Best practices 1/x

@LIP with Personal Laptops

  • Torrents
  • No licensed Software
  • All software needed in the course is free or provided by your advisor.
  • Windows, activate the Anti-Virus, windows defender is the best and the only needed.

14

15 of 34

Best practices 2/x

Secrets

  • PRIVATE SSH key should always be encrypted with strong password
  • Don’t share the password or the private key.
  • Accounts are private, there are mechanisms to share data between accounts (ask your advisor).

15

16 of 34

Best practices 3/x

Phishing/Ransomware

  • Emails (From: LIP vs From: @lip.pt)
  • Attachs
  • Links
  • Report anything suspicious

16

17 of 34

How to access �the infrastructureSSH

18 of 34

SSH

How to access - SSH

Allow us to connect to local or remote servers(inside safe/isolated networks)

HOME

LABORATORY

Is a secure way to establish a �connection between two machines

18

Secure network

19 of 34

SSH (openssh free and opensource)

Linux - Is available natively in all distributions, Fedora, Ubuntu, Mint, etc

Windows - Is available via WSL in all Windows >= 10

WSL is not available to all Windows 10 users by default, but can be installed via Microsoft Store or other means.

macOS - Is available.

19

20 of 34

SSH (Windows WSL v2)

SSH forward keys

1) Edit file .bashrc

2) Add at the end of the file

eval $(ssh-agent -s)

20

21 of 34

Generate an ssh key pair

  1. Generate a new key pair in a terminal with the next command�

The key generator will ask for location and file name to which the key is saved to. The recommended is the defaults (Just pressing enter). If you have already a key named id_rsa, choose another name.

  • Create a passphrase for the key when prompted

This is a password that will protect your private key from someone that is not supposed to get their hands on it.

21

ssh-keygen -b 4096

22 of 34

Generate an ssh key pair

  • See your key pair generated with the next command

You will see the keys stored in your computer:� id_rsa → PRIVATE key.� id_rsa.pub → PUBLIC key.

  • Send your public key (id_rsa.pub) to LIP administrators via email

Once the key pair was created, you must send the public key to the LIP administrators, to associate it to your account. (continue in next slide)

22

ls -la ~/.ssh/

23 of 34

Generate an ssh key pair

(continuation) Send your public key (id_rsa.pub)

    • Show the public key in a terminal

    • Copy the public key and paste it into an email�Just select the key with your mouse, right click (shift-right-click on MobaXTerm) and copy. Then paste the key into an email.���
    • Send an email with the public key and your username to:

helpdesk@lip.pt

23

cat ~/.ssh/id_rsa.pub

24 of 34

Connect to server

  • Connect to remote server in a terminal with the next command

usernamereplace username with your username (Sent previously to you by email).

pauli.a.incd.pt → the name of the server you going to connect to.

When the ssh connection is establish, a passphrase will be asked to unlock the private key that is encrypted.

24

ssh username@pauli.a.incd.pt

or

ssh username@paulia.a.acnca.pt

25 of 34

How to access - using Windows

  1. Install MobaXTerm https://mobaxterm.mobatek.net

25

To start a new terminal, click on “Start local terminal”

26 of 34

How to access - using Windows

  1. Click right-click on the terminal and choose “Paste”
    1. This way, to paste something into the terminal you just need to right-click.
    2. To copy something from the terminal, you must shift-right-click and then click copy.

26

27 of 34

macOS

Required for export Display:

  • install: https://www.xquartz.org/

27

28 of 34

Documentation

&

Helpdesk

29 of 34

Documentation

  • Lip Wiki: https://wiki-lip.lip.pt/
    • Eduroam access
    • LIP internal groups documentation
    • LIP computing FARM access and commands

  • More generic FARM: https://wiki.acnca.pt/shelves/hpc-htc-user-documentation
  • Tutorials:

29

30 of 34

Slack registration

30

31 of 34

��Helpdesk ( helpdesk@lip.pt)

Good practices:

  • Slack must be the first line to support, used by all researchers and students:
  • Always use the email used in the registration form
  • Try to explain clearly the problem on the email
  • Required information:
  • login name (name provided to you by LIP IT team to access LIP services)
  • Source machine (personal laptop, desktop, etc)
  • Destination machine: (example: pauli.a.acnca.pt)
  • Problem with job submission:
    • My submission code is here: /home/userxxx/submit_to_farm.sh
    • job ID: try to get the job ID of you job (Check FARM wiki)

31

32 of 34

�Q&A

Nice Internship for everyone!!�Um Bom Estágio para todos!!

33 of 34

IT infrastructure context

ISEC - Laced

Minerva Cluster

20x Dell R720

Infiniband

Miguel Couceiro

U. Coimbra

Old Datacenter

Physics Dep.

Small LIP facility

Point-of-Presence

NCG @ LNEC

Sala-Grid Datacenter

New CNCA equipment

Old INGRID equipment

LIP specific equipment

LIP users

LIP Tier-2

CNCA users

U. Lisboa @ reitoria

Mail, web, VMs

Home directories

LIP @ 3Is

Tape library

Local network+services

BOB @ REN Riba-de-Ave

HPC cluster from FCT

Offered by TACC

20% is managed by CNCA+LIP

LIP helping in the storage

34 of 34

IT network infrastructure

U. Coimbra

Old Datacenter

Physics Dep.

NCG @ LNEC

Sala-Grid Datacenter

New L2/L3 switches

48x 10/25 GbE

18x 40/100 GbE

LIP @ 3Is

Tape library

Local network

BOB @ REN Riba-de-Ave

HPC cluster from FCT

U. Lisboa @ reitoria

Mail, web, VMs

Home directories

LIP @ U. Coimbra

LIP @ U. Minho

INTERNET

LNEC

Internal network

CNCA Private Net