Two ISCSI initiators not seeing the same data on the array

Posted on 2012-08-11
Last Modified: 2012-08-17
I have two Ubuntu servers connected to the same ISCSI array.  Everything appears fine and I'm able to read the contents of the array from either server.  However, if I write to the array from server A, Server B doesn't see the new files until I disconnect and reconnect to the array from Server B.

Please advise.
Question by:dorianit
    LVL 55

    Assisted Solution

    ou need to use a cluster filesystem, the one you are using has the file allocation table (inode list etc, call it what you  want) stored in RAM. You'll also need a distributed lock manager. GFS will do for Linux.

    Author Comment

    so it's currently ext3 or ext4.  You're saying I need a lock manager (GFS)?  Is ext3/4 okay?

    thank you.
    LVL 7

    Accepted Solution

    You are begging for data corruption doing this without the clustered file system mentioned by andyalder.  This is because both systems have read/write capability to the same storage, but have no way to communicate to each other about what they are writing to which addresses and it's entirely possible - even likely - that the last server to write to a given address over-writes what the other server put there.

    A clustered file system will install software on both machines so that they can synchronize what addresses are being 'reserved' for writes to each server and not step on each other.
    LVL 55

    Expert Comment

    EXT3/4 will not do, there's a list of cluster filesystems here -

    The DLM is in addition, I think there are two available for use with GFS. The DLM stops both servers opening the same file at the same time.
    LVL 76

    Expert Comment

    Iscsi targets often are a one to one access.
    One host can access the the target at a time. What is the iscsi device in use?
    It should include awarding to that effect.
    Iscsi sends scsi commands over ip and there is no way, as others pointed out, to have commands processed by node1 dispatched to node2.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    In this article you will get to know about pros and cons of storage drives HDD, SSD and SSHD.
    Join Greg Farro and Ethan Banks from Packet Pushers ( and Greg Ross from Paessler ( for a discussion about smart network …
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    731 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now