how to install glusterfs

本文档提供了详细的GlusterFS集群安装步骤及如何通过GlusterFS协议创建虚拟磁盘映像的方法。从安装RHEL 6系统开始,到安装GlusterFS软件包、创建存储砖块、启动服务,直至创建并启动GlusterFS卷,最后演示了如何使用QEMU工具通过GlusterFS协议创建虚拟机磁盘映像。
1. Install the latest rhel6 (recommend)
2. Install glusterfs package(glusterfs-xxx.el6rhs)
      brew:https://brewweb.devel.redhat.com/packageinfo?packageID=14351
      Please pick up the package with "rhs"
     glusterfs-3.4.0.59rhs-1.el7.x86_64
    glusterfs-libs-3.4.0.59rhs-1.el7.x86_64
    glusterfs-api-3.4.0.59rhs-1.el7.x86_64

 
 3. Create brick
 #mkdir -p /home/brick1

 4. Start service

/bin/systemctl start  glusterd.service


 5. Create volume
 #gluster volume create volume_name node01.mydomain.net:/home/brick1
eg:# gluster volume create qxy 10.66.8.139:/home/brick1


 6. Start volume

# gluster volume start qxy

7Create image by gluster protocol on gluster client.
(gluster-client)#qemu-img create -f qcow2 gluster://$host/$volume/$image.qcow2 30G
(gluster-client)#qemu-img create -f raw gluster://$host/$volume/$image.raw 30G
eg:# qemu-img create -f qcow2 gluster://10.66.8.139/qxy/yaya.qcow2 10G

 9. Boot vm with gluster:
 -drive file=gluster://$host/$volume/$image.qcow2,if=none,id=drive-virtio-disk0,format=qcow2,cache=none,werror=stop,rerror=stop,aio=threads \


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值