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.