*用SCE账号安装,不能用root账号安装
*多次安装前make clean
一、配置ssh
1.修改sshd配置文件
vi /etc/ssh/sshd_config
Subsystem sftp /usr/local/sced/libexec/sftp-server下面加入以下
Subsystem sce /usr/local/sce/cs/bin/sce-server
Subsystem scefs /usr/local/sce/fs/bin/sce-fs
Subsystem mcp /usr/local/sce/mcp/sbin/mcp-server
service sshd restart
2.配置ssh免密码登录
ssh-keygen –t rsa
cd ~/.ssh
chmod 755 ~/.ssh
chmod 400 authorized_keys
cat id_rsa.pub >> authorized_keys
二、安装SCE(CS)
1.安装依赖
yum install mysql-devel -y
yum install libxml2-devel -y
yum install readline-devel -y
2.创建数据库
cd /sce/scripts/database
mysql -usce -p SCEDB < sce_create_sce_tables.sql
3.编译安装SCE
./configure
make && make install-cs-all
4.配置环境变量
vi /etc/profile
export MCP_HOME=/usr/local/sce/mcp
source /etc/profile
5.创建工作目录
mkdir /home/sce/workspace/cs
6.修改配置文件
vi /usr/local/sce/cs/etc/scecs.conf
三、安装SCE(FS)
1.安装依赖
yum install mysql-devel -y
yum install libxml2-devel -y
yum install readline-devel -y
2.创建数据库
cd /sce/scripts/database
mysql -usce -p SCEFSDB < sce_create_sce_fs_tables.sql
3.编译安装SCE
./configure
make && make install-fs
4.配置环境变量
vi /etc/profile
export FS_HOME=/usr/local/sce/fs
exportPATH=${FS_HOME}/bin:${FS_HOME}/bin/report/:${PATH}
export MCP_HOME=/usr/local/sce/mcp
source /etc/profile
5.配置crontab
crontab –e
*/10 * * * */usr/local/sce/fs/bin/auto_queue default
*/1 * * * */usr/local/sce/fs/bin/auto_job
6.创建工作目录
mkdir /home/sce/workspace/fs
7.修改配置文件
vi /usr/local/sce/fs/etc/scefs.conf
8.初始化
cd /usr/local/sce/fs/bin/report
(1)sce-gall-queues install 获取集群所有队列静态信息
(2)sce-all-apps install 汇报应用信息
(3)auto_users install 汇报用户映射信息
三、安装SCE(client)
1.安装依赖
yum install mysql-devel -y
yum install libxml2-devel -y
yum install readline-devel -y
2.编译安装SCE
./configure
make && make install-client
3.配置环境变量
vi /etc/profile
export CLIENT_HOME=/usr/local/sce/client
export PATH=${CLIENT_HOME}/bin:${PATH}
export MCP_HOME=/usr/local/sce/mcp
source /etc/profile
4.修改配置文件
vi /usr/local/sce/client/etc/sce.conf
四、添加HPC
cd /usr/local/sce/fs/hpc/
mkdir wchpc(Hpc下面新建子目录,目录名与hpc名字相同)
cd wchpc
mkdir app etc queue tmp(特定集群目录下面新建app、etc、queue、tmp 四个目录)
(1)cd etc(etc下面创建三个文件)
mkdir /home/sce/workspace/hpc
vi sce_wchpc.conf(文件名是sce_hpcname.conf)
vi static.conf
vi /etc/hosts (hostname需要在/etc/hosts里面配置,目的是ssh这个名字可访问)
vi usermap
cd app(app下封装一个应用)
vi hostname
chmod +x hostname
五、验证
执行sce,进入命令行
执行scels可以正确输出
执行listnodes可以看到集群信息
执行bsub hostname 可以正确提交
执行bjobs 可以查看作业状态
执行scels可以查看作业的.out和.err文件,以作业号命名
出现如此情况时,再次执行 【二8(1)】