News for hackers. Stuff that matters.
Re:Show HN: A proof-of-concept FoundationDB based network bl... by ryanworl on Saturday April 28, 2018 @03:19PM (#16949049)
Could you mount this on multiple machines and do simultaneous reads and writes?
Re:Show HN: A proof-of-concept FoundationDB based network bl... by dividuum on Saturday April 28, 2018 @03:23PM (#16949063)
By 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.

Re:Show HN: A proof-of-concept FoundationDB based network bl... by koolba on Saturday April 28, 2018 @03:40PM (#16949120)
You 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-D...
Re:Show HN: A proof-of-concept FoundationDB based network bl... by ryanworl on Saturday April 28, 2018 @03:44PM (#16949135)
I 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.
Re:Show HN: A proof-of-concept FoundationDB based network bl... by spullara on Saturday April 28, 2018 @05:16PM (#16949446)
You can definitely do this.
Re:Show HN: A proof-of-concept FoundationDB based network bl... by roomey on Sunday April 29, 2018 @01:36AM (#16950831)
VMwares file system VMFS is designed to do this: https://wikipedia.org/wiki/VMware_VMFS
Re:Show HN: A proof-of-concept FoundationDB based network bl... by 0x006A on Saturday April 28, 2018 @03:25PM (#16949073)
NBD 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.