If you install torque using a path that is different from the standard BCM one, then you should carry out the following steps (BCM version should be >= 6.0):
- Disable torque: wlm-setup -w torque -d
- Set the following parameters under the AdvancedConfig directive (see example at end) section of /cm/local/apps/cmd/etc/cmd.conf:
- TorqueRoot - directory of torque installation (default: /cm/shared/apps/torque/current/);
- TorqueServerSpool - server spool directory (default: /cm/shared/apps/torque/var/spool/);
- TorqueMomSpool - mom spool directory (default: /cm/local/apps/torque/var/spool/).
- If you need to use init scripts different from the scripts provided by the Bright Computing torque package, then add the following parameters into your AdvancedConfig section:
- TorqueServerService - a name of torque server service (default: torque_server);
- TorqueMomService - a name of torque mom service (default: torque_mom);
- TorqueSchedService - a name of torque scheduler service (default: torque_sched).
- Change $torqueroot value in /cm/local/apps/cmd/scripts/healthchecks/schedulers (for example, to "/usr/").
- Repeat the same for all nodes where torque is running and restart cmd service there.
- Enable torque: wlm-setup -w torque -e
Example of an AdvancedConfg section:
AdvancedConfig = {
"TorqueSchedService=pbs_sched",
"TorqueServerService=pbs_server",
"TorqueMomService=pbs_mom",
"TorqueRoot=/usr/",
"TorqueServerSpool=/var/spool/torque",
"TorqueMomSpool=/var/spool/torque"
}