Install TORQUE on centos 8

– 주의 powertool repo 에 있는 것 정상 작동 안함 (4.1 버전)

– compile

  • yum install automake, openssl openssl-devel 
  • github 에서 source download
  • ./autogen.sh
  • ./configure –prefix=/soft/pbs –disable-gcc-warnings –with-scp CXXFLAGS=’-fpermissive’ CPPFLAGS=’-fpermissive’ 
  • make
  • sudo make install

Configuration of TORQUE (centos 8)

  1. 컴퓨터 이름 변경

hostnamectl set-hostname ljspc

/etc/hosts –> ljspc 로 변경

/var/spool/torque/server_name 을 ljspc 로 변경

./torque.setup root 하면 에러 안남

2. 경로 지정

export PATH=/soft/pbs/bin:/soft/pbs/sbin:$PATH

export PBS_SERVER_HOME=/var/spool/torque

export PBS_HOME=/var/spool/torque

export LD_LIBRARY_PATH=$LA_LIBRARY_PATH:/soft/pbs/lib

3. 실행

pbs_sched : submit 된 job 을 실행시킴 pbs_mon : pbsnodes 에서 state 가 down –> free 로 바뀌면서 실행 가능하게바뀜

순서는

trqauthd 실행

torque.setup root 로 새로  db 생성 ( nodes 파일 삭제됨. 다시 만들어야 함)

qterm  (pbs_server 종료)이후 다시 pbs_server, mom, sched  실행

4. nodes간 통신을 위해 ssh 설정되어야 함.

ssh 접속시 암호 없이 접속할 수 있어야함. (ljspc1:  scp ljspc2:/etc/motd /tmp 했을떄 암호 없이 접속 가능해야 함)

ssh-keygen -t rsa (ljspc1 에서)

ssh-copy-id ljs@ljspc2

 —>  성공하고 나면 ljspc1 에서  ljspc2 로 암호 없이 로그인 가능. ssh ljs@ljspc1양방향으로 똑같이. host key 에러나면 , .ssh/know_hosts  에 추가되도록..

5. 사용방법

qsub -l nodes=ljspc2 test.sh

6. 참고자료

http://docs.adaptivecomputing.com/torque/5-1-1/Content/topics/hpcSuiteInstall/manual/1-installing/installingTorque.htm

compile 위에 나온 것 참고.. 설정은 centos 6에 맞춰서

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 항목은 *(으)로 표시합니다