- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- How to share same LUN to different Linux hosts at ...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2005 12:46 AM
07-12-2005 12:46 AM
How to share same LUN to different Linux hosts at the same time ? Urgent
We are going to setup Oracle RAC on Linux servers, one of the requirements for that is to present same LUN(EVA5000) to the two Linux hosts, that is, on two different Linux servers can read/write the same LUN at the same time.
I tried to create one mount point on ServerA, with LVM, then when I tried that on ServerB, it didn't allow me to share the same LUN.
Any suggestion?
Thanks !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2005 12:57 AM
07-12-2005 12:57 AM
Re: How to share same LUN to different Linux hosts at the same time ? Urgent
You have to activate the VG in a Shared mode exactly i am not aware how to do it in linux . In HP-ux the procedure is as follows . I think it will be applicable to linux also.
On the Current server where vg is activated
umount mount the file system deactivate the volume group
say vg name is vg_rac_db
#vgchange -a n Vg_rac_db
Then enable the vg as cluster aware and sharable Vg by
#vgchange -c y -S y vg_rac_db
activate in shared mode by
# vgchange -a s vg_rac_db
This node will be come Server
On the adoptive node
import the vg with the map file of vg vg_rac_db
then active the vg by
vgchange -a s vg_rac_db
if it does not helpful to you .please refer the RAC documentation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2005 01:07 AM
07-12-2005 01:07 AM
Re: How to share same LUN to different Linux hosts at the same time ? Urgent
The EVA has no knowledge about filesystems. The hosts have. The hosts write a filesystem to the lun, manage inodes etc....
The 2 servers do not communicate about this with eachother. If you let do that by the 2 hosts, the data will soon be corrupt.
depending on what you want, you can do this:
- define a lun on the eva for each host, and mirror these hosts by drbd (http://www.drbd.org/)
this will not have the performance you expect from the eva.
- make a snapshot of the first lun, and let the 2nd host work with the snapshot.
- leave the second host down, and let it pick up the mount if the first host dies. (f.i.heartbeat (http://www.linux-ha.org/ConfiguringHeartbeat)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2005 01:52 AM
07-12-2005 01:52 AM
Re: How to share same LUN to different Linux hosts at the same time ? Urgent
I'm not sure if you can use LVM with OCFS but with RH CFS you can.
OCFS is part of oracle RAC and Red Hat GFS is a separated product for Red Hat.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2005 04:50 AM
07-12-2005 04:50 AM
Re: How to share same LUN to different Linux hosts at the same time ? Urgent
I found that I just need to share Raw disk between two servers, no file system needed.
What Linux(Redhat) command can I use to check LUN status from O/S ?
Thanks again !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2005 06:20 AM
07-12-2005 06:20 AM
Re: How to share same LUN to different Linux hosts at the same time ? Urgent
You configure raw devices in /etc/rawdevices.
Using raw devices has some disadvantages, and i believe oracle recommends the use of OCFS. If you use raw device, you don't have the choice to copy/move the data from a disk to another, verify the disk usage from OS, etc. You are complete dependant of the database administration tools.
Check this article:
http://www1.us.dell.com/content/topics/global.aspx/power/en/ps3q03_mahmoodmigration?c=us&cs=555&l=en&s=biz
And this:
www.redhat.com/whitepapers/rha/gfs/Oracle9i_RAC_GFS.pdf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2005 10:23 PM
07-12-2005 10:23 PM
Re: How to share same LUN to different Linux hosts at the same time ? Urgent
I am not familiar with the EVA, however Clariion and Hitachi I can assign the LUN's to both hosts, or have both hosts in the LUN security group the LUN's are assigned too.
Once the LUNs are there, you can configure OCFS, start it, then format the LUNs and mount them on both nodes. When you get it configured you would get a syslog entry like this:
Jul 11 10:38:08 alvmnrtlnx08 kernel: ocfs: Adding ora-test-rac-02 (node 1) to clustered device (9,0)
Jul 11 10:38:18 alvmnrtlnx08 kernel: ocfs: Mounting device (9,0) on ora-test-rac-01 (node 0)
Jul 11 10:38:20 alvmnrtlnx08 kernel: ocfs: Adding ora-test-rac-02 (node 1) to clustered device (9,1)
Jul 11 10:38:29 alvmnrtlnx08 kernel: ocfs: Mounting device (9,1) on ora-test-rac-01 (node 0)
-Ryan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2005 11:32 PM
07-12-2005 11:32 PM
Re: How to share same LUN to different Linux hosts at the same time ? Urgent
it works the same way on EVA, too. The object is called a 'Host' and is assigned the WWPN of the server's fibre channel adapter(s). You can put WWPNs from different servers into the same Host entry, but you can also allow multiple Hosts access to a single Virtual Disk.