Category Archives: Glusterfs

罪己诏:关于备份的几个重要的点

2020年3月24日到2020年4月14日,是本站经历过的最黑暗的20天。 在这20天里,先是经历了MySQL官方docker镜像的bug导致MySQL数据不正常,经过了各种翻箱倒柜,找到了一个古老版本的网站备份,还原了2020年1月 备份的数据。在此期间,也终于意识到了两点: 1. 无论何时都不能停止对数据的备份; 2. 不要轻易的删除备份数据; 3. 如果有迁移任务,一定要停止备份并删除备份数据,一定要在迁移任务完成或rollback 任务完成之后重新启用备份。 也许是对于Redhat旗下产品过于自信,也许是对于“个人网站的数据”重视度不够高,在网站恢复后,我只是重新启用了本地备份的task,并没有启用远程备份,究其原因……懒,再加上那段时间忙着离职之前的一些工作,毕竟不想把过多的ticket都handover给其他同事。 然后逗比的一幕又发生了……

Posted in About, Glusterfs, Servuce | Tagged , | Leave a comment

Glusterfs 排错

出现诸如rpc服务不可用导致glusterfs不可使用 报错的情况 Dec  9 10:36:32 node3 systemd: Cannot add dependency job for unit loopback_gluster.service, ignoring: Unit not found. Dec  9 10:36:32 node3 systemd: rpcbind.socket failed to listen on sockets: Address family not supported by protocol Dec  9 10:36:32 node3 systemd: Failed to listen … Continue reading

Posted in Glusterfs, Servuce | Tagged , , | Leave a comment

GlusterFS与Kubernetes的适配

安装epel源 pssh -l auto -h /opt/node.list -i ‘sudo yum install -y epel-release*’ 安装heketi

Posted in Glusterfs, Kubernetes | Tagged , , , | Leave a comment

glusterfs 的缩容、扩容和替换(转载)

Source: https://www.cnblogs.com/bfmq/p/9990467.html 1. 扩容操作 1 [root@g1 ~]# gluster peer probe g3                # 将新节点添加到集群里,如果是原本集群内的机器操作则省略 2 peer probe: success. Host g3 port 24007 already in peer list        # 这台机器添加过了 3 [root@g1 ~]# gluster volume info test                             # 此时该卷块设备为4个 4 5 Volume Name: test … Continue reading

Posted in Glusterfs, Servuce | Tagged , | Leave a comment

GlusterFS Server的各个模式的详细介绍

GlusterFS 几种volume 模式说明:一、 默认模式,既DHT, 也叫 分布卷: 将文件已hash算法随机分布到 一台服务器节点中存储。 gluster volume create test-volume server1:/exp1 server2:/exp2

Posted in Glusterfs, Servuce | Tagged , | Leave a comment