免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2366 | 回复: 0
打印 上一主题 下一主题

[GlusterFS] client 挂载后只能ls 查看文件,不能touch创建文件。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-06-21 10:31 |只看该作者 |倒序浏览
本帖最后由 duchengbin 于 2012-06-21 10:47 编辑

我用的GlusterFS 版本是 3.1.2
采用命令行的方式配置的,只做了两步

服务器配置
配置DNS:
Server1 glusterfs1
Server2 glusterfs2
/etc/init.d/glusterd start
gluster volume create glusterFS replica 2 transport tcp glusterfs1:/data/glusterFS glusterfs2:/data/glusterFS
gluster volume start glusterFS

客户端配置
配置DNS(跟 上面一样)
将以下内容加入到 /etc/fstab文件中。
glusterfs1:/glusterFS /var/export        glusterfs       auto,rw,allow_other,default_permissions,max_read=131072 0 0


然后挂载  /var/export  用 df 命令可以查看到 glusterfs1:/glusterFS /var/export 这个已经挂载成功.
cd /var/export 中  ls 可以查看文件。但是 touch testfile 时就卡了。
我开了另一个终端看了一下日志文件内容如下:
+------------------------------------------------------------------------------+
[2012-06-21 09:23:43.392845] I [rpc-clnt.c:1536:rpc_clnt_reconfig] 0-export-client-0: changing port to 24010 (from 0)
[2012-06-21 09:23:43.392919] I [rpc-clnt.c:1536:rpc_clnt_reconfig] 0-export-client-1: changing port to 24010 (from 0)
[2012-06-21 09:23:47.299884] I [client-handshake.c:1090:select_server_supported_programs] 0-export-client-0: Using Program GlusterFS-3.1.0, Num (1298437), Version (310)
[2012-06-21 09:23:47.300228] I [client-handshake.c:913:client_setvolume_cbk] 0-export-client-0: Connected to 10.9.9.56:24010, attached to remote volume '/home/export'.
[2012-06-21 09:23:47.300258] I [afr-common.c:3141:afr_notify] 0-export-replicate-0: Subvolume 'export-client-0' came back up; going online.
[2012-06-21 09:23:47.300301] I [client-handshake.c:1090:select_server_supported_programs] 0-export-client-1: Using Program GlusterFS-3.1.0, Num (1298437), Version (310)
[2012-06-21 09:23:47.300566] I [client-handshake.c:913:client_setvolume_cbk] 0-export-client-1: Connected to 10.9.9.57:24010, attached to remote volume '/home/export'.
[2012-06-21 09:23:47.306725] I [fuse-bridge.c:3339:fuse_graph_setup] 0-fuse: switched to graph 0
[2012-06-21 09:23:47.306852] I [fuse-bridge.c:2927:fuse_init] 0-glusterfs-fuse: FUSE inited with protocol versions: glusterfs 7.13 kernel 7.18
[2012-06-21 09:23:47.307342] I [afr-common.c:1520:afr_set_root_inode_on_first_lookup] 0-export-replicate-0: added root inode
[2012-06-21 09:27:52.32394] I [fuse-bridge.c:3241:fuse_thread_proc] 0-fuse: unmounting /var/export
[2012-06-21 09:27:52.32803] W [glusterfsd.c:727:cleanup_and_exit] (-->/lib64/libc.so.6(clone+0x6d) [0x7ff57dde24bd] (-->/lib64/libpthread.so.0(+0x7c6c) [0x7ff57e09bc6c] (-->/usr/sbin/glusterfs(glusterfs_sigwaiter+0xdd) [0x40665d]))) 0-: received signum (15), shutting down

E [client3_1-fops.c:1303:client3_1_entrylk_cbk] 0-export-store2-client-0: remote operation failed: Success
E [client3_1-fops.c:1303:client3_1_entrylk_cbk] 0-export-store2-client-1: remote operation failed: Success

求各位高手帮忙解决,我在Server1上配置了然后挂载  查看和写入都没有问题
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP