GlusterFS源码解析—— GlusterFS 命令行常见错误
来源:互联网 发布:淘宝 名龙堂 怎么样 编辑:程序博客网 时间:2024/06/06 20:46
原文地址:http://write.blog.csdn.net/postedit/25927643
问题1
[root@localhost ~]# gluster peer status
Connection failed. Please check if gluster daemon is operational.
原因:未开启glusterd服务
解决方法:开启glusterd服务
/etc/init.d/glusterd start
问题2
[root@localhost ~]# gluster peer probe 192.168.230.130
peer probe: failed: Probe returned with unknown errno 107
原因:日志中打印[2014-05-15 15:55:25.929461] I [glusterd-handler.c:2836:glusterd_probe_begin] 0-glusterd:Unable to find peerinfo for host: 192.168.230.130 (24007)
防火墙没开启24007端口
解决方法:开启24007端口或者关掉防火墙
/sbin/iptables -I INPUT -p tcp --dport 24007 -j ACCEPT # 开启24007端口
/etc/init.d/iptables stop # 关掉防火墙
注:
也可以使用主机名来代替IP,修改/etc/hosts文件实现
gluster peer probe server-130
问题3
volume create volume1 192.168.230.135:/tmp/brick1
volume create: volume2: failed
不能只使用一个server上的brick创建volume,需要至少两个brick,或者在client主机(这里为192.168.230.134)上使用一个brick创建volume。
gluster> volume create volume1 192.168.230.134:/tmp/brick1 forcevolume create: volume1: success: please start the volume to access datagluster> volume infoVolume Name: volume1Type: DistributeVolume ID: b01a2c29-09a6-41fd-a94e-ea834173a6a3Status: CreatedNumber of Bricks: 1Transport-type: tcpBricks:Brick1: 192.168.230.134:/tmp/brick1gluster>gluster> volume create volume2 192.168.230.134:/tmp/brick2 192.168.230.135:/tmp/brick2 forcevolume create: volume2: success: please start the volume to access datagluster> volume info Volume Name: volume1Type: DistributeVolume ID: b01a2c29-09a6-41fd-a94e-ea834173a6a3Status: CreatedNumber of Bricks: 1Transport-type: tcpBricks:Brick1: 192.168.230.134:/tmp/brick1 Volume Name: volume2Type: DistributeVolume ID: 4af2e260-70ce-49f5-9663-9c831c5cf831Status: CreatedNumber of Bricks: 2Transport-type: tcpBricks:Brick1: 192.168.230.134:/tmp/brick2Brick2: 192.168.230.135:/tmp/brick2
问题4
创建一个volume后删除,再使用同名的brick创建volume失败。
gluster> volume create test 192.168.230.134:/tmp/brick1 forcevolume create: test: success: please start the volume to access datagluster> volume info Volume Name: testType: DistributeVolume ID: c29f75d2-c9f5-4d6f-90c5-c562139ab9cdStatus: CreatedNumber of Bricks: 1Transport-type: tcpBricks:Brick1: 192.168.230.134:/tmp/brick1gluster> volume delete test forceUsage: volume delete <VOLNAME>gluster> volume delete testDeleting volume will erase all information about the volume. Do you want to continue? (y/n) yvolume delete: test: successgluster> volume create test 192.168.230.134:/tmp/brick1 force<span style="color:#FF0000;">volume create: test: failed: /tmp/brick1 or a prefix of it is already part of a volume</span>
因为volume delete时并未删掉create时创建的目录,需要手动删除后再使用。
- GlusterFS源码解析—— GlusterFS 命令行常见错误
- GlusterFS源码解析 —— GlusterFS 简介
- GlusterFS源码解析 —— GlusterFS 日志
- GlusterFS源码解析 —— GlusterFS 配置
- GlusterFS源码解析 —— GlusterFS 源码安装
- GlusterFS源码解析 —— GlusterFS 内存分配方式
- GlusterFS源码解析 —— GlusterFS 结构体系分析
- GlusterFS错误
- 实习成果—GlusterFS
- glusterfs——volume管理
- glusterfs部分错误解读
- GlusterFS命令解析过程
- Glusterfs 源码分析后随笔
- GlusterFS:xlator基础源码研究
- glusterfs之iocache 操作解析
- GlusterFS:条带(Stripe)实现源码研究
- Glusterfs:冗余(Replication)源码分析
- GlusterFS:分布式(Distribute )源码分析
- 4、ununtu14.04 NVIDIA显卡驱动
- JPush 服务器消息推送
- CodeForces 197A
- 转载
- vc开发常用的自定义函数,持续更新。。。
- GlusterFS源码解析—— GlusterFS 命令行常见错误
- margin和padding的区别
- javaEE 各类数据库JDBC驱动程序名及连接字符串汇总
- CodeForces 131A
- 第一讲与第二讲
- ScaleAnimation 动画学习
- 学习笔记
- 第三讲
- Oracle SQL Tuning知识