HP-UX 11i v3 Mass Storage Device Naming
Creating pass-through device files using mksf
In some situations the user may need to send SCSI commands directly to the device via the pass-
through driver: esctl. For that purpose the user should create a device file attached to the pass-through
driver. In HP-UX releases prior to 11i v3, mknod was used to create pass-through device files. In HP-
UX 11i v3 the –P option of mksf must be used to create pass-through persistent DSFs. The –P option
can be used with any of the device identifiers accepted by mksf, including the combination of
driver/class and instance number, and the hardware path. By default the system uses the following
convention for the pass-through device file name:
• /dev/pt/pt_<class><instance>
Where:
• class: is the device class such as disk, tape or autoch.
• instance: the instance number assigned to the device within its class by the system.
The following examples show how to create pass-through device files using mksf.
• To create the default pass-through device file for disk with instance 98: /dev/pt/pt_disk98
# mksf -P -C disk -I 98
• To create the default pass-through device file for tape device with instance number 2:
/dev/pt/pt_tape2
# mksf -P -C tape -I 2
• To create a pass-through device file for the tape device with instance number 3, with the
name of the device special file specified as: /dev/pt/tape3_passthrough
# mksf -P -C tape -I 3 /dev/pt/tape3_passthrough
Displaying options associated with a device special file
The lssf command displays the options associated with a device special file: lssf <device_file>.
Below are examples of use of the lssf command to display device options and other information.
# lssf /dev/disk/disk15 /dev/disk/disk15_p1 /dev/disk/disk15_p3
esdisk section 0 at address 64000/0xfa00/0x0 /dev/disk/disk15
esdisk section 1 at address 64000/0xfa00/0x0 /dev/disk/disk15_p1
esdisk section 3 at address 64000/0xfa00/0x0 /dev/disk/disk15_p3
# lssf /dev/rtape/tape2_BEST
estape AT&T BEST density at address 64000/0xfa00/0x5 /dev/rtape/tape2_BEST
# lssf /dev/rtape/tape2_BESTn
estape AT&T No-Rewind BEST density at address 64000/0xfa00/0x5 /dev/rtape/tape2_BESTn
# lssf /dev/rtape/tape3_BESTb
estape Berkeley BEST density at address 64000/0xfa00/0x10 /dev/rtape/tape3_BESTb
# lssf /dev/rtape/tape2_BESTnb
estape Berkeley No-Rewind BEST density at address 64000/0xfa00/0x5 /dev/rtape/tape2_BESTnb
8/13