Labels

hpunix (63) marathi kavita (52) linux (21) solaris11 (11) AWS (5) numerology (5)

Thursday, June 26, 2014

Identify new Lun’s added in 11.31 on Clarion storage + HPUX

How to identify new Lun’s added in 11.31 on Clarion storage:

   Device name       Size   

        681                    30GB   
        684                    30GB   

Here Device name/Lun id is 681 and 684.

Steps:

1.       #ioscan –fnCdisk  

2.       #insf   -e disk   

3.       #ls –lt /dev/disk |more
brw-r-----   1 bin        sys          1 0x000013 Sep 20 16:57 disk46
brw-r-----   1 bin        sys          1 0x000012 Sep 20 16:57 disk43
brw-r-----   1 bin        sys          1 0x00000e Sep 13 15:36 disk38
brw-r-----   1 bin        sys          1 0x00000f Sep 13 15:36 disk39

See the timestamp to identify newly added disks.

4.       #ioscan –m dsf   

5.       #ioscan -m lun  

6.       #strings /etc/lvmtab |grep –i disk46 


7.       # /usr/local/bin/inq.HPUXIA64 -clariion -no_dots

/dev/rdisk/disk35   :DGC     :CX4-240WDR5     :HP03  :Ch2 CONT   :    41943040:   4: 2a2:ASSIGNED
/dev/rdisk/disk36   :DGC     :CX4-240WDR5     :HP03  :Ch2 CONT   :    31457280:   5: 2a4:ASSIGNED
/dev/rdisk/disk37   :DGC     :CX4-240WDR5     :HP03  :Ch2 CONT   :    20971520:   6: 2a6:ASSIGNED
/dev/rdisk/disk38   :DGC     :CX4-240WDR5     :HP03  :Ch2 CONT   :    52428800:   0: 2a1:ASSIGNED
/dev/rdisk/disk39   :DGC     :CX4-240WDR5     :HP03  :Ch2 CONT   :    31457280:   1: 2a3:ASSIGNED
/dev/rdisk/disk40   :DGC     :CX4-240WDR5     :HP03  :Ch2 CONT   :    31457280:   2: 2a5:ASSIGNED
/dev/rdisk/disk41   :DGC     :CX4-240WDR5     :HP03  :Ch2 CONT   :    20971520:   3: 2a7:ASSIGNED
/dev/rdisk/disk43   :DGC     :CX4-240WDR5     :HP03  :Ch2 CONT   :    31457280:   7: 2a9:ASSIGNED
/dev/rdisk/disk46   :DGC     :CX4-240WDR5     :HP03  :Ch2 CONT   :    31457280:   8: 2ac:ASSIGNED

Device name/Lun id will be given by storage team. Here 2ac will be our device name/Lun id which is in hex. Convert it into decimal
2ac in hex=684 in Dec


8.       #scsimgr -v get_info all_lun   < To get all status information of all the LUNs>

        STATUS INFORMATION FOR LUN : /dev/rdisk/disk46

Generic Status Information

SCSI services internal state                  = UNOPEN
Device type                                   = Direct_Access
EVPD page 0x83 description code               = 1
EVPD page 0x83 description association        = 0
EVPD page 0x83 description type               = 3
World Wide Identifier (WWID)                  = 0x6006016076d02100d526f620b9e3e011


SCSI services internal state is UNOPEN then that is unused disk. If disk is used then the state will be ONLINE


Note: If we have OS other than 11.31 then will be not able to use this command.

No comments:

Post a Comment