Linux GFS 配置方法及注意事项
现测试基于RedHat的GFS简单 配置方法及注意事项实验记录如下:
1.GFS安装配置
在10.100.15.11和10.100.15.12 配置yum源,创建配置文件,启动相关进程,两个节点做同样的配置

2.安装集群套件及GFS RPM包:

注,使用gfs文件系统,需要安装如下rpm包:

3.2节点配置cluster 集群文件

注:name 必须和vg名字相同
4.2个节点设置服务启动并允许开机启动如下服务
| [root@localhost ~]# chkconfig rgmanager on [root@localhost ~]# chkconfig ricci on [root@localhost ~]# chkconfig cman on [root@localhost ~]# chkconfig clvmd on [root@localhost ~]# chkconfig gfs2 on |
同时启动这些服务:

[root@localhost ~]# clustat

4. 在共享存储上划分LVM,在一个节点上操作即可
| [root@localhost ~]# pvcreate /dev/mpath |
5.格式化lvm卷
| [root@localhost ~]# mkfs.gfs2 -p lock_dlm -t mpath300G:300G_gfs -j 2 |
6. 在两个节点上分别挂载,并测试写入数据
| [root@localhost ~]# mount -t gfs /dev/mpath300G/300G_gfs /mpathdata/ |
