首先从Github可以直接下载适用于ubuntu 18.04的release,解压zip文件就有这么几个deb包
root@openpbs-master:~/openpbs_20.0.1.ubuntu_1804# ls
COPYRIGHT openpbs-client_20.0.1-1_amd64.deb openpbs-execution_20.0.1-1_amd64.deb
LICENSE openpbs-debuginfo_20.0.1-1_amd64.deb openpbs-server_20.0.1-1_amd64.deb
README.md openpbs-devel_20.0.1-1_amd64.deb
master角色安装
root@openpbs-master:~/openpbs_20.0.1.ubuntu_1804# dpkg -i openpbs-server_20.0.1-1_amd64.deb
Selecting previously unselected package openpbs-server.
(Reading database ... 17199 files and directories currently installed.)
Preparing to unpack openpbs-server_20.0.1-1_amd64.deb ...
Unpacking openpbs-server (20.0.1-1) ...
dpkg: dependency problems prevent configuration of openpbs-server:
openpbs-server depends on libhwloc5 (>= 1.11.9); however:
Package libhwloc5 is not installed.
openpbs-server depends on libical3 (>= 3.0.0); however:
Package libical3 is not installed.
openpbs-server depends on libpq5; however:
Package libpq5 is not installed.
openpbs-server depends on libpython3.6 (>= 3.6.5); however:
Package libpython3.6 is not installed.
openpbs-server depends on libtcl8.6 (>= 8.6.0); however:
Package libtcl8.6 is not installed.
openpbs-server depends on libtk8.6 (>= 8.6.0); however:
Package libtk8.6 is not installed.
dpkg: error processing package openpbs-server (--install):
dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.27-3ubuntu1.4) ...
Errors were encountered while processing:
openpbs-server
不要慌,我们让apt
自己去解决包依赖问题
root@openpbs-master:~/openpbs_20.0.1.ubuntu_1804# apt install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
libhwloc-plugins libhwloc5 libical3 libltdl7 libpq5 libpython3.6 libtcl8.6 libtk8.6 libxss1 ocl-icd-libopencl1
Suggested packages:
libhwloc-contrib-plugins tcl8.6 tk8.6 opencl-icd
The following NEW packages will be installed:
libhwloc-plugins libhwloc5 libical3 libltdl7 libpq5 libpython3.6 libtcl8.6 libtk8.6 libxss1 ocl-icd-libopencl1
0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 3567 kB of archives.
After this operation, 13.8 MB of additional disk space will be used.
Do you want to continue? [Y/n]
…………略…………
*** PBS Installation Summary
***
*** Postinstall script called as follows:
*** /opt/pbs/libexec/pbs_postinstall server 20.0.1 /opt/pbs /var/spool/pbs postgres
***
*** No configuration file found.
*** Creating new configuration file: /etc/pbs.conf
*** Replacing /etc/pbs.conf with /etc/pbs.conf.20.0.1
*** /etc/pbs.conf has been created.
***
*** Registering PBS as a service.
update-rc.d: error: no runlevel symlinks to modify, aborting!
Synchronizing state of pbs.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable pbs
***
*** PBS_HOME is /var/spool/pbs
*** Creating new file /var/spool/pbs/pbs_environment
*** WARNING: TZ not set in /var/spool/pbs/pbs_environment
***
*** The PBS server has been installed in /opt/pbs/sbin.
*** The PBS scheduler has been installed in /opt/pbs/sbin.
***
*** The PBS communication agent has been installed in /opt/pbs/sbin.
***
*** The PBS MOM has been installed in /opt/pbs/sbin.
***
*** The PBS commands have been installed in /opt/pbs/bin.
***
*** End of /opt/pbs/libexec/pbs_postinstall
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for libc-bin (2.27-3ubuntu1.4) ...
其实这个所谓post install并不完全,还需要再执行/opt/pbs/libexec/pbs_habitat
来初始化PBS服务,最后用/opt/pbs/sbin/pbs_server -t create
创建队列:
root@openpbs-master:~# /opt/pbs/libexec/pbs_habitat
***
*** Setting default queue and resource limits.
***
Connecting to PBS dataservice.....connected to PBS dataservice@openpbs-master
*** End of /opt/pbs/libexec/pbs_habitat
root@openpbs-master:~# /opt/pbs/sbin/pbs_server -t create
Connecting to PBS dataservice.....connected to PBS dataservice@openpbs-master
Server@openpbs-master openpbs-master: Create mode and server database exists,
do you wish to continue y/(n)?y
Licenses valid for 10000000 Floating hosts