大网数据广告活动
服务器运维问答

Filesystem for a shared block device for a linux

· 52CE 我爱测

Is there such a thing? I don't care about performance, I just need to be able to have access to the same block device from two computers. The block device does not have anything fancy (like reservations), so it's pure read/write …

问题原文

原帖链接 · George Shuklin · CC BY-SA 4.0

Is there such a thing? I don't care about performance, I just need to be able to have access to the same block device from two computers. The block device does not have anything fancy (like reservations), so it's pure read/write device without caching or other nasty tricks.

社区高分解答

原帖链接 · BaronSamedi1958 · CC BY-SA 4.0

Global File System v2 (GFS2) from Red Hat is probably the most popular clustered file system for Linux. See:

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html-single/global_file_system_2/index#ch-overview-GFS2

There's Oracle Cluster File System v2 (OCFS2) and IBM General Parallel File System (GPFS) as well. See:

https://blogs.oracle.com/cloud-infrastructure/post/a-simple-guide-to-oracle-cluster-file-system-ocfs2-using-iscsi-on-oracle-cloud-infrastructure

https://www.ibm.com/docs/en/gpfs/4.1.0.4?topic=guide-introducing-general-parallel-file-system

Red Hat can't scale beyond 16 nodes due a fact it has no dedicated metadata hosts and every host has his very own copy of all the meta. Making long story short: Performance actually decreases as you have to keep everything in sync, distributed lock traffic becomes monstrous (no recent public benchmarks published, sorry about that!). Oracle's file system is designed to handle Real Application Cluster (RAC) so works well with a big files, small file performance isn't that great. IBM's file system isn't 100% open source so I wouldn't deploy it in the open source environment.

Everything else is quite exotic.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2021-02-05)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。