Re: Shared storage in a 2 node Linux environment

From: Mark Knecht <markknecht_at_gmail.com>
Date: Tue 26 Apr 2005 - 16:35:26 CEST
Message-ID: <5bdc1c8b05042607358e7786@mail.gmail.com>

On 4/25/05, Gabriel Andersson <gabriel.andersson@dfdstransport.se> wrote:
> Hi all
>
> I have setup a two node Linux RHEL 3.0 environment and connected a Matrox
> OneTouche 300GB FIrewire disk as shared storage. The 2 Linuxboxes kan mount
> the shared storage as /dev/sdc at the same time and the dmesg give the
> following output:
>
> ieee1394: sbp2: Query logins to SBP-2 device successful
> ieee1394: sbp2: Maximum concurrent logins supported: 2
> ieee1394: sbp2: Number of active logins: 1
> ieee1394: sbp2: Logged into SBP-2 device
>
> I can make an ls on both nodes and get the same output
>
> Node1
> [root@romulus fire]# ls
> ls: lasse: In/ut-fel
> downloads lost+found mysql
>
> Node2
> [root@remus fire]# ls
> ls: lasse: Input/output error
> downloads lost+found mysql
>
> The problem I am currently having is that if i create a file on node1 (
> touch test.txt ) this wont be visible on node2 unless I umount on node2 and
> remount /dev/sdc agan on node2.
>
> Does anyone know/experienced the same problem and has a solution to the
> problem?
>

This is the way all of the file systems I know abut work. There can be
only one computer that has responsiblity for the file system so that
you don't get into situations like one system reading the file while
another is erasing it.

That said what you can do it this:

1) Mount the drive on one system
2) Export/share the directories you want the second system to know about.
3) Setup eth1394 to create a private network where the second machine
gets it's data from the first over a faster interface than 10/100
Ethernet.

I've not done step #3 but I have done the first two. That works.

Good luck,
Mark

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op%cck
_______________________________________________
mailing list Linux1394-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux1394-user
Received on Tue Apr 26 16:40:54 2005

This archive was generated by hypermail 2.1.8 : Mon 02 May 2005 - 09:16:54 CEST