Microsoft Linux Cluster User Notes: Difference between revisions

From MRC Centre for Outbreak Analysis and Modelling
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
==Mounting shares for cluster use==


The only thing you really need to do before using the linux nodes on the fi--didelxhn cluster, is sort out any windows shares you're going to want access to. When you log in (or when the cluster logs in as you), your DIDE home directory will be automatically mounted as ~/dide/home, (where ~ is automatically set to /homes/<dide-username> - which is cluster-node specific, hence different on every node. Don't save stuff there!). If you want access to other windows shares, then create a file in your DIDE home directory, called <code>.pam_mount.conf.xml</code> containing something like this, replacing <dide-username> with your username (mine would be wrh1):-
== Using the Linux Cluster ==
 
=== Get in touch ===
This is still a bit experimental, so mail Wes to get started.
 
=== Sort out your shares ===
 
* On linux, the <code>~</code> symbol refers to something that is '''probably not what you want''' - it's your local linux home directory, on the particular node that your job happens to get run on. So different jobs might have a different local linux home directory, because they might be run on different nodes.
* Instead, use <code>~/dide/home</code> - which will be mapped to your DIDE home directory.
* If you want to have other shares mapped, then, edit or create a file in your '''DIDE home directory''', called <code>.pam_mount.conf.xml</code> which contains something like this.


<pre>
<pre>
Line 11: Line 19:
</pam_mount>
</pam_mount>
</pre>
</pre>
* Obviously, replace <code><dide-username></code> with your username. So note here that <code>/homes/<dide-username></code> is what Linux refers to when you use <code>~</code>.
* The full path to your dide home directory, from a linux job, will therefore be: <code>/homes/<dide-username>/dide/home</code>.

Revision as of 12:48, 10 October 2017

Using the Linux Cluster

Get in touch

This is still a bit experimental, so mail Wes to get started.

Sort out your shares

  • On linux, the ~ symbol refers to something that is probably not what you want - it's your local linux home directory, on the particular node that your job happens to get run on. So different jobs might have a different local linux home directory, because they might be run on different nodes.
  • Instead, use ~/dide/home - which will be mapped to your DIDE home directory.
  • If you want to have other shares mapped, then, edit or create a file in your DIDE home directory, called .pam_mount.conf.xml which contains something like this.
<?xml version="1.0" encoding="utf-8" ?>
<pam_mount>
  <volume options="vers=2.1,nodev,nosuid" user="*" mountpoint="/homes/<dide-username>/dide/tmp" path="Tmp" server="fi--didef2.dide.ic.ac.uk" fstype="cifs" />
  <volume options="vers=2.1,nodev,nosuid" user="*" mountpoint="/homes/<dide-username>/dide/f2gsim" path="GlobalSim" server="fi--didef2.dide.ic.ac.uk" fstype="cifs" />
  <volume options="vers=2.1,nodev,nosuid" user="*" mountpoint="/homes/<dide-username>/dide/nas1gsim" path="Test" server="fi--didenas1.dide.ic.ac.uk" fstype="cifs" />
</pam_mount>
  • Obviously, replace <dide-username> with your username. So note here that /homes/<dide-username> is what Linux refers to when you use ~.
  • The full path to your dide home directory, from a linux job, will therefore be: /homes/<dide-username>/dide/home.