install PBS Pro with the RPM package
Download
First download PBS Pro, where the v14.1.0 version is used. Download Address: https://github.com/PBSPro/pbspro/archive/v14.1.0.tar.gz
After downloading, change the file name to pbspro-14.1.0.tar.gz prep machine
Prepare two machines, the machine name is Pbsmaster and Pbsslave respectively.
Modify the/etc/hosts files of two machines to ensure that two machines can access each other. Making RPM Packages
The following command runs with the root user
# mkdir-p/root/rpmbuild/sources/
# mv pbspro-14.1.0.tar.gz/root/rpmbuild/sources/pbspro-14.1.0.tar.gz
# CD /root/rpmbuild/sources && tar zxvf pbspro-14.1.0.tar.gz
# cd/root/rpmbuild/sources/pbspro-14.1.0 & & Rpmbuild-ba Pbspro.spec
After executing the above command, a few RPM packages are generated in the/root/rpmbuild/rpms/x86_64 directory, as follows:
pbspro-client-14.1.0-0.x86_64.rpm
pbspro-debuginfo-14.1.0-0.x86_64.rpm
pbspro-execution-14.1.0-0.x86_ 64.rpm
pbspro-server-14.1.0-0.x86_64.rpm
Install MasterLog on to the master node and run as root
# yum Install-y pbspro-server-14.1.0-0.x86_64.rpm
modifying/etc/pbs.conf files
Pbs_server=pbsmaster
Pbs_start_mom=1
Install slave
Log on to the master node and run as root
# yum Install pbspro-execution-14.1.0-0.x86_64.rpm
modifying/etc/pbs.conf files
Pbs_server=pbsmaster
modifying/var/spool/pbs/mom_priv/config files
$clienthost Pbsmaster
start PBSRun the following command on the Pbsmaster and Pbsslave nodes separately to start PBS
Adding slave nodes to the cluster
# . /etc/profile.d/pbs.sh
# qmgr-c ' Create node Pbsslave '
Test
Log on to the master node using a normal user, and then run
$ . /etc/profile.d/pbs.sh
# View node status
$ pbsnodes-a
# Submit Job
$ Echo ' sleep 123 ' | qsub
# View Job
$ qstat-a
Reprint please indicate this link form link
This article link: http://blog.csdn.net/kongxx/article/details/52708542