UnixPedia : HPUX / LINUX / SOLARIS: HPUX : how to remove/validate the limited state in ioscan.

Thursday, June 13, 2013

HPUX : how to remove/validate the limited state in ioscan.


ioscan -P health
ioscan -P health |grep -i offline

ioscan -m lun
disk 216  64000/0xfa00/0xd9 esdisk  CLAIMED DEVICE    limited  HP   OPEN-V
         0/2/1/0/4/0.0x50060e8005bf101a.0x40cd000000000000
         0/3/1/0/4/0.0x50060e8005bf103a.0x40cd000000000000
         0/6/1/0/4/0.0x50060e8005bf100a.0x40cd000000000000
         0/7/1/0/4/0.0x50060e8005bf102a.0x40cd000000000000
         0/3/1/0/4/0.0x50060e8005bf1039.0x40cd000000000000
         0/7/1/0/4/0.0x50060e8005bf1029.0x40cd000000000000
                  /dev/disk/disk216   /dev/rdisk/disk216


#-> scsimgr get_info all_lpt -D /dev/rdisk/disk216

    STATUS INFORMATION FOR LUN PATH : lunpath757

Generic Status Information

SCSI services internal state               = UNOPEN
Open close state                           = ACTIVE
Protocol                                   = fibre_channel
EVPD page 0x83 description code            = 1
EVPD page 0x83 description association     = 0
EVPD page 0x83 description type            = 3
World Wide Identifier (WWID)               = 0x60060e8005bf10000000bf100000536b
Total number of Outstanding I/Os           = 0
Maximum I/O timeout in seconds             = 30
Maximum I/O size allowed                   = 2097152
Maximum number of active I/Os allowed      = 16
Maximum queue depth                        = 16
Queue full delay count                     = 0
Asymmetric state                           = NA
Device preferred path                      = No
Relative target port identifier            = NA
Target port group identifier               = NA

    STATUS INFORMATION FOR LUN PATH : lunpath702

Generic Status Information

SCSI services internal state               = UNOPEN
Open close state                           = FAILED
Protocol                                   = fibre_channel
EVPD page 0x83 description code            = 1
EVPD page 0x83 description association     = 0
EVPD page 0x83 description type            = 3
World Wide Identifier (WWID)               = 0x60060e8005bf10000000bf100000536b
Total number of Outstanding I/Os           = 0
Maximum I/O timeout in seconds             = 30
Maximum I/O size allowed                   = 2097152
Maximum number of active I/Os allowed      = 16
Maximum queue depth                        = 16
Queue full delay count                     = 0
Asymmetric state                           = NA
Device preferred path                      = No
Relative target port identifier            = NA
Target port group identifier               = NA

    STATUS INFORMATION FOR LUN PATH : lunpath795

Generic Status Information

SCSI services internal state               = UNOPEN
Open close state                           = ACTIVE
Protocol                                   = fibre_channel
EVPD page 0x83 description code            = 1
EVPD page 0x83 description association     = 0
EVPD page 0x83 description type            = 3
World Wide Identifier (WWID)               = 0x60060e8005bf10000000bf100000536b
Total number of Outstanding I/Os           = 0
Maximum I/O timeout in seconds             = 30
Maximum I/O size allowed                   = 2097152
Maximum number of active I/Os allowed      = 16
Maximum queue depth                        = 16
Queue full delay count                     = 0
Asymmetric state                           = NA
Device preferred path                      = No
Relative target port identifier            = NA
Target port group identifier               = NA

    STATUS INFORMATION FOR LUN PATH : lunpath807

Generic Status Information

SCSI services internal state               = UNOPEN
Open close state                           = FAILED
Protocol                                   = fibre_channel
EVPD page 0x83 description code            = 1
EVPD page 0x83 description association     = 0
EVPD page 0x83 description type            = 3
World Wide Identifier (WWID)               = 0x60060e8005bf10000000bf100000536b
Total number of Outstanding I/Os           = 0
Maximum I/O timeout in seconds             = 30
Maximum I/O size allowed                   = 2097152
Maximum number of active I/Os allowed      = 16
Maximum queue depth                        = 16
Queue full delay count                     = 0
Asymmetric state                           = NA
Device preferred path                      = No
Relative target port identifier            = NA
Target port group identifier               = NA

    STATUS INFORMATION FOR LUN PATH : lunpath1527

Generic Status Information

SCSI services internal state               = UNOPEN
Open close state                           = ACTIVE
Protocol                                   = fibre_channel
EVPD page 0x83 description code            = 1
EVPD page 0x83 description association     = 0
EVPD page 0x83 description type            = 3
World Wide Identifier (WWID)               = 0x60060e8005bf10000000bf100000536b
Total number of Outstanding I/Os           = 0
Maximum I/O timeout in seconds             = 30
Maximum I/O size allowed                   = 2097152
Maximum number of active I/Os allowed      = 16
Maximum queue depth                        = 16
Queue full delay count                     = 0
Asymmetric state                           = NA
Device preferred path                      = No
Relative target port identifier            = NA
Target port group identifier               = NA

    STATUS INFORMATION FOR LUN PATH : lunpath1765

Generic Status Information

SCSI services internal state               = UNOPEN
Open close state                           = ACTIVE
Protocol                                   = fibre_channel
EVPD page 0x83 description code            = 1
EVPD page 0x83 description association     = 0
EVPD page 0x83 description type            = 3
World Wide Identifier (WWID)               = 0x60060e8005bf10000000bf100000536b
Total number of Outstanding I/Os           = 0
Maximum I/O timeout in seconds             = 30
Maximum I/O size allowed                   = 2097152
Maximum number of active I/Os allowed      = 16
Maximum queue depth                        = 16
Queue full delay count                     = 0
Asymmetric state                           = NA
Device preferred path                      = No
Relative target port identifier            = NA
Target port group identifier               = NA
[root@itwmdbp2:/.root]#



#-> cat >lunpath
0/2/1/0/4/0.0x50060e8005bf101a.0x40cd000000000000
0/3/1/0/4/0.0x50060e8005bf103a.0x40cd000000000000
0/6/1/0/4/0.0x50060e8005bf100a.0x40cd000000000000
0/7/1/0/4/0.0x50060e8005bf102a.0x40cd000000000000
0/3/1/0/4/0.0x50060e8005bf1039.0x40cd000000000000
0/7/1/0/4/0.0x50060e8005bf1029.0x40cd000000000000
#
#-> cat lunpath |while read i
> do
> ioscan -P health -H $i
> done
Class I  H/W Path  health
===============================
lunpath 757  0/2/1/0/4/0.0x50060e8005bf101a.0x40cd000000000000  online
Class I  H/W Path  health
===============================
lunpath 702  0/3/1/0/4/0.0x50060e8005bf103a.0x40cd000000000000  offline
Class I  H/W Path  health
===============================
lunpath 795  0/6/1/0/4/0.0x50060e8005bf100a.0x40cd000000000000  online
Class I  H/W Path  health
===============================
lunpath 807  0/7/1/0/4/0.0x50060e8005bf102a.0x40cd000000000000  offline
Class I  H/W Path  health
===============================
lunpath 1527  0/3/1/0/4/0.0x50060e8005bf1039.0x40cd000000000000  online
Class I  H/W Path  health
===============================
lunpath 1765  0/7/1/0/4/0.0x50060e8005bf1029.0x40cd000000000000  online
#



Check the target path in no-hw and we are sure that this can be removed.

#-> ioscan -kfNCtgtpath
Class I  H/W Path  Driver S/W State   H/W Type Description
=================================================================
tgtpath   9  0/2/1/0/4/0.0x50060e8005beef16  estp   CLAIMED TGT_PATH fibre_channel tgtpath   6  0/3/1/0/4/0.0x50060e8005bf103a  estp   NO_HW    TGT_PATH fibre_channel target served by fcd driver, target port id 0xea900
ttgtpath  18  0/5/1/0/4/0.0x500308c0020e8962  estp   CLAIMED TGT_PATH fibre_channel target served by fcd driver, target port id 0x54f900


tgtpath   8  0/7/1/0/4/0.0x50060e8005bf102a  estp   NO_HW    TGT_PATH fibre_channel target served by fcd driver, target port id 0xda900
tgtpath   4  64000/0x0/0x0.0x0            estp   CLAIMED TGT_PATH usb target served by usb_ms_scsi driver, target port id 0x0
#
#-> scsimgr get_attr -N /escsi/esdisk -a load_bal_policy

    SCSI ATTRIBUTES FOR SETTABLE ATTRIBUTE SCOPE : "/escsi/esdisk"

name = load_bal_policy
current = least_cmd_load
default = round_robin
saved = least_cmd_load

#
#-> rmsf -H 0/7/1/0/4/0.0x50060e8005bf102a

4 comments:

  1. You are always around to help (y)

    ReplyDelete
  2. Hello, i have the next poblem:

    i migrated the san disks of hpux 11.31 server to a vm running hpux 11.31 too. But when i execute the vgimport command on the vm for activate the volume groups i receive the next messages:

    vgimport -p -s -v -m /sort/MAPAS/vguspv2softempfian2.map /dev/vguspv2softempfian2



    Beginning the import process on Volume Group "/dev/vguspv2softempfian2".

    Couldn't access the list of physical volumes for volume group "/dev/vguspv2softempfian2".

    when i checked the disks status, i saw the next:

    a) running the "ioscan" command:


    Class I H/W Path Driver S/W State H/W Type Description

    ===================================================================

    disk 36 64000/0xfa00/0x27 esdisk CLAIMED DEVICE HITACHI OPEN-V

    /dev/disk/disk36 /dev/rdisk/disk36

    disk 37 64000/0xfa00/0x28 esdisk CLAIMED DEVICE HITACHI OPEN-V

    /dev/disk/disk37 /dev/rdisk/disk37

    disk 38 64000/0xfa00/0x29 esdisk CLAIMED DEVICE HITACHI OPEN-V

    /dev/disk/disk38 /dev/rdisk/disk38

    disk 39 64000/0xfa00/0x2a esdisk CLAIMED DEVICE HITACHI OPEN-V

    /dev/disk/disk39 /dev/rdisk/disk39

    disk 40 64000/0xfa00/0x2b esdisk CLAIMED DEVICE HITACHI OPEN-V

    /dev/disk/disk40 /dev/rdisk/disk40

    disk 41 64000/0xfa00/0x2c esdisk CLAIMED DEVICE HITACHI OPEN-V

    /dev/disk/disk41 /dev/rdisk/disk41

    b) By smh utility:

    Size 16.0007 GB

    Block Size (bytes) 512

    Capacity (blocks) 33555840

    Use LVM

    VG Name -

    Device Type direct access

    Instance Number 39

    Total Path Count 1

    Device Class disk

    Driver esdisk

    State UNOPEN

    Vendor "HITACHI "

    Product "OPEN-V "

    Serial Number "45688 "

    Firmware Revision "5001"

    SCSI Protocol Revision 2

    c) By lunpath:

    LUN PATH INFORMATION FOR LUN : /dev/rdisk/disk226



    Total number of LUN paths = 1

    World Wide Identifier(WWID) = 0x60060e8005b278000000b27800000eb5



    LUN path : lunpath249

    Class = lunpath

    Instance = 249

    Hardware path = 0/0/2/0/0.0x50060e8005b27870.0x40be000000000000

    SCSI transport protocol = Virtual Storage HBA

    State = UNOPEN

    Last Open or Close state = ACTIVE





    LUN PATH INFORMATION FOR LUN : /dev/rdisk/disk227



    Total number of LUN paths = 1

    World Wide Identifier(WWID) = 0x60060e8005b278000000b27800000640



    LUN path : lunpath250

    Class = lunpath

    Instance = 250

    Hardware path = 0/0/2/0/0.0x50060e8005b27870.0x40c0000000000000

    SCSI transport protocol = Virtual Storage HBA

    State = UNOPEN

    Last Open or Close state = ACTIVE

    Questions:

    1) If all disks for this volume group are CLAIMED, why cant activate de volume group ??
    2) What does mean the UNOPEN disk state ??.

    3) How can fix this issue ??

    Regards

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete