安装 Fsched CE
Fsched CE 需要您自行手动安装 ,本安装流程基于ansible的脚本,用于快速部署 Fsched CE 集群。
安装步骤
-
确认安装依赖
确认集群节点已有:
- 共享的home目录
- 统一认证
- 时间同步
确认ansible主机已有:
- 安装了ansible
- 能通过root用户和ssh key访问集群节点
-
在ansible主机解压fsched远程安装包
参数:
- VERSION: fsched远程安装包的版本
tar zxvf fsched-ce-${VERSION}-remote-install.tar.gz
cd fsched-ce-${VERSION}-remote-install/ce-install -
根据集群信息修改
inv.yml
中各集群节点的hostname和ip示例如下:
vi inv.yml
head:
hosts:
partition-qhkjh-1: # specify hostname of head
ansible_user: root
ansible_host: 10.0.10.2 # specify ip address of head
compute:
hosts:
partition-qhkjh-2: # specify hostname of compute 1
ansible_user: root
ansible_host: 10.0.10.4 # specify ip address of compute 1
partition-qhkjh-3: # specify hostname of compute 2
ansible_user: root
ansible_host: 10.0.10.3 # specify ip address of compute 2 -
运行安装脚本
参数:
- SSH_KEY_PATH:登录到集群节点的ssh key文件的路径
- SOURCE_PATH:
fsched-ce-${VERSION}-remote-install
目录下fsched-ce-${VERSION}.tar.gz
文件的完整路径
ansible-playbook --private-key ${SSH_KEY_PATH} --inventory inv.yml --extra-vars "source_path=${SOURCE_PATH}" fsched-ce.yml