Two iSCSI initiators to a single iSCSI target

Posted on 2011-10-24
Last Modified: 2012-05-12
I am using
1. 2 x RHEL6 (iSCSI initiators A and B) connected to a single MD3000i  iSCSI storage.
2. A and B initiators belong to 1 Group
3. no CHAP, no passwords are set.
4. Both initiators A and B
 fdisk -l
Disk /dev/sdb: 5999.5 GB, 5999582773248 bytes
255 heads, 63 sectors/track, 729407 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1      267349  2147480811   83  Linux

4. mount /dev/sdb1 /iscsi

When I make changes on initiator A /iscsi directory,
initiator B does not see any changes and otherwise A does not see changes done by B.

I need to have both initiator to be able to read/write to a single target.
How I can make it happend with all changes being instantly visible by opposite initiator.
Is there any way to manipulate locking mechanism "persistent reservation" .

Thank you very much.
Question by:mbudman
    LVL 18

    Accepted Solution

    AFAIK you are talking about MULTIPATHING driver, but you did not mention having it. You cannot have 2 clients r/w mode on same target store - filesystem does not have mechanism to know, which changes to listen to. You can render store unusable.
    Mutlipath driver handles such situations. Install it on your Linux box.
    LVL 55

    Assisted Solution

    You can have multiple hosts accessing one iSCSI target with Linux, but you have to use a shared filesystem such as GFS. Additionally you need a distributed lock manager to stop both editing the same file at the same time.
    LVL 1

    Author Closing Comment

    Good answer, although not necessarily what I was looking for,
    Thanks for your assistance.


    LVL 55

    Expert Comment

    At least you just have to reformat with GFS, think about those poor Windows chaps who have to pay for a 3rd party filesystem.
    LVL 1

    Author Comment


    Maybe you have a suggestion:

    I have a SAN. solutions on the internet consist of configuring a third server to simulate a SAN. All I want is for the two Oracle RAC servers to read shared storage and update accoridingly.
    LVL 55

    Expert Comment

    So from one of the Oracle servers format the iSCSI target using GFS, which is part of RedHat, then you have shared access. I think you'll have to upgrade to RedHat 6.1 or later though. might help, I haven't set it up myself - not a Linux expert. Clicking next a few times on that link above to read subsequent pages tells how to do it though, looks straight forwards.
    LVL 55

    Expert Comment

    Hmm, my bad, RedHat only needs to be 4.2, It's GFS that comes with it that's 6.1, and it does support iSCSI by the looks of it although I may be reading that wrong -

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Ever notice how you can't use a new drive in Windows without having Windows assigning a Disk Signature?  Ever have a signature collision problem (especially with Virtual Machines?)  This article is intended to help you understand what's going on and…
    I previously wrote an article addressing the use of UBCD4WIN and SARDU. All are great, but I have always been an advocate of SARDU. Recently it was suggested that I go back and take a look at Easy2Boot in comparison.
    This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…
    This Micro Tutorial will teach you how to reformat your flash drive. Sometimes your flash drive may have issues carrying files so this will completely restore it to manufacturing settings. Make sure to backup all files before reformatting. This w…

    760 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

    8 Experts available now in Live!

    Get 1:1 Help Now