微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。