2021-06-07

[root@centos~]vim /etc/host

在这里插入图片描述

[root@centos~]scp /etc/hosts root@192.168.100.20:/etc/root@192.168.100.20’s password:
hosts
[root@centos~]scp /etc/hosts root@192.168.100.50:/etc/root@192.168.100.50’s password:
hosts
[root@centos~]scp /etc/hosts root@192.168.100.70:/etc/root@192.168.100.70’s password:
hosts
[root@centos~]scp /etc/hosts root@192.168.100.80:/etc/root@192.168.100.80’s password:
hosts
[root@centos~]scp /etc/hosts root@192.168.100.20:/etc/
[root@centos~]fdisk /dev/sdb

在这里插入图片描述

[root@centos~]fdisk /dev/sdb

在这里插入图片描述

[root@centos~]mkfs.xfs /dev/sdb1
[root@centos~]mkfs.xfs /dev/sdb2
[root@centos~]mkfs.xfs /dev/sdb3
[root@centos~]mkfs.xfs /dev/sdb5
[root@centos~]mkfs.xfs /dev/sdb6
[root@centos~]vim /etc/fstab
[root@centos~]reboot
[root@centos~]df -T
[root@centos~]mount -o loop gluserfs软件.ios /mnt/
[local]
name=centos
baserul=file:///mnt/gfsrepo
enabled=1
gpgcheck=0
[root@centos~]scp /etc/yum.repos.d/centos.repo root@192.168.100.20:/etc/yum.repos.d/root@192.168.100.20’s password:
centos.repo
[root@centos~]scp /etc/yum.repos.d/centos.repo root@192.168.100.50:/etc/yum.repos.d/root@192.168.100.50’s password:
centos.repo
[root@centos~]scp /etc/yum.repos.d/centos.repo root@192.168.100.70:/etc/yum.repos.d/root@192.168.100.70’s password:
centos.repo
[root@centos~]scp /etc/yum.repos.d/centos.repo root@192.168.100.80:/etc/yum.repos.d/root@192.168.100.80’s password:
centos.repo
[root@centos~]yum -y install glusterfs glusterfs-server glusterfs-fuse glusterfs-rdma
[root@centos~]systemctl start glusterd.service
[root@centos~]systemctl start glusterfsd.service
[root@centos~]systemctl enable glusterfsd.service
[root@centos~]systemctl enable glusterfsd.service
[root@centos~]gluster peer probe centos02
[root@centos~]gluster peer probe centos03
[root@centos~]gluster peer probe centos04

在这里插入图片描述

[root@centos~]gluster volume create fb-Volume centos01:/sdb1 centos02:/sdb1 force
[root@centos~]gluster volume start FB-Vlume
[root@centos~]gluster volume create TD-Volume stripe2 centos01:/sdb2 centos02:/sdb2 force
[root@centos~]gluster volume start FD-Vlume
[root@centos~]gluster volume create FZ-Volume replic 2 centos01:/sdb3 centos02:/sdb3 force
[root@centos~]gluster volume start FZ-Vlume
[root@centos~]gluster volume create FBFZ-Volume replic 2 centos03:/sdb3 centos04:/sdb3 centos03:/sbd6 centos04:/sdb6 force
[root@centos~]gluster volume start FBFZ-Volume

相关文章

Centos下搭建性能监控Spotlight
CentOS 6.3下Strongswan搭建IPSec VPN
在CentOS6.5上安装Skype与QQ
阿里云基于centos6.5主机VPN配置
CentOS 6.3下配置multipah
CentOS安装、配置APR和tomcat-native