我被这个问题困扰了,无法解决,我们有一个网站,人们可以在某个路径(例如临时目录)上上传他们的视频,然后我们的管理员将这些视频移动到我们服务器的另一个位置,这个存储的后端是glusterfs,突然间我们的服务器出现了这个错误,我不知道为什么以及如何解决它,顺便说一下,过了一会儿我们的管理员重试移动这些文件,问题就解决了,我也应该说我是这家公司的新系统管理员,我不熟悉gluster。
glusterfs 3.12.14
mnt_sv3.log:[2020-08-02 23:01:54.869832] W [fuse-bridge.c:1381:fuse_err_cbk] 0-glusterfs-fuse: 72213904: FLUSH() ERR => -1 (Read-only file system)
mnt_sv3.log:[2020-08-02 23:01:57.105487] W [fuse-bridge.c:1445:fuse_unlink_cbk] 0-glusterfs-fuse: 72219047: UNLINK() /archives/videos_file/a9/0f/9Gok6_a90f19fcb8f03399d11548430d53b435f3f1e27f_o_720.mp4 => -1 (Read-only file system)
mnt_sv3.log:[2020-08-02 23:01:57.128186] W [fuse-bridge.c:779:fuse_truncate_cbk] 0-glusterfs-fuse: 72219050: TRUNCATE() /archives/videos_file/a9/0f/9Gok6_a90f19fcb8f03399d11548430d53b435f3f1e27f_o_720.mp4 => -1 (Read-only file system)
mnt_sv3.log:[2020-08-02 23:01:59.247595] W [fuse-bridge.c:1445:fuse_unlink_cbk] 0-glusterfs-fuse: 72221389: UNLINK() /archives/videos_file/a9/0f/9Gok6_a90f19fcb8f03399d11548430d53b435f3f1e27f_o_720.mp4 => -1 (Read-only file system)
mnt_sv3.log:[2020-08-03 14:52:54.175746] W [fuse-bridge.c:2402:fuse_writev_cbk] 0-glusterfs-fuse: 72227619: WRITE => -1 gfid=e2b5ff7e-f20b-49bd-98a8-c04e53aa76ad fd=0x7f27a8059c80 (Read-only file system)
mnt_sv3.log:[2020-08-03 14:52:54.176387] W [fuse-bridge.c:2402:fuse_writev_cbk] 0-glusterfs-fuse: 72227621: WRITE => -1 gfid=e2b5ff7e-f20b-49bd-98a8-c04e53aa76ad fd=0x7f27a8059c80 (Read-only file system)
mnt_sv3.log:[2020-08-03 14:52:54.176901] W [fuse-bridge.c:1381:fuse_err_cbk] 0-glusterfs-fuse: 72227622: FLUSH() ERR => -1 (Read-only file system)
mnt_sv3.log:[2020-08-03 14:52:56.590612] W [fuse-bridge.c:1445:fuse_unlink_cbk] 0-glusterfs-fuse: 72232405: UNLINK() /archives/videos_file/8e/e4/e8zKy_8ee485ac49a1274fef650b3cf7fc8e11850218a6_o_720.flv => -1 (Read-only file system)
mnt_sv3.log:[2020-08-03 14:52:56.616059] W [fuse-bridge.c:779:fuse_truncate_cbk] 0-glusterfs-fuse: 72232408: TRUNCATE() /archives/videos_file/8e/e4/e8zKy_8ee485ac49a1274fef650b3cf7fc8e11850218a6_o_720.flv => -1 (Read-only file system)
mnt_sv3.log:[2020-08-03 14:52:57.772769] W [fuse-bridge.c:1445:fuse_unlink_cbk] 0-glusterfs-fuse: 72233499: UNLINK() /archives/videos_file/8e/e4/e8zKy_8ee485ac49a1274fef650b3cf7fc8e11850218a6_o_720.flv => -1 (Read-only file system)
mnt_sv3.log:[2020-08-03 15:20:50.062578] W [fuse-bridge.c:2402:fuse_writev_cbk] 0-glusterfs-fuse: 72321509: WRITE => -1 gfid=adb4cfda-78ed-4489-aac7-a79b56ff94f8 fd=0x7f27a8036890 (Read-only file system)
mnt_sv3.log:[2020-08-03 15:20:50.063432] W [fuse-bridge.c:2402:fuse_writev_cbk] 0-glusterfs-fuse: 72321514: WRITE => -1 gfid=adb4cfda-78ed-4489-aac7-a79b56ff94f8 fd=0x7f27a8036890 (Read-only file system)
mnt_sv3.log:[2020-08-03 15:20:50.063945] W [fuse-bridge.c:1381:fuse_err_cbk] 0-glusterfs-fuse: 72321515: FLUSH() ERR => -1 (Read-only file system)
mnt_sv3.log:[2020-08-03 15:20:51.598748] W [fuse-bridge.c:1445:fuse_unlink_cbk] 0-glusterfs-fuse: 72322464: UNLINK() /archives/videos_file/3e/3e/VKAnx_3e3ec1f32627b57c0d31d07746c8cd581670cdb7_o_240.mp4 => -1 (Read-only file system)
mnt_sv3.log:[2020-08-03 15:20:51.615692] W [fuse-bridge.c:779:fuse_truncate_cbk] 0-glusterfs-fuse: 72322467: TRUNCATE() /archives/videos_file/3e/3e/VKAnx_3e3ec1f32627b57c0d31d07746c8cd581670cdb7_o_240.mp4 => -1 (Read-only file system)
mnt_sv3.log:[2020-08-03 15:20:51.768261] W [fuse-bridge.c:1445:fuse_unlink_cbk] 0-glusterfs-fuse: 72322474: UNLINK() /archives/videos_file/3e/3e/VKAnx_3e3ec1f32627b57c0d31d07746c8cd581670cdb7_o_240.mp4 => -1 (Read-only file system)
答案1
这可能是因为 GlusterFS 使用的底层块设备遇到了 I/O 错误,并且它被重新安装为只读文件系统(以防止进一步损坏)。我首先会转到托管砖块的机器并在那里执行 dmesg 以查看内核是否报告了此类错误。