touch: cannot touch ‘***’: Read-only file system

简介: 问题: [root@hosted_engine_1 /]# mount -t glusterfs 192.168.184.11:/Govirt gluster/ [root@hosted_engine_1 gluster]# touch afaf touch: cannot...

问题:
[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
目录
相关文章
|
7月前
|
Linux Shell 开发工具
linux编辑文件出现write.error.(file.system.full?)
linux编辑文件出现write.error.(file.system.full?)
114 1
|
7月前
|
Shell
adb: error: cannot create file/directory ‘d:/1.png‘: No such file or directory
adb: error: cannot create file/directory ‘d:/1.png‘: No such file or directory
114 0
|
7月前
|
C#
C# File.Copy介绍
C# File.Copy介绍
指定的 filePath 文件不存在
指定的 filePath 文件不存在
59 2
ftok info: No such file or directory
ftok info: No such file or directory
211 0
|
Windows
UE INI文件操作 INI File Operation [ Read / Write ] 插件说明
UE INI文件操作 INI File Operation [ Read / Write ] 插件说明
131 0
FILE
FILE
118 0
Can‘t read file : End of file found 文件:txn_current、current svn无法正常读取文件
Can‘t read file : End of file found 文件:txn_current、current svn无法正常读取文件
Can‘t read file : End of file found 文件:txn_current、current svn无法正常读取文件
|
Linux Windows
SVN更新被Locked,Can't open file 'folder/.svn/tmp/text-base/file.svn-base'
SVN更新被Locked,Can't open file 'folder/.svn/tmp/text-base/file.svn-base'
177 0
SVN更新被Locked,Can't open file 'folder/.svn/tmp/text-base/file.svn-base'
|
Linux
Linux 执行partprobe命令时遇到Unable to open /dev/sr0 read-write (Read-only file system)
在使用fdisk创建分区时,我们会使用partprobe命令可以使kernel重新读取分区信息,从而避免重启系统,但是有时候会遇到下面错误信息“Warning: Unable to open /dev/sr0 read-write (Read-only file system).
3311 0