You cannot have concurrent FS level access with ZFS (unless it is happening
over NFS or similar, with the usual caveats about staleness and locking).
From what you are describing, it sounds like GFS2 might be what you are
looking for. It is a cluster file system designed for concurrent access to
the same FS by multiple nodes with appropriate locking to ensure the files
don't get corrupted from concurrent access. There are things it won't work
for (e.g. most databases), but for regular file accessing applications it
works fine. Make sure you understand the performance implications of using
this kind of a solution before you deploy it, though. If locks don't need
to bounce between nodes, it can be very performant. If the locks are
bouncing between the machines on every file access things will slow down to
a crawl very quickly.
OCFS2 is another option similar to GFS2.
Post by Tamas Papp Post by Fajar A. Nugraha Post by Tamas Papp Post by Durval Menezes
AFAIK, you'd have to tell the read-only importer to force it with -f
for the import to succeed. Also, the read-only side will eventually
see corrupt/incomplete data as things are updated by the read-write side.
Yes, this is my opinion too.
You should be able to use device mapper to create snapshots (to be
reintegrated later - or thrown away, depending on r/w or r/o side) on
@Tamas: is there a particular use case you have in mind?
IMHO for some use cases, instead of sharing the pool vdevs, it's much
simpler to simply share zfs dataset (e.g. via nfs) or zvol (e.g. via
iscsi), and utilize zfs snapshot so that each client sees their own
private copy of the data.
There was a topic on a local (Hungarian) forum with this
I started thinking of the topic. Basically the guy who asked it solved the
actual issue via nfs, but was interested whether there is a filesystem or
where all information is shared only with a local filesystem or devices or
something like that with no network connection between nodes.
But it's only a theoretical question.
To unsubscribe from this group and stop receiving emails from it, send an
To unsubscribe from this group and stop receiving emails from it, send an email to email@example.com.