Next, get the name of the local m achine serving yo ur display mon ito r:
$ hostname
mymachine
Then, use the host name of your local machine to retrieve its IP address:
$ host mymachine
mymachine has address 14.26.206.134
Step 2. Logging in to HP XC System
Next, you need to log in to a lo gin node on the HP XC system. For exam ple:
$ ssh user@xc-node-name
Once logged in to the HP XC system, you can start an X term inal session u sing SLURM or
LSF. Both methods are described in the following sections.
Step 3. Running an X terminal Session Using SLURM
This section shows how to create an X terminal session on a remo te node using SLURM. First,
check the available nodes on the HP XC system. For example:
$ sinfo
PARTITION AVAIL TIMELIMIT NODES STATE NODELIST
lsf up infinite 2 idle n[46,48]
According to the information returned about this HP XC system, SLURM has one node
available for use, n47.
Start an X terminal session on t his node, using the information you obtained about your d isplay
server to direct output back to it. For example:
$ srun -N1 xterm -display 14.26.206.134:0.0
The options used in this command are:
srun -N1
runthejobon1node
xterm
the j ob is an X terminal session
-display <address>
monitor’s display server address
Once the job starts, an X terminal session appears on your desktop from the available remote
HP XC node. You can verify that the X terminal session is running on a compute no de with the
hostname command. For example:
$ hostname
n47
You can verify that SLURM has allocated the job as you specified. For example:
$ sinfo
PARTITION AVAIL TIMELIMIT NODES STATE NODELIST
lsf up infinite 2 idle n[46,48]
$ squeue
JOBID PARTITION NAME USER ST TIME NODES NODELIST
135 srun xterm username R 0:13 1 n47
Exiting from the X terminal session ends the SLURM job.
10-2 Advanced Topics
Commentaires sur ces manuels