mfs的高可用实现

mfs的高可用配置
实验环境必须保证每个节点有解析:
redhat 7.3

server1 172.25.26.1   mfsmaster节点
server2 172.25.26.2   从节点,就是真正储存数据的节点
server3 172.25.26.3   同server2
server4 172.25.26.4   mfsmaster高可用节点

1.server4上安装master,编辑域名解析,开启服务

[root@server4 3.0.103]# yum install -y moosefs-master-3.0.103-1.rhsystemd.x86_64.rpm

[root@server4 3.0.103]# vim /etc/hosts
172.25.26.1    server1 mfsmaster

2.server1和server4上配置高可用yum源

[root@server1 ~]# vim /etc/yum.repos.d/yum.repo 
[rhel7.3]
name=rhel7.3
baseurl=http://172.25.26.250/rhel7.3/x86_64/dvd
gpgcheck=0

[HighAvailability]
name=HighAvailability
baseurl=http://172.25.26.250/rhel7.3/x86_64/dvd/addons/HighAvailability
gpgcheck=0

[ResilientStorage]
name=ResilientStorage
baseurl=http://172.25.26.250/rhel7.3/x86_64/dvd/addons/ResilientStorage
gpgcheck=0

[root@server1 ~]# scp /etc/yum.repos.d/yum.repo 172.25.26.4:/etc/yum.repos.d/yum.repo
root@172.25.26.4's password: 
yum.repo   

3.在serevr1和server4安装组件

[root@server1 ~]# yum install -y pacemaker corosync
[root@server4 ~]# yum install -y pacemaker corosync

4.在server1和server4上做免密

[root@server1 ~]# ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa): 
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
d7:92:3e:97:0a:d9:30:62:d5:00:52:b1:e6:23:ef:75 root@server1
The key's randomart image is:
+--[ RSA 2048]----+
|    ..+o.        |
|     . . o       |
|      o . .      |
|     o .   o     |
|    . = S + .    |
|     + o B . .   |
|      . + E o    |
|     . . o +     |
|      .   .      |
+-----------------+

[root@server1 ~]# ssh-copy-id server4
[root@server1 ~]# ssh-copy-id server1

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值