middleware:Unicore/50/server

From Dgiref
Jump to: navigation, search
Please open a NGI-DE ticket if you experience any Installation or Configuration problem.

Contents

UNICORE server v.5.0

Prepare

Operating system
  • Scientific Linux version 5.1 64 bit

Optimizing the configuration:


Use minimal operating system installation without firewall. To verify installed packages use the command

  • rpm -qa | grep package_name

Install the following additional packages:

  • yum -y install wget yum rpm make gcc gcc-c++ tar sed zlib openssl

After the installation is complete, turn off any unnecessary services (like gpm, sendmail, cups, haldaemon, messagebus, pcmcia, anacron, atd) with the following command:

  • chkconfig <SERVICE> off

Configure the following settings for the server:

Additional software packages
Firewall configuration

The UNICORE frontend runs NJS + TSI + UUDB services (how to open port in firewall).

Service Incoming ports (TCP) Change to default configuration
NJS + TSI + UUDB 1128 Yes


The NJS service listen at port 1128 for gateway connections.

Install

It is important that the password for the NJS-Certificate is blocked. There are also two possibilities:

  • Insert the password in the file /opt/unicore/njs_4.6.2_build_1/conf/njs.properties (njs.ssl_password = geheim)
  • The file /opt/unicore/njs_4.6.2_build_1/conf/password contains the passwords

Configure

WARNING: Rights

  1. Make sure that no users except the NJS administrator have write or execute rights on the NJS files.
  2. Only root and no other users can write or execute on the TSI files. The exception is the script TorqueTSI/tsi_ls which for all Unicore users must be executed.
  3. The NJS must have access to respond to the UUDB
  4. The FILESPACE directory must have for all UNICORE users rights to read, write and execute. In this directory for each job used a sub directory with the name of the created job user, so that each user have an access only to its own files.

There are different configuration procedures for different Unicore components:

  • Users and directories
  • NJS
You need to set or change variables in files:
  • njs/conf/njs.properties
  • njs/conf/njs.idb
  • njs/bin/njs_admin
Additional information can be found in the NJS TSI Manual or IDB Manual.
  • TSI
The TSI is already in use with torque. He expects torque commands (qsub, qstat, ...) usually in /usr/bin. So set/change or verify variables in:
  • tsi/conf/tsi.properties - $njs_machine
  • tsi/tsi - $pbs_bin_dir
Additional information can be found: NJS TSI Manual
  • UUDB
The UUDB contains already all the NJSs entries that are currently registered in the D-Grid. This is important so that the user can send data between different V-sites. The UUDB must now be filled with users and possibly incoming NJSs. Additional information provided in the file: uudb/README.txt. For automatically generation of UUDB, the script dgridmap is used. It is recommended that the script run regularly (e.g. via cron at least every 24 hours), in order to update the UUDB.

Proceed

WARNING: Don't run ./install.sh, because it doesn't configure all necessary variables. There are different scripts to start or stop NJS and TSI in the /opt/unicore/ directory.

An example of how the UNICORE components can be started as automatic init is in the script unicore.sh. Copy this script to /etc/init.d and adjust the name of the NJS administrator.

To start the Gateway as user 'unicore'. You should see the single line response Gateway started. User 'unicore' should see as a response to ps x that a job java com.fujitsu.arcon.gateway.Gateway . gateway.prop is running. In the directory /usr/local/unicore/gateway/conf/logs you should see a new file named GatewayLog... and an empty file startup.log (if the default logging level was not changed). At the end of the GatewayLog file, you should see the text Initialisation complete.

Initial test

There is no information currently.

Update

To remove Unicore 5 from your system just use:

Personal tools