- 论坛徽章:
- 0
|
本帖最后由 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上配置了然后挂载 查看和写入都没有问题
|
|