2021-06-07

[root@centos~]vim /etc/host
2021-06-07
[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
2021-06-07
[root@centos~]fdisk /dev/sdb2021-06-07
[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
2021-06-07
[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

上一篇:GFS分布式文件系统


下一篇:GlusterFS分布式存储学习笔记