3 ms·
Could you mount this on multiple machines and do simultaneous reads and writes?
by ryanworl 8y ago
Could you mount this on multiple machines and do simultaneous reads and writes?
- dividuum 8y agoBy default no: It's a block device, so it has no idea what the file system on top is doing. Mounting the same file system in rw mode twice would result in instant corruption unless the file system is built for that. I'm not sure such a file system exists. What would work is mounting the same file system read only from multiple machines.
- koolba 8y agoYou can't run a regular file system like ext4 or xfs but there are file systems designed for sharing a block device: https://en.wikipedia.org/wiki/Clustered_file_system#SHARED-DISK https://en.wikipedia.org/wiki/Clustered_file_system#SHARED-D...
- ryanworl 8y agoI ask because it would be nice to run a traditional database this way for HA. I suppose nearly as good is being able to instantly mount and unmount across multiple machines if you could also use FoundationDB to fence writes to the device if the old writer comes back as a zombie.
- spullara 8y agoYou can definitely do this.
- roomey 8y agoVMwares file system VMFS is designed to do this: https://wikipedia.org/wiki/VMware_VMFS https://wikipedia.org/wiki/VMware_VMFS
- 0x006A 8y agoNBD does not support that. it is a networked block device, the kernel and file systems on top of it do lots of caching. So other clients will not get the latest version if one of them changes a block.