3

I want to get a zvol created on zfs and want to get two initiators connected to this zvol via iscsi. I tried that and on one of the initiators I used fdisk to create the ext4 filesystem over it and mounted it, the other initiator after login to target mounted the same volume, but I can't have the files synchronized on it i.e. when one initiator creates the file on the volume the other can't see it unless it umount and mount that again. How can I have the same volume mounted on both the targets and can have the synchronized data over it ? Is it even possible ?

Thanks in advance for the help.

0

1 Answer 1

5

Long story short... Not gonna work!

See, ZFS isn't a cluster-aware file system, so whenever one writer changes the file system content (data or metadata), all other nodes, even readers, have no clue and don’t know when to update their in-memory tables to keep everything coherent. You need something cluster-aware, like VMFS, a local file system with a metadata arbiter (e.g., NTFS/ReFS + CSVFS "crutches"), or some sort of distributed lock manager, such as EXT4 + LVM + sanlock.

A good summary with plenty of detailed explanations can be found here:

https://forums.starwindsoftware.com/viewtopic.php?t=1392

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.