RHCS 分布式文件存储
CMAN 管理集群的工具
RGMANAGER 用来监管集群应用
GFS2 全局文件系统第2版
ISCSI 网络存储
clvm 集群逻辑卷
一、环境准备(4台CentOS,3个节点,1个共享存储)
集群环境
(1).分别修改4个主机的名称和hosts文件
hostname node1.zjn.com node2... node3... target...
[root@node1 ~]# vim /etc/hosts
192.168.4.1 node1.zjn.com node1
192.168.4.2 node2.zjn.com node2
192.168.4.3 node3.zjn.com node3
192.168.4.4 target.zjn.com target
scp /etc/hosts target(node2,node3):/etc
(2).配置各节点与跳板机ssh互相免密码验证
node1,node2,node3生成密钥传给target
target生成密钥分别传给node1,node2,node3
ssh-keygen -t rsa
ssh-copy-id target #ssh target
ssh-copy-id node1 #ssh node1
(3).配置各节点时间同步
时间服务器:
node1:
rpm -q ntp
vim /etc/ntp.conf
#注释掉22-25行,添加
server 127.127.1.0 #本地时间做标准
fudge 127.127.1.0 stratum 10 #等级0-15
restrict 192.168.4.0 mask 255.255.255.0 nomodify notrap
service ntpd start
##ntpq -p 显示当前时间服务器的状态
##ntpstat 查看
其余3个客户端的操作:
vim /etc/ntp.conf
#注释掉22-25行,添加
server192.168.4.1
restrict192.168.4.1 nomodify notrap noquery
ntpdate -u 192.168.4.1
service n