Changes between Version 10 and Version 11 of DRM4G/Tutorial


Ignore:
Timestamp:
Jun 26, 2016 4:03:45 PM (6 years ago)
Author:
carlos
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DRM4G/Tutorial

    v10 v11  
    142142}}}
    143143
     144== How to configure a TORQUE/PBS resource ==
     145
     146In order to configure a TORQUE/PBS cluster accessed through ssh protocol, you should follow the next steps:
     147
     1481. Configure the `meteo` resource. If you do not have a [wiki:DRM4G#Resourcesection private_key] file, you can generate one by executing [http://www.openbsd.org/openssh/manual.html ssh-keygen]. This command will generate a public key (`~/.ssh/id_rsa.pub`) that will be necessary later on. 
     149{{{
     150#!sh
     151[user@mycomputer~]$ drm4g resource edit
     152[meteo]
     153enable            = true
     154communicator      = ssh
     155username          = user
     156frontend          = mar.meteo.unican.es
     157private_key       = ~/.ssh/id_rsa
     158lrms              = pbs
     159queue             = short
     160max_jobs_running  = 2
     161max_jobs_in_queue = 6
     162}}}
     1631. List and check if resource has been created successfully :
     164{{{
     165#!sh
     166[user@mycomputer~]$ drm4g resource list
     167RESOURCE            STATE               
     168meteo               enabled
     169
     170}}}
     1711. Copy the public key (`~/.ssh/id_rsa.pub`) to `authorized_keys` file on the remote frond-end, and adds the private key to the agent for the ssh authorization:
     172{{{
     173#!sh
     174
     175[user@mycomputer~]$ drm4g id meteo init
     176Starting ssh-agent ...
     177 WARNING: ssh-agent is already running
     178--> Add '/home/user/.ssh/id_rsa' into ssh-agent for 168 hours
     179 Lifetime set to 7 days, 0:00:00
     180--> Copy '/home/user/.ssh/id_rsa' to ~/.ssh/authorized_keys file on 'ui.macc.unican.es'
     181
     182}}}
     1831. Show information about the identity:
     184{{{
     185#!sh
     186[user@mycomputer~]$ drm4g id meteo info
     187--> Display '/home/user/.ssh/id_rsa' key
     188ssh-rsa AAAAB3NzaC1yc2EAAAADAQAABAQDcUYc9tDOYptqAWf7YzgN2NY9F+AtObtVvgh0PsIWZvDx1ml6j9n7zihiHFwnNIQh1q1EpIku/Jg8kyKOnbpm+2prnIhURoAWxO+rlzCF0Q4hHHW5svNNR6doCZ9mNNswi1uHaVpwhu8EKgfPyH+oNI/inSnJ/QQRHILyjUvaNbQPuXwVBpYjpvOAFOYA2VZqi+IfTq13lks7DCBfv3DK1w38aDQ9xFP/hYlQKwC/DwJo1q2CWxg5WZhgHFRG/1nyVH/nTbjOMTRZS61Gre58UUab/wSZQc6rTkrTitnCdAujIUx5eiOhM90JfDj+VUriLTnXCkwUC4+h
     189}}}
     190
     191That's it! Now, you can summit jobs to `meteo`.
     192
    144193= User Scenarios =
    145194