zoukankan      html  css  js  c++  java
  • GlusterFS

    1、官方网站

    https://gluster.readthedocs.io/en/latest/     官网入口          

    https://download.gluster.org/pub/gluster/glusterfs     下载资源网站   

    2、Gluster介绍

    Gluster是可伸缩的分布式文件系统,具有高扩展性、高可用性、高性能、可横向扩展的开源软件,并且没有元数据服务器的设计,不存在单点故障隐患。

    3、GLusterFS的集群模式

      GlusterFS集群模式指数据在集群中的存放结构。

      3.1 分布式卷

      这是在未指定任何卷类型的情况下默认创建的卷的类型。文件分布在卷中的各个块之间。因此file1只能存储在brick1或brick2中,不能同时出现,因此。没有数据冗余。这种存储卷可以轻松的缩放卷大小,容量大,但是,由于故障可能导致数据完全丢失。近似于RAID0。

    创建一个分布式卷

    gluster volume create NEW-VOLNAME [transport [tcp | rdma | tcp,rdma]] NEW-BRICK...
    

    例如:

    # gluster volume create test-volume server1:/exp1 server2:/exp2 server3:/exp3 server4:/exp4
    volume create: test-volume: success: please start the volume to access data
    

    显示信息:

    # gluster volume info
    

      3.2 复制卷

      复制卷,复制的份数,决定集群的大小,通常与分布式卷或者条带卷组合使用,解决冗余缺陷。缺点是磁盘利用率低。

      

     创建一个复制的卷

    gluster volume create NEW-VOLNAME [replica COUNT] [transport [tcp |rdma | tcp,rdma]] NEW-BRICK...
    

    例如,穿件具有两个存储服务器的复制卷

    # gluster volume create test-volume replica 3 transport tcp 
          server1:/exp1 server2:/exp2 server3:/exp3
    volume create: test-volume: success: please start the volume to access data
    

      3.3 分布式复制卷

      分布式复制卷结合了分布式和复制卷的特点。文件分布在复制快之间。块数必须是副本数的倍数。

      

     创建分布式复制卷

    gluster volume create NEW-VOLNAME [replica COUNT] [transport [tcp | rdma | tcp,rdma]] NEW-BRICK...
    

    例如: 创建具有俩个镜像的四个节点分布式复制卷

    # gluster volume create test-volume replica 3 transport tcp server1:/exp1 server2:/exp2 server3:/exp3 server4:/exp4 server5:/exp5 server6:/exp6
    volume create: test-volume: success: please start the volume to access data
    

     4、常用操作命令

      添加节点

    gluster peer probe 
    

      例子:

    gluster peer probe server
    

      删除节点

    gluster peer detach
    

      例子:

    gluster peer detach server
    

      4.1 创建卷

    gluster volume create
    示例:gluster volume create volume1  server:/data server1:/data server2:/data

      4.2 启动卷

    gluster volume start 
    示例:gluster volume start volume1

      4.3 停止卷

    gluster volume stop
    示例:gluster volume stop volume1
    

      4.4 删除卷

    gluster volume delete
    示例:gluster volume delete volume1
    

      4.5 查看卷

    gluster volume list      # 列出集群中的所有卷
    gluster volume info[all]  # 查看集群中的卷信息
    gluster volume status [all]   #查看集群中的卷状态
    
  • 相关阅读:
    导航控制器的出栈
    UIPickView的基本使用
    多控制器
    通过Xib加载控制器的View
    从StoryBoard加载控制器
    模仿UIApplication单例
    LaunchScreen原理
    UIWindow
    指定初始化的运用
    零长度数组在内核中的运用
  • 原文地址:https://www.cnblogs.com/BcGTM/p/12302556.html
Copyright © 2011-2022 走看看