CentOS 7.6 部署 GlusterFS 分布式存储系统
发布日期:2021-05-12 18:00:59 浏览次数:11 分类:精选文章

本文共 3366 字,大约阅读时间需要 11 分钟。

GlusterFS������

GlusterFS���������������������������������������������Scale���������������������������������������������������������������������������������������server���������Infiniband RDMA������TCP/IP���������������������������������������������������������GlusterFS���������������������

  • ���������������������������������������������
  • ������������������������������������������������������������������
  • ���������������������������������������������
  • ���������������������������������������������������������������������������������

������������

������GlusterFS���������������������������������������������������������������������������������������GlusterFS���������������������������������������������1G���

������������������������������������

IP HOSTNAME SYSTEM VERSION
192.168.72.73 glusterfs-01 centos7.6
192.168.72.74 glusterfs-02 centos7.6

������GlusterFS������

������centos���������������glusterfs���������

������������������������������������������������������������������������������������

  • ������firewalld���������������SELINUX
  • ������������������firewalld���������������������SELINUX������������������������
  • ���������������������������������������������

    sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/configsystemctl stop firewalldsystemctl disable firewalldsystemctl restart

    ���������������������

    systemctl status firewalld.service | grep activesestatus | grep SELINUX

    ���������������������

    Inactive: inactive (dead)SELinux status:                 disabled

    ������hosts������

    ���������������������������������������

    echo "192.168.72.73 glusterfs-01" >> /etc/hostsecho "192.168.72.74 glusterfs-02" >> /etc/hosts

    ������GlusterFS

    ���������������������������������������GlusterFS���

    yum install -y centos-release-gluster

    ������������������

    ������������������������lsblk������������������������xfs������������������

    mkfs.xfs -i size=512 /dev/sdb

    ���������centos6���������������������xfs������������

    yum install -y xfsprogs

    ������������������������������������etc/fstab���

    mkdir -p /bricks/brick1echo '/dev/sdb /bricks/brick1 xfs defaults 0 0' >> /etc/fstab

    ������������������������������������GlusterFS���

    mount -a

    ������GlusterFS

    ������������������������GlusterFS���������

    yum install -y glusterfs-server

    ������GlusterFS������������������

    systemctl enable glusterd --nowsystemctl status glusterd | grep active

    ������������������������

    ���glusterfs-01���������������������������������������

    gluster peer probe glusterfs-02

    ������������������������

    gluster pool listgluster peer status

    ������GlusterFS���������

    ���������������������������������������

    mkdir /bricks/brick1/gv0

    ���glusterfs-01������������������������������������������Replicate������

    gluster volume create gv0 replica 2 glusterfs-01:/bricks/brick1/gv0 glusterfs-02:/bricks/brick1/gv0gluster volume start gv0

    ��������� ������������������������

    gluster volume infogluster volume status gv0

    GlusterFS������

    ������GlusterFS������������

    mount -t glusterfs glusterfs-01:/gv0 /mnt

    ���������������������

    df -Th | grep glusterfs

    ���������������������

    for i in `seq -w 1 100`; do cp -rp /var/log/messages /mnt/copy-test-$i; done

    ���������������������

    ls -lA /bricks/brick1/gv0ls -lA /mnt

    ���������������������������������������������������������������������������������������������������������

    ���������GlusterFS���������������

    ������������������������GlusterFS���������������������������������

    上一篇:Centos 7.6 使用 kubekey 部署 kubesphere v3.1.0
    下一篇:android build.gradle调用config.gradle属性

    发表评论

    最新留言

    留言是一种美德,欢迎回访!
    [***.207.175.100]2025年04月06日 14时35分38秒