Redhat5.4下两台服务器FC直连磁盘阵列搭建GFS集群文件系统 配置和步骤
Redhat5.4下两台服务器FC直连磁盘阵列搭建GFS集群文件系统 配置和步骤
一、环境
yun-1-3:192.168.1.215
yun-1-5:192.168.1.214
FC共享磁盘阵列
二、需要安装相关软件(在各节点)
如果安装时没有安装相关软件。需要单独安装
yum -y groupinstall "Cluster Storage" "Clustering"
(没有yum的镜像需要配置镜像)
[root@yun-1-5 yum.repos.d]# cd /etc/yum.repos.d/
[root@yun-1-5 yum.repos.d]# ls *
media.repo rhel-debuginfo.repo.bak rhel-source.repo
[root@yun-1-5 yum.repos.d]# cat media.repo
[base]
name=Server
baseurl=ftp://192.168.1.247/pub/Server
gpgcheck=0
[VT]
name=VT
baseurl=ftp://192.168.1.247/pub/VT
gpgcheck=0
[Cluster]
name=Cluster
baseurl=ftp://192.168.1.247/pub/Cluster
gpgcheck=0
[CS]
name=ClusterStorage
baseurl=ftp://192.168.1.247/pub/ClusterStorage
gpgcheck=0
[root@yun-1-5 yum.repos.d]# cat rhel-source.repo
[rhel-source]
name=Red Hat Enterprise Linux $releasever - Source
baseurl=ftp://http://doc.xuehai.net/redhat/linux/enterprise/$releasever/en/os/SRPMS/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
三、修改lvm.conf (在各节点)
vi /etc/lvm/lvm.conf
修改将locking_type值由默认的1改为3。
四、修改cluster.conf (在各节点)
vi /etc/cluster/cluster.conf
五、将GFS组件添加为开机自启动 (在各节点)
chkconfig iptables off
service iptables stop
chkconfig cman on
chkconfig gfs2 on
chkconfig clvmd on
chkconfig rgmanager on
service cman restart
service gfs2 restart
service clvmd restart
service rgmanager restart
查看集群状态
clustat
[root@yun-1-5 yum.repos.d]# clustat
Cluster Status for alpha @ Tue May 29 17:01:03 20
12
Member Status: Quorate
Member Name ID Status
------ ----