HP 3PAR HP-UX Implementation Guide

# scsimgr set_attr -D /dev/rdisk/disk22 -a alias=oracle2
# scsimgr save_attr -D /dev/rdisk/disk22 -a alias=oracle2
# scsimgr -p get_attr all_lun -a device_file -a alias
...
/dev/rdisk/disk23:oracle2
7. You can list and remove all stale devices in the system using the following commands:
# ioscan -s --> lists all stale devices
Class I H/W Path Driver
================================
disk 19 0/0/0/3/0.6.0 sdisk
fcp 0 0/0/4/1/0.18 fcd_fcp
ext_bus 11 0/0/4/1/0.18.1.0.0 fcd_vbus
disk 7 0/0/4/1/0.18.1.0.0.0.1 sdisk
disk 8 0/0/4/1/0.18.1.0.0.0.2 sdisk
# lssf -s --> also lists stale devices
# rmsf -x --> remove all stale device entries
rmsf: Removing stale entry at 0/0/0/3/0.6.0 for sdisk
rmsf: Removing stale entry at 0/0/4/1/0.18 for fcd_fcp
rmsf: Removing stale entry at 0/0/4/1/0.18.1.0.0 for fcd_vbus
rmsf: Removing stale entry at 0/0/4/1/0.18.1.0.0.0.1 for sdisk
8. Use the diskinfo or scsimgr command or SAM tool to display the volume size of the
exported LUN.
# diskinfo /dev/rdisk/disk3
SCSI describe of /dev/rdisk/disk3:
vendor: 3PARdata
product id: VV
type: direct access
size: 5242880 Kbytes
bytes per sector: 512
# scsimgr get_info -D /dev/rdisk/disk3
Driver esdisk Status Information :
Capacity in number of blocks = 10485760
Block size in bytes = 512
9. Some of the LVM commands such as vgimport require the-N option to be specified to use
the new DSF device name (/dev/disk/disk). All display commands will show the persistent
DSF name.
# ioscan -kfnNC disk
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
disk 0 64000/0xfa00/0x23e esdisk CLAIMED DEVICE 3PARdataVV
/dev/disk/disk0 /dev/rdisk/disk0
# vgdisplay -v
VG Name /dev/vgcluster
VG Write Access read/write
VG Status available
...
--- Physical volumes ---
PV Name /dev/disk/disk0
PV Status available
32 Allocating Storage for Access by the HP-UX Host