Move a LUN from one server to the other

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Move a LUN from one server to the other
# 1  
Old 02-15-2018
Move a LUN from one server to the other

I have NetApp LUN that was presented to a Red Hat Enterprise Linux Server release 5.7 (Tikanga) machine.
But this LUN has already data, because it was being used on another server.
I can see the new LUN when running fdisk:
Code:
fdisk -l | egrep '^Disk' | egrep -v 'dm-' | grep -v identifier
Disk /dev/sda doesn't contain a valid partition table
Disk /dev/cciss/c0d0: 450.0 GB, 450064605184 bytes
Disk /dev/sda: 32.2 GB, 32212254720 bytes

so I think the new LUN is /dev/sda

But how do I go about mounting as a file system?
I cannot make a file system on it... because there is data already on it...
# 2  
Old 02-15-2018
So, if the LUN is not connected to anything else, can you not just mount it?
Code:
mount /dev/sda /mnt

What errors do you get? You might need to try variations with the -t flag.

Why do you think it already has data on it? If it was previously an LVM Physical Volume, you might need to import it somehow. Is it the full volume group in this case?

What OS and version was the machine that was previously using it?

What is your current boot disk? Probably df -Ph /boot can tell us that. It is most usually /dev/sda2 but not necessarily. I would suggest that you really want to look at /dev/cciss/c0d0, given it is 450Gb. If this is a local RAID device, it could be that you haven't re-scanned to pick up the newly provided disk.


Sorry for just having questions at the moment,
Robin
# 3  
Old 02-15-2018
the reason I am saying that has got data on it, its because, that LUN was used on the source/other server to store backups.
the boot disk :

Code:
 df -Ph /boot
Filesystem            Size  Used Avail Use% Mounted on
/dev/cciss/c0d0p1      99M   12M   82M  13% /boot

# 4  
Old 02-15-2018
Quote:
Originally Posted by fretagi
I can see the new LUN when running fdisk:
Code:
fdisk -l | egrep '^Disk' | egrep -v 'dm-' | grep -v identifier
Disk /dev/sda doesn't contain a valid partition table
Disk /dev/cciss/c0d0: 450.0 GB, 450064605184 bytes
Disk /dev/sda: 32.2 GB, 32212254720 bytes

so I think the new LUN is /dev/sda
I don't think this is the same LUN because otherwise you would see the filesystems/partitions/whatever on it. Notice that LUNs have an identifier (the so-called "WWN" and you can identify it by this. Use your HBAs driver software to find out the WWNs of your attached disks.

Notice also that there is the "zoning" which has to be correct: basically zoning is somewhat analogous to firewall rules: each partner (the LUN, the HBA, the fabrics port) has an identifying WWPN (World Wide Port Number) and you create a rule that says WWPN A (your adapter) is allowed to connect to WWPN B (the LUN) and vice versa. If the LUN was part of a different system before you perhaps need to change this rule to make it visible to the new system (or, more precisely, to its FC adapter). Your storage administrator should be able to explain the intrinsics to you in more detail.

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
# 5  
Old 02-15-2018
I beleive we dont have FC adapters on the system, or if we have apparently we are not using them, because the NetApp guy he first asked for iqn of the system, so I beleive he is using iSCSI protocol to present LUNs
# 6  
Old 02-15-2018
Can you show us a plain fdisk -l /dev/sda so we can see what's on there - no filtering.



Thanks,
Robin
# 7  
Old 02-15-2018
Quote:
Originally Posted by fretagi
I beleive we dont have FC adapters on the system, or if we have apparently we are not using them, because the NetApp guy he first asked for iqn of the system, so I beleive he is using iSCSI protocol to present LUNs
Please desccribe your setup!

What is your storage?
How is it connected to your system?
Which driver do you use? (and whichc version?)
Do you use multipathing software?

etc.....

Sorry to be blunt, but without knowing what your system looks like the chance of finding the culprit in your setup is zero.

bakunin
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

AIX server do not detect LUN from HP storage

ssssssssssss (0 Replies)
Discussion started by: sampathenjoy
0 Replies

2. Linux

How to detect FC lun on Server?

I have created a lun on Storage and connected it to server using fiber channel. LUN is presented on new Server . How do i check and mount this newly created LUN? (1 Reply)
Discussion started by: pinga123
1 Replies

3. Red Hat

DM multipath :iscsi lun shows by diff names on two server where its exported

Hi, I am trying to setup multipathing (using DM multipath) for a redhat cluster setup ...all setup is done but issue is : node 1 shows the shared iscsi lun as sdc node 2 shows the same as sdg (changes on reboots) Due to this (i guess) i get i/o error & i can not read files created by... (0 Replies)
Discussion started by: heman96
0 Replies

4. AIX

How to move libraries to another server

Hi, I have compiled FreeTDS on AIX 5.3. Its my dev environment so I have c compilers on the box so I was able to compile. From the test environment onwards I will not be able to have c compilers. I tried to move these files directly to the test environment with the same directory structure but I... (2 Replies)
Discussion started by: vijayraghavk
2 Replies

5. Red Hat

adding LUN to linux server

Hi All, I am new for this blog and this is my first Query on this blog. I would like to dael with graet masters on linux. Here we go, After storage people created the LUN, How to add that LUN to Linux server. (Make that LUN visibility on linux server.) ? How to view the LUN... (5 Replies)
Discussion started by: abhay1983
5 Replies

6. Solaris

I have LUN ID, how to find disk relate to that LUN ID?

I have a list of LUN ID, my task is to find if disk has been added or not. How do I do that? I have been searching the forum and not able to find answer. thanks (4 Replies)
Discussion started by: uuontario
4 Replies

7. IP Networking

Dedicated Server Move

I just moved a dedicated server, which included moving to a new subnet, and new IP address. Now my server is not reconnecting - I've tried ifconfig, altering the etc/hosts file with the new ip address, with no luck. (5 Replies)
Discussion started by: esmerika
5 Replies

8. Solaris

LUN allocation in solaris server

hi all can anyone tell me how to track a new attached LUN in a solaris server?? (3 Replies)
Discussion started by: raynu.sharma
3 Replies

9. Shell Programming and Scripting

how to move a file from one server to another server using FTP in shell script?

I have a file --> file1.txt i need to copy this file to another server using FTP....the 2 servers are server1 and server2..may i know how to write a script that can do this? thanks in advance! Im a newbie to this... (4 Replies)
Discussion started by: forevercalz
4 Replies
Login or Register to Ask a Question