CentOS上安装 GridEngineServer

2025-11-05 05:23:29

1、下载相关rpm包后, 可以直接

yum localinstall gridengine-*

2、可能需要的依赖包

yum install jemalloc munge hwloc

 # CentOS 5 的话, hwloc 版本要1.4以上, epel的只有 1.1

3、安装完成后, 相关文件在 /opt/sge 下面, 运行里面的

start_gui_installer

4、先添加管理端.建议把服务端的 /opt/sge 使用NFS

[root@oge sge]# cat /etc/exports  

/opt/sge 192.168.101.0/255.255.255.0(rw,no_root_squash,sync,no_subtree_check,nohide)

5、客户端直接挂载server的/opt/sge

写了个脚本

#!/bin/bash 

 sge=/opt/sge mount -t nfs -o 'rw,intr,tcp' oge:$sge $sgesleep 4# sgeexecd.p6444 运行脚本名可能不一样[ `ls $sge | wc -l ` -ge 0 ] && /etc/init.d/sgeexecd.p6444 start

6、安装之前还得做SSH证书认证

ssh-copy-id ~/.ssh/id_rsa.pub oge

7、挂载后, 还是运行, 只是选择只安装执行机. 可能会有DNS反查的问题, 这个时候可以跳过

start_gui_installer

8、完成后, 复制设置环境变量的脚本到profile.d

cp /opt/sge/default/common/settings.csh  /etc/profile.d/sge.csh 

cp /opt/sge/default/common/settings.sh  /etc/profile.d/sge.sh

9、此时可以运行qhost,到此完成基本安装.另外运行任务前要初始化设置的话,可以在

# 执行任务之前初始化一下Queue Control --> Cluster Queues --> Modify --> Execution Method

 Prolog : 执行前执行(脚本要绝对路径,不能用$HOME之类的变量,但脚本内容可以使用变量)

 Epilog : 执行后执行

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
相关推荐
  • 阅读量:115
  • 阅读量:45
  • 阅读量:196
  • 阅读量:140
  • 阅读量:62
  • 猜你喜欢