Move a LUN from one server to the other

Login or Register to Reply

 
Thread Tools Search this Thread
# 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:
fretagi (02-15-2018)
# 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
# 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 Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
AIX server do not detect LUN from HP storage sampathenjoy Post Here to Contact Site Administrators and Moderators 0 09-16-2016 04:24 PM
How to detect FC lun on Server? pinga123 Linux 1 01-27-2014 03:25 AM
DM multipath :iscsi lun shows by diff names on two server where its exported heman96 Red Hat 0 11-03-2013 01:46 AM
How to move libraries to another server vijayraghavk AIX 2 05-10-2012 07:58 PM
adding LUN to linux server abhay1983 Red Hat 5 04-17-2012 02:33 AM
Large file move from one server to another tfort73 AIX 14 03-09-2010 08:16 AM
I have LUN ID, how to find disk relate to that LUN ID? uuontario Solaris 4 07-27-2009 01:16 AM
Dedicated Server Move esmerika IP Networking 5 07-08-2009 06:24 PM
LUN allocation in solaris server raynu.sharma Solaris 3 07-08-2009 04:58 AM
Move file from 1 server to another woody62 UNIX for Dummies Questions & Answers 11 04-09-2009 05:37 PM
How to shift/move DNS server ? ynilesh UNIX for Advanced & Expert Users 3 07-30-2008 07:11 PM
how to move a file from one server to another server using FTP in shell script? forevercalz Shell Programming and Scripting 4 10-27-2005 02:53 AM