Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.


Move a LUN from one server to the other

Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
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  
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  
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  
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  
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  
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

7 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. 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

5. 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

6. 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

7. 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

Featured Tech Videos