Date: 07/07
Affected NV Version: ALL
OS Version: Supported HP-UX
Plugin version: N/A
Application version: N/A
Description:
How to identify the BUS instance, SCSI ID and LUN of a device on a HP-UX server
Symptoms:
How to identify the BUS instance, SCSI ID and LUN of a device on a HP-UX server to see which device files are relevant in the /dev/nvscsi directory.
Run ioscan -f displays full information about the system configuration, including instance number, device/interface driver, software state, and hardware type. The -fn option also displays the device special files.
/usr/sbin/ioscan -f
Class I H/W Path Driver S/W State H/W Type Description
=========================================================
...
=ext_bus 0 8/0 c720 CLAIMED INTERFACE F/W SCSI
=target 0 8/0.5 tgt CLAIMED DEVICE
=disk 0 8/0.5.0 sdisk CLAIMED DEVICE HP C2247
=ba 0 8/12 bus_adapter CLAIMED BUS_NEXUS Core I/O Adapter
=ext_bus 2 8/12/0 CentIf CLAIMED INTERFACE Parallel Interface
=audio 0 8/12/1 audio CLAIMED INTERFACE Audio
=tty 0 8/12/4 asio0 CLAIMED INTERFACE RS-232C
=ext_bus 1 8/12/5 c700 CLAIMED INTERFACE SCSI
=target 1 8/12/5.0 tgt CLAIMED DEVICE
=disk 1 8/12/5.0.0 sflop CLAIMED DEVICE TEAC FC-1
...
=========================================================
The hardware path can be decoded as follows:
8 identifies the bus adapter connecting the GSC+ bus to the system bus.
0 identifies the slot number of the Fast/Wide SCSI interface.
5 represents the "target," or SCSI address, set on the disk device itself.
0 indicates a unit number or SCSI LUN number.
You can use ioscan -fn (or -fkn or -fun) to show device special file names associated with a peripheral. You can also add other ioscan options (such as -H, -C, -d, or -I) to limit your output to specific elements in your configuration.
The following example, using -C tape, shows the device files available for tape class, as well as the location and type of tape device. Note too, the new tape device file naming convention.
/usr/sbin/ioscan -fn -C tape
Class I H/W Path Driver S/W State H/W Type Description
=========================================================
=tape 0 56/52.0.0 tape2 CLAIMED DEVICE WANGTEK 51000 SCSI
= /dev/diag/rmt/c0t0d0 /dev/rmt/c0t0d0BESTn
= /dev/rmt/c0t0d0BEST /dev/rmt/c0t0d0BESTnb
= /dev/rmt/c0t0d0BESTb
=========================================================
This will help determine which device files are need for NetVault in the /dev/nvscsi directory. The rest can be deleted to increase device scan performance.
*Consult the ioscan(1M) manpage for further information about this tool.