Check LUNS on different types of storage.........

Sometimes in production environment you come across situation where you don' t know which utility is required to identify allocated LUNs on server. I have given here few of the scenarios which might become helpful for you.....

1. Hitachi LUNs.....

ls -l /dev/sdch* | /usr/sbin/inqraid -CLI -fxw (or -fp )( /usr/sbin/inqraid is the utility for hitachi LUNS -fxw will convert hexa decimal to decimal)

DEVICE_FILE     PORT    SERIAL  LDEV CTG  H.../M/..                                                               SSID R:Group PRODUCT_ID
sdch            -            -     -   -  -                                                                          -       - SYMMETRIX
sdcha           CL1-C  111111111  35F   -  s---/s/ss-------------------------------------------------------------  0000 5:51-00 DF600F
sdchb           CL2-C   111111111   6D8   -  s---/s/sssssss--------------------------------------------------------  0000 5:58-00 DF600F
sdchc           CL2-C   111111111  6EF   -  s---/s/sssssss--------------------------------------------------------  0000 5:54-00 DF600F
sdchd           CL2-C   111111111  716   -  s---/s/sssssss--------------------------------------------------------  0000 5:39-00 DF600F
sdche           CL2-C   111111111  6E7   -  s---/s/sssssss--------------------------------------------------------  0000 5:46-00 DF600F
sdchf           CL2-C   111111111 6AD   -  s---/s/sssssss--------------------------------------------------------  0000 5:42-00 DF600F
sdchg           CL2-C   111111111   72E   -  s---/s/sssssss--------------------------------------------------------  0000 5:36-00 DF600F
sdchh           CL2-C   111111111  741   -  s---/s/sssssss--------------------------------------------------------  0000 5:55-00 DF600F

2. Symmetrix LUNs use following method

For symmetrix use following pattern to detect LUN

/usr/sbin/inq -sym_wwn -no_dots  ( SAN team provides device number )

[root@server1 sbin]# /usr/sbin/inq -sym_wwn -no_dots
Inquiry utility, Version V7.3-1305 (Rev 1.0)      (SIL Version V7.3.1.0 (Edit Level 1305)
Copyright (C) by EMC Corporation, all rights reserved.
For help type inq -h.


-----------------------------------------------------------------------------
Symmetrix Device    Symm Serial #  Device #  WWN
-----------------------------------------------------------------------------
/dev/sda            0002901xxxxx   00080     60060480000290104945531111111111
/dev/sdb            0002901xxxxx  021B1     60060480000290104922222222222222
/dev/sdc            0002901xxxxx   021B2     60060480000290103333333333333333
/dev/sdd            0002901xxxxx   021B3     60060480000290104444444444444444
/dev/sde            0002901xxxxx   021B4     60060480000290105555555555555555

Will update with more ..............


No comments:

Post a Comment