LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-26-2011, 02:48 PM   #1
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 651

Rep: Reputation: 34
sharing single LUN from a SAN for samba running on 2 or more machines


Hi this sounds like a stupid question

I have a SAN and I need to present the same LUN to two machines running on sumba, which will in turn share the same LUN out to clients.

My question is with out cluster software how can I use the Same LUN (chunk of disk space from the SAN) on tow or nor machines with out corrupting data on share or can this be achieved.

My OS is Oracle linux 5.6 (64)

currently I am using an NFS mount on this two samba machines, to share.

Thanks and Regards

Last edited by procfs; 09-26-2011 at 02:50 PM.
 
Old 09-26-2011, 03:05 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
NFS is for NAS. For a SAN (i.e. block-level access to the LUNs), you need a cluster-aware filesystem, or you will corrupt data.
 
Old 09-26-2011, 03:16 PM   #3
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 651

Original Poster
Rep: Reputation: 34
Hi Anome, the problem is that I am running Oracle RAC and my application requires Samba share on both nodes by sharing the same LUN from the SAN, the only way out was to use an NFS mount on the two nodes and share it out using Samba.

I am quire sure that this is not the right way to do thing

I am not sure this is the right question but is there a way to use cluster filesystem with our configuring all this cluster environment (quorum disks, fencing etc)

Thanks and Regards

Last edited by procfs; 09-26-2011 at 03:20 PM.
 
Old 09-26-2011, 03:31 PM   #4
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
If you're already using Oracle RAC, the logical choice (IMO) would be OCFS2.

http://oss.oracle.com/projects/ocfs2/
 
Old 09-27-2011, 04:15 AM   #5
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 651

Original Poster
Rep: Reputation: 34
great and thank you
 
Old 09-29-2011, 03:52 AM   #6
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 651

Original Poster
Rep: Reputation: 34
Hi Anomie, ran in to an some problems

1, ocfs2console dose not recognize /dev/mapper device
2, even though I add the entries in the fstab ocfs2 volume this is not getting mounted, but if I mount it sing ocfs2console this is ok
3, I have created the OCFS2 volumes and mounts on both nodes. But if I create a file on one node I have to unmount and mount to see the difference on the other node. Is this the way this should work (I doubt it).

Thanks and Regards
 
Old 09-29-2011, 07:22 AM   #7
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 651

Original Poster
Rep: Reputation: 34
Hi Anomie, it was my mistake since cluster.conf must be identical across the cluster nodes. Once I got this right things worked as per the document, and few of reference that I found by googleing


http://www.oracle-base.com/articles/...FS2OnLinux.php
http://linux.dell.com/wiki/index.php..._creating_node
http://www.drbd.org/users-guide/s-ocfs2-create.html


Thanks and Best Regards
 
Old 09-29-2011, 10:22 AM   #8
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Yep. OCFS2 is a good (but picky, and sometimes finicky) filesystem. Get your configuration in place and heavily tested before you try deploying this in production.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux command to get LUN name from SAN? AlucardZero Linux - Server 5 09-28-2010 06:56 PM
Use LVM for SAN LUN's or not? zQUEz Linux - Server 4 11-24-2009 08:57 AM
Hot-add SAN LUN dcostakos Linux - Hardware 5 03-11-2005 01:16 PM
SAN LUN device order jhumeston Linux - Enterprise 3 07-29-2004 07:24 PM
running a single image on multiple machines subzero_ice Linux - General 0 05-11-2004 07:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration