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

More UNIX and Linux Forum Topics You Might Find Helpful
AIX server do not detect LUN from HP storage
sampathenjoy
ssssssssssss... Post Here to Contact Site Administrators and Moderators
0
Post Here to Contact Site Administrators and Moderators
How to detect FC lun on Server?
pinga123
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?... Linux
1
Linux
adding LUN to linux server
abhay1983
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...... Red Hat
5
Red Hat
LUN allocation in solaris server
raynu.sharma
hi all can anyone tell me how to track a new attached LUN in a solaris server??... Solaris
3
Solaris

Featured Tech Videos