Multi-Machine Installation run PBS (Torque)

Source: Internet
Author: User

This article link: http://blog.csdn.net/kongxx/article/details/8022522

First, refer to the previous Article stand-alone installation run PBS (Torque)

Assuming that the machine installed in stand-alone PBS (Torque) is the master, add a new nodes to the cluster below. This assumes that the new machine name for joining nodes is Host1 and host2.


Installation

1. Copy the torque-package-*.sh files generated on the master machine to 2 on host1 and host2. Run the following command on Host1 and Host2, respectively, to perform the installation

  $ sudo torque-package-mom-*.sh--install
  $ sudo torque-package-clients-*.sh--install


Start stop service

1. Run the following command to start the MOM Service on host1 and Host2, respectively

  $ sudo/url/local/sbin/pbs_mom
2. Add a node to the master machine

  $ Qmgr-c ' Create node host1 np=5 '
  $ Qmgr-c ' Create node Host2 np=5 '
After the addition is complete, you can use the Qnodes command on the master machine to view it, and the new two nodes you see at this time should be offline.

3. Restart the service on the master machine to make the changes take effect

  $ sudo/etc/init.d/pbs_server Restart
Run Qnodes again on the master machine to see the new join node state, at which time the status becomes free, which means that the newly joined node is in effect for use.


Test

1. Write a test script/opt/test/sleep.sh on the master machine, which reads as follows

#!/bin/sh Sleep

600
2. Submit a job (you can submit more to check that the job is distributed to the newly added machine, such as running the following command 15 times)

  $ qsub/opt/test/sleep.sh
3. Check Homework

  $ qstat-a-N
At this point you can see that the individual jobs are running on that machine.








Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.