#yum install centos-release-gluster -y
yum -y install centos-release-gluster312
centos6只能安装到3.12版本,不能安装新版本
修改/etc/yum.repos.d/Centos-Gluster-4.1.repo
改成3.12
#yum --enablerepo=centos-gluster*-test install glusterfs-server -y
#yum install glusterfs-server -y
yum install glusterfs glusterfs-fuse glusterfs-server
yum install nfs-utils
启动服务
/etc/init.d/glusterd start
chkconfig glusterd on
查看节点
gluster peer status
添加节点
gluster peer probe test10
gluster peer probe test11
gluster peer probe test12
移除节点:
gluster peer detach test12 #https://www.cnblogs.com/terrycy/p/5915263.html
查看卷
gluster vol info
创建
gluster volume create nfs10 test10:/opt/nfs10 force
启动
gluster volume start nfs10
查看状态
gluster vol status
mount
yum -y install glusterfs glusterfs-fuse
mkdir -p /akin
mount -t glusterfs test10:nfs10 /akin
写
dd if=/dev/zero of=test.dbf bs=8k count=100000 oflag=direct
读
dd if=test.dbf bs=8k count=100000 of=/dev/null
vi /etc/fstab
test10:nfs10 /akin glusterfs defaults,_netdev 0 0
阅读(1291) | 评论(0) | 转发(0) |