?
Solved

not able to mount shared lun partiton on rhel 5

Posted on 2016-08-04
8
Medium Priority
?
57 Views
Last Modified: 2016-08-06
Hi All,

Here is my situation:

i have an shared Lun from storage i dont know how they are sharing. Its of 4 TB so fdisk not working.

I have formatted it using parted tool successfully. but issue is when i formatted on one machine i am able to mount and use it.

but at same time when i try same on another server - i am able to see that disk but even partiton in fdisk but it says special device mount not possible .

now if i again format it on second machine i am able to mount but then another giving issues and every time data loss is there.

I know something silly i am doing but please help me in this.

Here what I need:

RHEL 5.5 and have 4 TB LUN Shared LUN from storage.

I want it to use on both server as a mount point.

please help me with right approach.

Thank you
0
Comment
Question by:The Rock
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
8 Comments
 
LVL 17

Assisted Solution

by:Gerald Connolly
Gerald Connolly earned 750 total points
ID: 41743711
Ah the old shared LUN conundrum!

The problem with shared LUN's with multiple writers (sharing with only one writer is OK) is that if one system writes to a block and then another system writes to the same block, only the second update will actually be on Disk, this isnt good, especially if those blocks are part of the file system e.g directory.

So if you require multiple writers you need a Lock-Manager to control who writes what and when. The Lock-Manager is normally via a clustered File system eg for RHEL GFS
0
 
LVL 22

Accepted Solution

by:
robocat earned 750 total points
ID: 41743717
What exactly do you mean by "shared" LUN?

You can never mount a LUN on more than one system at the same time unless you use a clustered filesystem. Do you use a clustered filesystem?

If you're simply trying to share files amongst different servers, you need a completely different approach by exporting the filesystem as NFS and mounting the NFS share on the second server. Or perhaps the storage box can provide an NFS share instead of a LUN, which makes this even simpler.
0
 
LVL 17

Expert Comment

by:Gerald Connolly
ID: 41743737
Using a shared LUN without a Clustered File System will end in tears (and serious Filesystem and Data corruption)
0
Linux Academy Android App Now Supports Chromecast

We have some fantastic news for our Android fans. We’re so excited to announce that the Linux Academy Android app is now available with Chromecast support. That’s right – simply download the latest update of the Linux Academy App and start casting your favorite course videos!

 

Author Comment

by:The Rock
ID: 41743777
Hi All,


Thank you for your comments and agree with all of you but the problem is previously it was working fine with the same settings without any cluster or tool . the only diffrence was size and command.

Like previosuly size was 1.2 TB and we have used fdisk to create partition and now size is 4 TB and tool is parted.  since we have used parted tool to format and create partiton this issue occured.
0
 

Author Comment

by:The Rock
ID: 41743793
Another thing i am able to see the partiton in fdisk -l and fdisk tool like /dev/sdd1 but when i am fidning it in /dev its not there
0
 
LVL 22

Expert Comment

by:robocat
ID: 41744047
You might think it worked, but data corruption and data loss is inevitable sooner or later.

Don't even try to make this work without a clustered file system. Or use NFS as an alternative.
1
 
LVL 17

Expert Comment

by:Gerald Connolly
ID: 41744076
Thank you for your comments and agree with all of you but the problem is previously it was working fine with the same settings without any cluster or tool . the only diffrence was size and command.

Trust us! If you were using a shared LUN and/or partition with both systems able to write all you were going to get is a Corrupt filesystem and Corrupt data. It is possible to setup a shared LUN that is mounted Read/Write on one system and Read-Only on the other and that will work fine without cluster software, but if both systems want to write to the same bit of disk then a clustered file-system is MANDATORY!
0
 

Author Comment

by:The Rock
ID: 41745628
Hi all thank u so much for your suggestion . As I said I agree with your recommendation but end we all know it's depend on customer what he wants. Finally I found the way by creating only partition on second server using parted tool for sdd and it works even data also not destroyed .

Thanks again to all
0

Featured Post

WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
In this article we have discussed the manual scenarios to recover data from Windows 10 through some backup and recovery tools which are offered by it.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month11 days, 6 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question