Visit The New, Modern Unix Linux Community

Operating Systems Linux Red Hat Move a LUN from one server to the other Post 303013122 by bakunin on Thursday 15th of February 2018 09:58:31 AM
Originally Posted by fretagi
I can see the new LUN when running fdisk:
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.

This User Gave Thanks to bakunin For This Post:
Test Your Knowledge in Computers #256
Difficulty: Easy
MILNET gave birth to NIPRNet, which was used to transmit sensitive but unclassified data between internal users and also provide those users with a gateway to the commercial Internet.
True or False?

9 More Discussions You Might Find Interesting

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

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

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

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

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

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

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

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

sg_emc_trespass - change ownership of SCSI LUN from another Service-Processor to this one SYNOPSIS
sg_emc_trespass [-d] [-hr] [-s] [-V] DEVICE DESCRIPTION
sg_emc_trespass sends an EMC-specific Trespass Command to the DEVICE with the selected options. This Mode Select changes the ownership of the LUN of the device from another Service-Processor to the one the command was received on. OPTIONS
Arguments to long options are mandatory for short options as well. -d outputs some extra debug information associated with executing this command -hr Sets the 'Honor Reservation' bit in the command. If set, the trespass will only succeed to change the ownership from the Peer SP if the Peer SP does not have an outstanding SCSI reservation for the LUN. By default, the reservation state will be ignored. -s Send the short version of the trespass command instead of the long version. The short version is supported on the EMC FC5300, FC4500 and FC4700. The long version (default) is supported on the CLARiiON CX and AX family arrays. -V print out version string then exit. In the 2.4 series of Linux kernels the DEVICE must be a SCSI generic (sg) device. In the 2.6 series block devices (e.g. SCSI disks and DVD drives) can also be specified. For example "sg_start 0 /dev/sda" will work in the 2.6 series kernels. EXIT STATUS
The exit status of sg_emc_trespass is 0 when it is successful. Otherwise see the sg3_utils(8) man page. AUTHOR
Written by Lars Marowsky-Bree, based on sg_start. REPORTING BUGS
Report bugs to <dgilbert at interlog dot com>. COPYRIGHT
Copyright (C) 2004-2012 Lars Marowsky-Bree, Douglas Gilbert. This software is distributed under the GPL version 2. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PUR- POSE. sg3_utils-1.35 December 2012 SG_EMC_TRESPASS(8)

Featured Tech Videos

All times are GMT -4. The time now is 07:19 AM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy