问题:
[root@hosted_engine_1 /]# mount -t glusterfs 192.168.184.11:/Govirt gluster/
[root@hosted_engine_1 gluster]# touch afaf
touch: cannot touch ‘afaf’: Read-only file system
解决:
日志报错:
[2016-03-09 10:32:31.626006] I [rpc-clnt.c:1847:rpc_clnt_reconfig] 4-Govirt-client-4: changing port to 49152 (from 0)
[2016-03-09
10:32:31.631268] E [socket.c:2278:socket_connect_finish]
4-Govirt-client-4: connection to 192.168.184.14:49152 failed (No route
to host)
防火墙打开49152端口解决
[root@hosted_engine_1 test]# vim /etc/sysconfig/iptables
-A INPUT -m state --state NEW -m tcp -p tcp --dport 49152 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 24007 -j ACCEPT
[root@hosted_engine_1 test]# systemctl restart iptables
[root@hosted_engine_1 /]# mkdir /gluster/test
[root@hosted_engine_1 test]# cd /gluster/test/
[root@hosted_engine_1 test]# touch afaf
[root@hosted_engine_1 test]# ll
total 0
-rw-r--r-- 1 root root 0 Mar 9 23:00 afaf
[root@hosted_engine_1 test]# rm afaf
rm: remove regular empty file ‘afaf’? y
阅读(3737) | 评论(0) | 转发(0) |