Two iSCSI initiators to a single iSCSI target

Hello,
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

Problem:
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.

Questions.
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.
LVL 1
mbudmanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Andrej PirmanCommented:
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.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
andyalderCommented:
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.

http://en.wikipedia.org/wiki/Global_File_System
0
mbudmanAuthor Commented:
Good answer, although not necessarily what I was looking for,
Thanks for your assistance.

Cheers,

Mark
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

andyalderCommented:
At least you just have to reformat with GFS, think about those poor Windows chaps who have to pay for a 3rd party filesystem.
0
mbudmanAuthor Commented:
Andy,

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.
0
andyalderCommented:
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. http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/4/html/GFS_6.1_Administration_Guide/ch-install.html 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.
0
andyalderCommented:
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 - http://www.centos.org/docs/4/html/rh-gfs-en-6.1/ch-overview.html 
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Storage

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.