Solved

not able to mount shared lun partiton on rhel 5

Posted on 2016-08-04
8
31 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
  • 3
  • 3
  • 2
8 Comments
 
LVL 16

Assisted Solution

by:Gerald Connolly
Gerald Connolly earned 250 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 21

Accepted Solution

by:
robocat earned 250 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 16

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
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 

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 21

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 16

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…

809 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