LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-14-2009, 08:27 AM   #1
luke_devon
LQ Newbie
 
Registered: Nov 2009
Posts: 5

Rep: Reputation: 0
Two RHEL 5 servers connecting with a SAN


Hi

I wanted to access a SAN partion from my two RHEL 5 servers.

Could you please help me ,

1. i wanted to get mounted the partition which i have created in the SAN.
for example /dev/sdb is the partition

2. at the same time i wanted to store (Read and write )data in the SAN partition from those two redhat server.

Thanks
Luke
 
Old 11-14-2009, 08:49 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Hi,

/dev/sdb is the device not the partition, once you create a partition you may want to look at formatting it as GFS2 if you want both servers to have write access

http://www.redhat.com/gfs/

cheers
 
Old 11-14-2009, 09:19 AM   #3
luke_devon
LQ Newbie
 
Registered: Nov 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Hi

In my case i don't want to install clustering . I just wanted to connect all those two RHEL 5 servers with the SAN. Mainly , in the SAN device , i wanted to create a partition and needed to get mounted to RHEL 5 servers. SAN i'm using for a database. for this database needed to have write permission from RHEL servers.

For example : if i write a file in the First RHEL machine in the SANSs database , that file should be visible for the other RHEL machine as well.


Actually i'm a beginner , could you please give me step by step how to guide coz this implementation is bit critical and i dont have chance to trial run .

Many Thanks
Luke
 
Old 11-14-2009, 10:51 AM   #4
icorson
LQ Newbie
 
Registered: Jun 2008
Posts: 6

Rep: Reputation: 0
You need to make sure you have an HBA installed on the redhat servers. If the hba is there you should see the device under /proc/scsi/... Qlogic HBA's are listed as /proc/scsi/ql***.

Once you have that done and you have zoned the server properly on the fabric you should be able to run system-config-lvm and see the uninitialized disk. You can then initialize the disk, create a partition, and set it to mount.

It is not recommended to have 2 servers mount the same volume without clustering (GFS). You could wind up corrupting the files as nothing will be controlling lock access to the files.
 
Old 11-14-2009, 02:49 PM   #5
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
@luke: If this is critical (as in your job is on the line), and you're a beginner, and you have no testing environment, I recommend that you have a frank talk with your boss about hiring a contractor to perform the install / configuration.

You are going to need GFS (or some other clustering file system), or else you'll run into data integrity issues.
 
Old 11-14-2009, 07:32 PM   #6
luke_devon
LQ Newbie
 
Registered: Nov 2009
Posts: 5

Original Poster
Rep: Reputation: 0
okay , thanks for all suggestions. I got installed GFS and mounted a partition in the SAN as /database . This partition is visible from both RHEL servers.

But when i create a folder in one RHEL sever , from other machine i unable to see means its not exist for other server.

what would be the reason , please help .

mkfs.gfs -j 4 -p lock_gulm -t zone:data /dev/volg/data, this is the command i issued for make the file system on /dev/volg/data


Partition created as LVM.

Many Thanks
Luke
 
Old 11-15-2009, 12:00 AM   #7
Smartpatrol
Member
 
Registered: Sep 2009
Posts: 196

Rep: Reputation: 38
...

Last edited by Smartpatrol; 03-11-2010 at 09:47 PM.
 
Old 11-15-2009, 12:34 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
He's talking about SAN (local disk), not NAS (network share).

This is doable with GFS or OCFS2.
 
Old 11-15-2009, 12:54 AM   #9
luke_devon
LQ Newbie
 
Registered: Nov 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks you all again.

For instance suppose , if one machine DOWN , then other one needed to come in to the picture and it should take care of serving for each and every request via SAN database.

apache and mysql running in RHEL servers. but Mysql database pointed in to the SAN .

Current status: via GFS its get mounted for both RHEL servers. but when i create some in the database via one server , other server can not view.

each every machines able to view what they are doing in the /database.

I think , you have got my point and this is not a new setup that u never heard.

i need your help

Thank you
Luke
 
Old 11-15-2009, 01:59 AM   #10
luke_devon
LQ Newbie
 
Registered: Nov 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Here i will give you the out put.

[root@home1]# service gfs status
Configured GFS mountpoints:
/database
Active GFS mountpoints:
/database

[root@home2]# service gfs status
Configured GFS mountpoints:
/database
Active GFS mountpoints:
/database

[root@home1 database]# ls
aaa

[root@home2 database]# ls


when we check via home2 RHEL server , we don't see , the file which i have created.

It should be displayed from the other machine as well.

Many Thanks
Luke.
 
Old 11-15-2009, 09:02 AM   #11
icorson
LQ Newbie
 
Registered: Jun 2008
Posts: 6

Rep: Reputation: 0
run "mount -a" on each server (this should mount everything) and then just "mount" on each server you should see the same mount point (/database on /somedevice) listed on each server. If you dont see the mount for "/database" listed on each server you do not have it mounted on both nodes. That would explain why you can see the directory under /database on one server and not the other.

At this point you might as well just install the rest of the packages for RHCS and configure the cluster software. You can have each node access the disk and file access will be controlled by the lock mechanism you choose (DLM or whatever). You can then have the mounts controlled by the cluster manager (rmanager, cman etc...).

Read up on RHCS here: http://www.redhat.com/docs/manuals/csgfs/

Last edited by icorson; 11-15-2009 at 09:04 AM.
 
Old 11-15-2009, 10:37 PM   #12
Smartpatrol
Member
 
Registered: Sep 2009
Posts: 196

Rep: Reputation: 38
thanks

...

Last edited by Smartpatrol; 03-11-2010 at 09:47 PM.
 
Old 11-15-2009, 10:55 PM   #13
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by Smartpatrol
he mentioned he did not want to install clustering which rules out what he was trying to do with standard filesystems with out some type of shared file system management Like NFS or CIFS
Not true. You can install a clustered, non-network filesystem without formally setting up "clustering" (resources, fencing, and the like). It might not be particularly wise in most circumstances, but it can be done.

Last edited by anomie; 11-15-2009 at 10:56 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
SAN configuration in RHEL 5 sandy_76 Linux - Enterprise 3 10-02-2009 04:05 PM
Multiple Linux servers to one big iSCSI NAS/SAN bkone Linux - Server 1 10-01-2009 02:53 PM
RHEL boot from SAN bhart50 Linux - Server 1 12-17-2007 01:00 PM
RHEL 4 doesn't see SAN devices after boot bret Red Hat 1 12-20-2006 05:21 PM
Connecting to SAN from Freebsd through hba crypto76 *BSD 0 09-23-2004 11:45 AM

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

All times are GMT -5. The time now is 02:12 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