IBM Support

Torque INIT script has errors - IBM IBM System Cluster 1350 (type 1410)

Troubleshooting


Problem

When using TORQUE to create a scheduler to make requests to control the execution of batch jobs, the open source initialization script (contrib/init.d/pbs_server) has an error. Executing the script results in the following error: pbs_server: line 31: syntax error near unexpected token 'fi' pbs_server: line 31: ' fi'

Resolving The Problem

Source

RETAIN tip: H197119

Symptom

When using TORQUE to create a scheduler to make requests to control the execution of batch jobs, the open source initialization script (contrib/init.d/pbs_server) has an error. Executing the script results in the following error:

  pbs_server: line 31: syntax error near unexpected token 'fi'
pbs_server: line 31: ' fi'

Affected configurations

The system may be any of the following IBM servers:

  • IBM System Cluster 1350, type 1410, any model

This tip is not software specific.

This tip is not option specific.

Solution

This behavior will be corrected in a future release of UXSPi 4.10.

The target date for this release is scheduled for second quarter 2010.

The file will be available by selecting the appropriate machine type on the 'Software and device drivers - IBM BladeCenter' web page, at the following URL:

  http://www.ibm.com/support/docview.wss?uid=psg1MIGR-63017

Workaround

The Workaround is to comment the "fi" out in the following source code from the "contrib/init.d/pbs_server" file:


# if ( -r $PBS_HOME/server_priv/serverdb )
# then
# Commented out by dbeer. This if check (and -t create possibility) will blow away the serverdb file if $TORQUE_HOME isn't the default daemon $PBS_DAEMON
# else
# daemon $PBS_DAEMON -t create
# fi

Additional information

In the torque (version 2.4.7) contributed init script for the pbs server (contrib/init.d/pbs_server), there are errors:

  pbs_server: line 31: syntax error near unexpected token 'fi'
pbs_server: line 31: ' fi'

Looking at the source reveals the cause:


# if ( -r $PBS_HOME/server_priv/serverdb )
# then
# Commented out by dbeer. This if check (and -t create possibility) will blow away the serverdb file if $TORQUE_HOME isn't the default daemon $PBS_DAEMON
# else
# daemon $PBS_DAEMON -t create
# fi

The "fi" above should also be commented out. The Workaround is to comment the "fi" out.

Document Location

Worldwide

Operating System

System x Integrated Solutions:Operating system independent / None

[{"Type":"HW","Business Unit":{"code":"BU016","label":"Multiple Vendor Support"},"Product":{"code":"HW20W","label":"eServer Cluster 1350"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
30 January 2019

UID

ibm1MIGR-5084603