没有合适的资源?快使用搜索试试~ 我知道了~
glusterfs的那些事-3.4.31
资源详情
资源评论
资源推荐
![](https://csdnimg.cn/release/download_crawler_static/86310203/bg1.jpg)
85
3.4.3. graph
和
volfile
这里分享一下什么是 volfile 和 graph,其实在前面的一节内容中,这里也有
使用到 volfile 文件,就是在/var/lib/glusterd/vols 下面的文件中,如下所示。
1. [root@gfs01 ~]# ls /var/lib/glusterd/vols/test-replica/
2. bricks quota.conf
test-replica.gfproxyd.vol
3. cksum snapd.info
test-replica-shd.vol
4. info test-replica.192.168.0.110.glusterfs-tes
t-replica.vol test-replica.tcp-fuse.vol
5. node_state.info test-replica.192.168.0.111.glusterfs-tes
t-replica.vol trusted-test-replica.tcp-fuse.vol
6. quota.cksum test-replica.192.168.0.112.glusterfs-tes
t-replica.vol trusted-test-replica.tcp-gfproxy-fuse.vol
7.
8. [root@gfs01 ~]# ls /var/lib/glusterd/vols/test-replica/te
st-replica.192.168.0.110.glusterfs-test-replica.vol
9. /var/lib/glusterd/vols/test-replica/test-replica.192.168.
0.110.glusterfs-test-replica.vol
这里的 vol 文件就是一个 volfile 了,那么这里为什么 glusterfs 官方不使用
xml,json 或者 yaml 文件呢?因为 glusterfs 是项目在 2005 就开始了,那时
候现在主流的配置文件格式这些还没有,或者还不是很出名,因此当时就选择
volfile 了,也一直保留了下来。另外因为这个配置文件的格式问题,也不算是
集群的一些影响到性能或者代码层次结构的,因此虽然没有用到现在主流的方
式,但是并不影响真正使用。
那么这里 volfile 中记录的其实就是 graph,也就是不同的 xlator 功能结构
的组织结构顺序,下面可以简单看看这个文件来感受一下。
1. [root@gfs01 ~]# cat /var/lib/glusterd/vols/test-replica/t
est-replica.192.168.0.110.glusterfs-test-replica.vol
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![rpm](https://img-home.csdnimg.cn/images/20210720083646.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![avatar](https://profile-avatar.csdnimg.cn/21ae62be29bc4890a6eec52865498801_weixin_35825858.jpg!1)
巴蜀明月
- 粉丝: 33
- 资源: 302
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)
评论0