Hello,

Unless you have a cluster file system in place what you are seeing is
expected.   Each node believes it owns that volume exclusively.   There's
nothing in iSCSI or SCSI protocol to address this.  A write from one node
doesn't tell the other node to update its cached image of that disk.
Without a file system to handle that process there's no workaround.

Regards,

Don
On Feb 25, 2015 8:21 PM, <m0pt0pmat...@gmail.com> wrote:

> Hey guys,
>
> Forgive me, but I'm super new to this.
>
> I have two CentOS 7 nodes. I'm using LIO to export a sparse file over
> iSCSI.
>
> The sparse file was created as a LIO FILEIO with write-back disabled
> (write-through)
> In targetcli, I create a LUN on my iSCSI frontend
>
> I formatted the sparse file to have an EXT4 filesystem.
>
> On both the target node and the initiator node, I can initiate a iSCSI
> session (iscsiadm -m node --login), mount the device, and read and write to
> it.
>
> However, changes to the device are not consistent across the network until
> i logout of the iSCSI session. (iscsiadm -m node --logout) (both nodes have
> to logout. The first logout writes the changes, and the second one
> refreshes them)
>
> Somewhere, caching is occurring, but I'm not sure where.
>
> Just in case you're curious, my use case is to have multiple nodes write
> to the same remote disk (or file) in parallel.
>
> Any direction or advice would be great. Thank you.
>
> -Matt
>
> --
> You received this message because you are subscribed to the Google Groups
> "open-iscsi" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to open-iscsi+unsubscr...@googlegroups.com.
> To post to this group, send email to open-iscsi@googlegroups.com.
> Visit this group at http://groups.google.com/group/open-iscsi.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to open-iscsi+unsubscr...@googlegroups.com.
To post to this group, send email to open-iscsi@googlegroups.com.
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to