11iv 3

http://docs.hp.com/en/netsys.html#Storage%20Area%20Management

Enable or disable the Legacy Naming Model

To disable the Legacy naming model of disk drives

  rmsf -L
         WARNING: This command may be disruptive to the system.
         Before running this command, make sure you have first run
         iofind(1M) and migrated all applications using legacy device
         special files. Please refer to the man page of rmsf(1M) to
         verify the possible side effects of the option '-L'.
         Do you want to continue ?
         (You must respond with 'y' or 'n'.): y
 rmsf: Legacy mode has been successfully disabled

To enable the legacy naming model

 # insf -L
         This command will re-install all legacy I/O nodes and legacy DSFs.
         Do you want to continue ?
         (You must respond with 'y' or 'n'.): yes
 insf: Legacy mode has been successfully enabled

Migration from Legacy VG

vgdsf is a script to migrate a LVM volume group from legacy to agile naming model.

 # vgdsf
 USAGE: vgdsf {-a | -d | -c} vg_name
   -a - Add persistent DSFs to the volume group
   -d - Delete legacy DSFs from the volume group
   -c - Convert legacy DSFs to persistent DSFs (-a and -d)in the volume group

IOSCAN Improvements:

-N displays output using agile view instead of legacy view

 
# ioscan -fnNC disk
Class     I  H/W Path  Driver S/W State   H/W Type     Description
===================================================================
disk      2  64000/0xfa00/0x0  esdisk   CLAIMED     DEVICE       HP      DG146BB976
                      /dev/disk/disk2      /dev/disk/disk2_p2   /dev/rdisk/disk2     /dev/rdisk/disk2_p2
                      /dev/disk/disk2_p1   /dev/disk/disk2_p3   /dev/rdisk/disk2_p1  /dev/rdisk/disk2_p3
disk      3  64000/0xfa00/0x1  esdisk   CLAIMED     DEVICE       HP      DG146BB976
                      /dev/disk/disk3      /dev/disk/disk3_p2   /dev/rdisk/disk3     /dev/rdisk/disk3_p2
                      /dev/disk/disk3_p1   /dev/disk/disk3_p3   /dev/rdisk/disk3_p1  /dev/rdisk/disk3_p3
disk     17  64000/0xfa00/0x9  esdisk   CLAIMED     DEVICE       DGC     CX3-20cWDR5
                      /dev/disk/disk17   /dev/rdisk/disk17
disk     18  64000/0xfa00/0xa  esdisk   CLAIMED     DEVICE       DGC     CX3-20cWDR5
                      /dev/disk/disk18   /dev/rdisk/disk18 

# ioscan -kfnNC tgtpath
Class     I  H/W Path  Driver S/W State   H/W Type     Description
=================================================================
tgtpath   5  0/1/2/0.0x5006016141e0b836  estp   CLAIMED     TGT_PATH     fibre_channel target served by fcd driver, target port id 0x10000
tgtpath   4  0/1/2/0.0x5006016941e0b836  estp   CLAIMED     TGT_PATH     fibre_channel target served by fcd driver, target port id 0x20000
tgtpath   3  0/5/2/0.0x5006016041e0b836  estp   CLAIMED     TGT_PATH     fibre_channel target served by fcd driver, target port id 0x10000
tgtpath   2  0/5/2/0.0x5006016841e0b836  estp   CLAIMED     TGT_PATH     fibre_channel target served by fcd driver, target port id 0x20000

# ioscan -kfnNC lunpath
Class     I  H/W Path  Driver S/W State   H/W Type     Description
==================================================================
lunpath   4  0/1/2/0.0x5006016141e0b836.0x0                 eslpt   CLAIMED     LUN_PATH     LUN path for ctl4
lunpath  10  0/1/2/0.0x5006016141e0b836.0x4000000000000000  eslpt   CLAIMED     LUN_PATH     LUN path for disk17
lunpath  11  0/1/2/0.0x5006016141e0b836.0x4001000000000000  eslpt   CLAIMED     LUN_PATH     LUN path for disk18
lunpath   5  0/1/2/0.0x5006016941e0b836.0x0                 eslpt   CLAIMED     LUN_PATH     LUN path for ctl4
lunpath  12  0/1/2/0.0x5006016941e0b836.0x4000000000000000  eslpt   CLAIMED     LUN_PATH     LUN path for disk17
lunpath  13  0/1/2/0.0x5006016941e0b836.0x4001000000000000  eslpt   CLAIMED     LUN_PATH     LUN path for disk18
lunpath   0  0/4/1/0.0x5000c5000f38d269.0x0                 eslpt   CLAIMED     LUN_PATH     LUN path for disk2
lunpath   1  0/4/1/0.0x5000c5000f393f49.0x0                 eslpt   CLAIMED     LUN_PATH     LUN path for disk3
lunpath   2  0/5/2/0.0x5006016041e0b836.0x0                 eslpt   CLAIMED     LUN_PATH     LUN path for ctl4
lunpath  14  0/5/2/0.0x5006016041e0b836.0x4000000000000000  eslpt   CLAIMED     LUN_PATH     LUN path for disk17
lunpath  15  0/5/2/0.0x5006016041e0b836.0x4001000000000000  eslpt   CLAIMED     LUN_PATH     LUN path for disk18
lunpath   3  0/5/2/0.0x5006016841e0b836.0x0                 eslpt   CLAIMED     LUN_PATH     LUN path for ctl4
lunpath  16  0/5/2/0.0x5006016841e0b836.0x4000000000000000  eslpt   CLAIMED     LUN_PATH     LUN path for disk17
lunpath  17  0/5/2/0.0x5006016841e0b836.0x4001000000000000  eslpt   CLAIMED     LUN_PATH     LUN path for disk18

To find out which legacy DSF does /dev/rdisk/disk17 map?

 # ioscan -m dsf /dev/rdisk/disk17
 Persistent DSF           Legacy DSF(s)
 
 /dev/rdisk/disk17        /dev/rdsk/c6t0d0
                          /dev/rdsk/c5t0d0
                          /dev/rdsk/c7t0d0
                          /dev/rdsk/c8t0d0

To which persistent DSF does /dev/rdsk/c5t2d4 map?

 # iioscan -m dsf /dev/rdsk/c6t0d0
 Persistent DSF           Legacy DSF(s)
 
 /dev/rdisk/disk17        /dev/rdsk/c6t0d0

To get Hardware path information of drives

  
# ioscan -m hwpath
Lun H/W Path      Lunpath H/W Path                 Legacy H/W Path
====================================================================
64000/0xfa00/0x0
                  0/4/1/0.0x5000c5000f38d269.0x0   0/4/1/0.0.0.1.0
64000/0xfa00/0x1
                  0/4/1/0.0x5000c5000f393f49.0x0   0/4/1/0.0.0.0.0
64000/0xfa00/0x9
                  0/1/2/0.0x5006016941e0b836.0x4000000000000000   0/1/2/0.2.0.0.0.0.0
                  0/1/2/0.0x5006016141e0b836.0x4000000000000000   0/1/2/0.1.0.0.0.0.0
                  0/5/2/0.0x5006016041e0b836.0x4000000000000000   0/5/2/0.1.0.0.0.0.0
                  0/5/2/0.0x5006016841e0b836.0x4000000000000000   0/5/2/0.2.0.0.0.0.0
64000/0xfa00/0xa
                  0/1/2/0.0x5006016941e0b836.0x4001000000000000   0/1/2/0.2.0.0.0.0.1
                  0/1/2/0.0x5006016141e0b836.0x4001000000000000   0/1/2/0.1.0.0.0.0.1
                  0/5/2/0.0x5006016041e0b836.0x4001000000000000   0/5/2/0.1.0.0.0.0.1
                  0/5/2/0.0x5006016841e0b836.0x4001000000000000   0/5/2/0.2.0.0.0.0.1
64000/0xfa00/0xb
                  0/1/2/0.0x5006016141e0b836.0x0   0/1/2/0.1.0.255.0.0.0
                  0/1/2/0.0x5006016941e0b836.0x0   0/1/2/0.2.0.255.0.0.0
                  0/5/2/0.0x5006016041e0b836.0x0   0/5/2/0.1.0.255.0.0.0
                  0/5/2/0.0x5006016841e0b836.0x0   0/5/2/0.2.0.255.0.0.0

# ioscan -m lun
Class     I  Lun H/W Path  Driver  S/W State   H/W Type     Health  Description
======================================================================
disk     19  64000/0xfa00/0x4    esdisk  CLAIMED     DEVICE       online  HP      DH072ABAA6
             0/4/1/0.0x5000c50005274b25.0x0
                      /dev/disk/disk19      /dev/disk/disk19_p2   /dev/rdisk/disk19     /dev/rdisk/disk19_p2
                      /dev/disk/disk19_p1   /dev/disk/disk19_p3   /dev/rdisk/disk19_p1  /dev/rdisk/disk19_p3
disk     20  64000/0xfa00/0x5    esdisk  CLAIMED     DEVICE       online  HP      DG072A8B54
             0/4/1/0.0x5000c50001d7194d.0x0
                      /dev/disk/disk20      /dev/disk/disk20_p2   /dev/rdisk/disk20     /dev/rdisk/disk20_p2
                      /dev/disk/disk20_p1   /dev/disk/disk20_p3   /dev/rdisk/disk20_p1  /dev/rdisk/disk20_p3
disk     21  64000/0xfa00/0xc    esdisk  CLAIMED     DEVICE       online  TEAC    DV-28E-N
             64000/0x0/0x0.0x0.0x0
                      /dev/disk/disk21   /dev/rdisk/disk21
ctl       7  64000/0xfa00/0xd    esctl   CLAIMED     DEVICE       online  FUJITSU E4000
             0/3/1/0.0x2040000b5d6a0582.0x0
             0/7/1/0.0x2041000b5d6a0582.0x0
                      /dev/pt/pt7
disk     42  64000/0xfa00/0xe    esdisk  CLAIMED     DEVICE       online  FUJITSU E4000
             0/3/1/0.0x2040000b5d6a0582.0x4000000000000000
             0/7/1/0.0x2041000b5d6a0582.0x4000000000000000
                      /dev/disk/disk42   /dev/rdisk/disk42
disk     43  64000/0xfa00/0xf    esdisk  CLAIMED     DEVICE       online  FUJITSU E4000
             0/3/1/0.0x2040000b5d6a0582.0x4001000000000000
             0/7/1/0.0x2041000b5d6a0582.0x4001000000000000
                      /dev/disk/disk43   /dev/rdisk/disk43


SCSIMGR

The scsimgr command displays the mapping between LUNs and lunpaths.

 
# scsimgr lun_map -D /dev/rdisk/disk17
        LUN PATH INFORMATION FOR LUN : /dev/rdisk/disk17

Total number of LUN paths     = 4
World Wide Identifier(WWID)    = 0x6006016035901e0076c2e3d21f11de11

LUN path : lunpath12
Class                         = lunpath
Instance                      = 12
Hardware path                 = 0/1/2/0.0x5006016941e0b836.0x4000000000000000
SCSI transport protocol       = fibre_channel
State                         = ACTIVE
Last Open or Close state      = ACTIVE

LUN path : lunpath10
Class                         = lunpath
Instance                      = 10
Hardware path                 = 0/1/2/0.0x5006016141e0b836.0x4000000000000000
SCSI transport protocol       = fibre_channel
State                         = STANDBY
Last Open or Close state      = STANDBY

LUN path : lunpath14
Class                         = lunpath
Instance                      = 14
Hardware path                 = 0/5/2/0.0x5006016041e0b836.0x4000000000000000
SCSI transport protocol       = fibre_channel
State                         = STANDBY
Last Open or Close state      = STANDBY

LUN path : lunpath16
Class                         = lunpath
Instance                      = 16
Hardware path                 = 0/5/2/0.0x5006016841e0b836.0x4000000000000000
SCSI transport protocol       = fibre_channel
State                         = ACTIVE
Last Open or Close state      = ACTIVE 


 # scsimgr get_attr -D /dev/rdisk/disk17 -a load_bal_policy

        SCSI ATTRIBUTES FOR LUN : /dev/rdisk/disk17

 name = load_bal_policy
 current = round_robin
 default = round_robin
 saved =

LUN WWID
The wwid attribute holds the LUN VPD page 83h WWID:

 # scsimgr get_attr -D /dev/rdisk/disk17 -a wwid

        SCSI ATTRIBUTES FOR LUN : /dev/rdisk/disk17

 name = wwid
 current = 0x6006016035901e0076c2e3d21f11de11
 default =
 saved =

All the SAN Drives on a system running HP-UX 11i v3 was showing NO_HW in the ioscan output. The following commands solved the problem.

 # ioscan -fnNC tgtpath
 Class     I  H/W Path  Driver S/W State   H/W Type     Description
 
 tgtpath   7  0/3/1/0.0x2040000b5d6a0582  estp   CLAIMED     TGT_PATH     fibre_channel target served by fcd driver, target port id 0x10700
 tgtpath   4  0/4/1/0.0x5000c500073db91d  estp   CLAIMED     TGT_PATH     sas target served by sasd driver, target port id 0x5000c500073db91d
 tgtpath   5  0/4/1/0.0x5000c500073dedfd  estp   CLAIMED     TGT_PATH     sas target served by sasd driver, target port id 0x5000c500073dedfd
 tgtpath   8  0/7/1/0.0x2041000b5d6a0582  estp   CLAIMED     TGT_PATH     fibre_channel target served by fcd driver, target port id 0x20700
 tgtpath   6  64000/0x0/0x0.0x0           estp   CLAIMED     TGT_PATH     usb target served by usb_ms_scsi driver, target port id 0x0


 scsimgr -f replace_wwid -C tgtpath -I 7
 scsimgr -f replace_wwid -C tgtpath -I 8