centos6.3部署glusterfs-3.4

1,将glusterfs的yum源加入到本机中


    wget -P /etc/yum.repos.d http://download.gluster.org/pub/gluster/glusterfs/LATEST/EPEL.repo/glusterfs-epel.repo


2,通过glusterfs的yum源进行安装


   yum -y  install glusterfs{-fuse,-server,-geo-replication}


3,启动glusterfs服务
  
   service glusterd start


4,将机器加入到glusterfs集群中


   gluster peer probe  ip 


5,单机环境准备  


   mkdir -p /home/glusterfs


6,创建分布式卷,两副本


   gluster volume create gfs replica 2 10.10.10.1:/home/glusterfs     10.10.10.2:/home/glusterfs 


7,启动分布式卷


   gluster volume start gfs


8,查看状态


   gluster volume info


9,挂载分布式存储


   mount -t glusterfs  10.10.10.1:/gfs    /home/share


10,扩容(注意扩容的机器数量需要是副本数的整数倍)


   gluster volume add-brick gfs  10.10.10.3:/home/glusterfs      10.10.10.4:/home/glusterfs 


11,ACK控制(需要用逗号隔开)


   gluster volume set gfs auth.allow 10.10.10.5,10.10.10.6


12,开启quota


    gluster volume quotagfs enable/disable


13,对某一分区开启quota限制1GB的空间,如果达到quota,则会直接报错Disk quota exceeded,无法继续写入


    gluster volume quota gfs limit-usage /test-quota 1GB


14,查询quota 


    gluster volume quotagfs  list


15,删除quota


    gluster volume quotagfs remove/test-quota


16,开启profile工具


    gluster volume profile gfs  start/stop


17,profile常用命令介绍


    gluster volume profile gfs  info


18,删除卷


    gluster volume stop gfs  &&  gluster volume delete gfs

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值