Sign in

1. 安装glusterfs和heketi

```code

#所有存储服务器下载安装glusterfs

yum install centos-release-gluster -y

yum install glusterfs-server -y

#启动

systemctl start glusterd

#安装heketi

yum install -y heketi heketi-client

```

2. 部署gluster集群

```code

gluster peer probe node0

gluster peer probe node1

gluster peer probe node2

gluster peer status

mkdir /data/gluster/data -p

gluster volume create glusterfs_volume replica 3 node0:/data/gluster/data node1:/data/gluster/data node2:/data/gluster/data force

gluster volume info

gluster volume start glusterfs_volume

yum install -y glusterfs glusterfs-fuse

```

3. 配置heketi

```code

[root@node0 ~]# cat /etc/heketi/heketi.json

{

“_port_comment”: “Heketi Server Port Number”,

“port”: “8080”,

“_use_auth”: “Enable JWT authorization. Please enable for deployment”,

“use_auth”: false,

“_jwt”: “Private keys for access”,

“jwt”: {

“_admin”…

Linjinbao

Get the Medium app