UnixPedia : HPUX / LINUX / SOLARIS: Configuring newly assigned LUN on a system.

Sunday, September 28, 2014

Configuring newly assigned LUN on a system.

Configuring newly assigned LUN on a system.
(LUN from HP Storage)


The storage team will mention the CU:LDev number of the LUN/s assigned, in the change request.

Examples of log comment from storage group:
Added 1 X LUN to TPW nlxhnk20 - details are...
/dev/rdsk/c11t9d7 cc 09 4f CL1B 07:2f OPEN-E 00063057
/dev/rdsk/c21t9d7 b1 09 4f CL2B 07:2f OPEN-E 00063057
Where 07:2f is the number of the disk and 00063057 is the number of the storage box.

OR”
06:5c
06:c5
07:26
07:2d

Check if the new devices are seen on the system, else to create new device files for the new assigned LUN’s, execute the commands:

# ioscan –fnC disk
# insf –v

Always use insf –v to create device files for new devices connected to the system. It is not good to run insf –e, as it will over write any manually created device files.

Note: only if insf –v does not work try 'insf -ev' to force re-scanning of all devices

The insf command installs special files in the devices directory, normally /dev. If required, insf creates any subdirectories that are defined for the resulting special file. If no options are specified, special files are created for all new devices in the system. New devices are those devices for which no special files have been previously created. A subset of the new devices can be selected with the -C, -d, and -H options. With the -e option, insf reinstalls the special files for pseudo-drivers and existing devices. This is useful for restoring special files when one or more have been removed. Normally, insf displays a message as the special files are installed for each driver. The -q (quiet) option suppresses the installation message. The -v (verbose) option displays the installation message and the name of each special file as it is created.

# auopath discover
# autopath display all | grep Details | awk '{print $5}' > /opt/Autopath/disklist
# for DISK in `cat /opt/Autopath/disklist`
do
autopath set_lbpolicy SST ${DISK}
done

The autopath set_lbpolicy command sets the load balance policy for the specified device path.

# autopath display all (to check)
# xpinfo –il | grep 07:2f

/dev/rdsk/c11t9d7 cc 09 4f CL1B 07:2f OPEN-E 00063057
/dev/rdsk/c21t9d7 b1 09 4f CL2B 07:2f OPEN-E 00063057

Confirm with ioscan if the new disk/s are seen ok.
Configuring newly assigned LUN on a system.
(LUN from EMC Storage)


The storage team will mention the LUN id and the hardware address of the LUN’s assigned.

Access to an EMC LUN was set up as follows:
EMC LUN 9E0 should be visible to nlscuxj1 as target 0.12.1
OR
7 luns have been assigned as follows....
EMC luns 314/8/C 320/4/8/C should be visible as target 'X'1d2-1e0 (i.e. 1.d=13.2 to 1.e=14.0)
1.13.3, 1.13.3……1.13.7 & 1.14.0, 1.14.1…….1.14.7

NOTE: ‘X’ denotes the number following is Hexadecimal

# ioscan -fnCdisk | awk '/0\.12\.1/{print;getline;print;}'

disk    202  1/0/12/1/0/4/0.48.56.0.0.12.1  sdisk    CLAIMED     DEVICE       EMC     SYMMETRIX
disk    203  1/0/14/1/0/4/0.52.56.0.0.12.1  sdisk    CLAIMED     DEVICE       EMC     SYMMETRIX

If the device files for the new devices are not listed, create the device files with the command;

# insf -v

insf: Installing special files for sdisk instance 261 address 1/0/12/1/0/4/0.48.56.0.0.12.1
insf: Installing special files for sdisk instance 260 address 1/0/14/1/0/4/0.52.56.0.0.12.1 


# ioscan -fnCdisk | awk '/0\.12\.1/{print;getline;print;}'

disk    202  1/0/12/1/0/4/0.48.56.0.0.12.1  sdisk    CLAIMED     DEVICE       EMC     SYMMETRIX
                            /dev/dsk/c24t12d1   /dev/rdsk/c24t12d1
disk    203  1/0/14/1/0/4/0.52.56.0.0.12.1  sdisk    CLAIMED     DEVICE       EMC     SYMMETRIX
                            /dev/dsk/c22t12d1   /dev/rdsk/c22t12d1

Note: Two device files are created for the same device, this is because of two physical paths for the same device i.e. Alternate links

This can be confirmed with the command:

# syminq | grep t12d1

          Device                   Product                   Device
------------------------- --------------------------- ---------------------
Name               Type   Vendor    ID           Rev  Ser Num      Cap (KB)
------------------------- --------------------------- ---------------------
/dev/rdsk/c24t12d1 M(4)   EMC       SYMMETRIX    5671 99009E0000   35354880

# syminq /dev/rdsk/c22t12d1

Device Product Device
------------------------- --------------------------- ---------------------
Name Type Vendor ID Rev Ser Num Cap (KB)
------------------------- --------------------------- ---------------------
/dev/rdsk/c22t12d1 M(4) EMC SYMMETRIX 5671 99009E0000 35354880


# syminq | grep t12d1

/dev/rdsk/c22t12d1 M(4) EMC SYMMETRIX 5671 99009E0000 35354880
/dev/rdsk/c24t12d1 M(4) EMC SYMMETRIX 5671 99009E0000 35354880
Where the serial # for the device means

99009E0000 = DMXid 00 LUNid 000

No comments:

Post a Comment