Skip to content

Latest commit

 

History

History
74 lines (49 loc) · 3.49 KB

Exercises.md

File metadata and controls

74 lines (49 loc) · 3.49 KB

Introduction to Odyssey Hands-on Exercises

Login and Access

  1. Using your terminal program, log into Odyssey
  2. (optional) If you have XQuartz (Mac) or Xming (PC), Log into Odyssey w/ X11 forwarding. Start a GUI clock sessions with the command xclock &
  3. (optional) Log on to one of our NX machines (rcnx01 or holynx01) and start a terminal session

Filesystems: Transferring files

Transferring files with FileZilla

  1. Download the file at https://github.com/fasrc/DataC-HPC-genomics/blob/master/data/genome_data.zip?raw=true to your desktop
  2. Using FileZilla transfer this file to your Odyssey account home/login folder
  3. On your laptop's Desktop, unzip the genome_data.zip archive
  4. Using Filezilla, transfer the genome_data folder over to your home folder on Odyssey

(Mac/Linux) Transferring files with rsync rsync can transfer files within hosts or across hosts. The format is:

rsync (-options) source destination
rsync (-options) username@host:source destination
rsync (-options) source username@host:destination

where source and destination are any valid unix path

  1. In your terminal window from Login and Access, make a new directory 'transfer' in your home folder with the command mkdir transfer.
  2. Using your terminal program, transfer the zip archive from your Desktop to the transfer folder on Odyssey
  3. Using your terminal program, transfer the genome_data folder from your Desktop to the transfer folder on Odyssey

Filesystems: Storage

  1. See what directory you are in using pwd command. Compare this with your neighbor. Any differences?
  2. You can display filesystems with the df command. Use this command with the following options:
  3. df /
  4. df .
  5. df -h .
  6. What command would you use to see what other fileystems are available on Odyssey? ?

Loading/installing software

  1. Issue the command bowtie. What happens?

  2. Issue the appropriate command to display what modules do you currently have loaded. What are they?

  3. Using the appropriate command, find what versions of bowtie are on the cluster.

  4. Load the latest version of bowtie. What command did you use?

  5. What modules do you have loaded now?

  6. Issue the bowtie command now. What's different?

  7. Load in the legacy modules

  8. Look for the versions of bowtie on the cluster again. What do you notice?

  9. (Bonus!) Use the text editor nano to modify your .bashrc to opt-in for the new modules

Login/Interactive sessions

  1. Issue the appropriate command to get an interactive session w/ 4 GB RAM for 60 minutes
  2. Start a MATLAB command-line session. What commands do you need to issue to do this?

Submitting jobs

  1. (single core) Using nano or your favorite text editor, create a SLURM submission script to run the test.py example code. Use the run_test.sh script as a starting point.

  2. Modify your script so that it includes the proper SBATCH directives, Lmod opt-in, module loads, and commands to run the test.py script.

  3. Include a mail notification so that you know the script completed successfully.

  4. Forward the SUCCESS email to your TF, and paste in the contents of the run_test.sh file. (DO NOT send this script file through the mail system, as it might be stripped out as a potential virus by mailserver virus scan software).

  5. Bask in the joy that you've run your first cluster job!

  6. Once your job completes successfully, how much RAM did your job use? What command did you use? Go back and modify your job script to use the appropriate amount of RAM.