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
# 8  
Old 02-16-2018
Hi

The output of the command is:
Code:
 fdisk -l /dev/sda

Disk /dev/sda: 32.2 GB, 32212254720 bytes
64 heads, 32 sectors/track, 30720 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

Disk /dev/sda doesn't contain a valid partition table

this is a standalone server, but we want to attach a NetApp storage using iSCSI, so no FC adapters on it.
The NetApp will only be used to store backups, because this server does not have any backup functionality attached to it.
# 9  
Old 02-16-2018
Hi,

The device you list "/dev/cciss" is actually a HP Smart Array device, the drivers for this were removed some time ago.

I'd have a look here to start your hunt for information.

Also, normally /dev/sda would be the first disk on a standalone server, so how is the server booted at the moment?

Regards

Gull04
# 10  
Old 02-16-2018
the sys admin of that server, have configured 450G LUN and in there it was installed the operating system. That LUN of 450G is part of internal disks of the server.
# 11  
Old 02-16-2018
Since you had the LUN added, have you re-scanned for devices (or rebooted). This link talks about CentOS7, but it should be pretty much the same. Perhaps the command kudzu might be an option too for RHEL5.

I find I always need to re-scan to get new/enlarged LUNs reflected in the OS.

I suspect that the LUN is not yet showing up, hence the confusion of the two disks you do have. I think that they are both local, one a simple disk, one a RAID device.



Robin
# 12  
Old 02-19-2018
Hi Robin!

thanks for your inputs, I did a test with the help of the NetApp admin, which was to remove the LUN he presented onto the server, and present a bigger LUN, and to show or see the LUN on the server, I did run the following commands:
Code:
/etc/init.d/iscsi restart
iscsiadm -m session --rescan
fdisk -l | egrep '^Disk' | egrep -v 'dm-' | grep -v identifier

in this order, and the new bigger LUN show up.

Last edited by rbatte1; 02-19-2018 at 05:54 AM.. Reason: Changed multiple ICODE tags to a CODE tagged block.
# 13  
Old 02-19-2018
Very good. Does it show the data/filesystems you are expecting?

If you are certain that they are not is use elsewhere, can you mount them?

If you are not sure, think carefully. Trying to mount them may just refuse, but it may possible say "Are you sure?" and then force it or just try and fails with a suggestion to fsck it. All of these could be very bad for your data. When sharing a LUN/filesystem(s) between servers, there is usually a need for good HA software. There are all sorts of problems, such as the free block list which will be held in memory, so if one side uses some free blocks, the other side doesn't know about it and could just use the same blocks causing data loss.



Kind regards,
Robin
# 14  
Old 02-19-2018
thatīs the problem:
If its new LUN, like the one the NetApp admin provided me for testing purposes, yes can go through the process of creating partition, etc, etc up to creating a file system and mount it. BUT if its LUN that has already data and use to be presented on another server, how do I mounted on the new server?
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