MKSCSIDEV — User Commands
NAME
mkscsidev − Create scsi devices.
SYNOPSIS
mkscsidev [options] deviceName
OPTIONS
−server serverID
ServerID is the Sprite ID of the server for the device. The default is to set up the device to use the local host.
−hbaType hbaType
HbaType is the numeric identifier for the type of HBA associated with the device. The default is 0. The following are valid hba types: SCSI3 = 0; DecStation 3100 = 0; SCSI0 = 1; JAGUAR = 2.
−devType deviceType
DevType is the numeric identifier for the type of device. The default is 4 (SCSI disk).
−hba hbaHba is the id of the hba controller that the scsi device is connected to. The default is 0.
−target targetTarget is the scsi target id of the scsi device. The default is 0.
−lun lunLun is the scsi logical unit number of the scsi device. The default is 0.
−diskThe −disk option is used to create all the partitions for a scsi disk. In this case the deviceName is treated as a prefix, and 8 devices are made by appending the letters ’a’ through ’h’ to the prefix.
−rawDiskThe −rawDisk option is used to create all the partitions for a raw scsi disk. A raw disk is accessed without referencing the disk label. In this case the deviceName is treated as a prefix, and 8 devices are made by appending the letters ’a’ through ’h’ to the prefix.
−tapeThe −tape option is used to create a device file for a SCSI tape.
−rawScsiThe −rawScsi option is used to create a device file for a raw SCSI device.
−specific value4 bits of the device unit number are device specific. The −specific option can be used to set those bits. option.
−helpPrint a summary of the command-line options.
DESCRIPTION
Mkscsidev is used to create SCSI devices. It is a user-friendly front end for the fsmakedev program. The −disk option is probably the most useful. It treats the deviceName as a prefix and creates devices for all partitions of the disk.
EXAMPLES
mkscsidev −hba 2 −target 1 −disk /dev/rsd21 creates the devices:
/dev/rsd21a, /dev/rsd21b, /dev/rsd21c, /dev/rsd21d, /dev/rsd21e, /dev/rsd21f, /dev/rsd21g, and /dev/rsd21h,
using the following calls to fsmakedev:
fsmakedev -d 4 -u 2064 /dev/rsd21a
fsmakedev -d 4 -u 2065 /dev/rsd21b
fsmakedev -d 4 -u 2066 /dev/rsd21c
fsmakedev -d 4 -u 2067 /dev/rsd21d
fsmakedev -d 4 -u 2068 /dev/rsd21e
fsmakedev -d 4 -u 2069 /dev/rsd21f
fsmakedev -d 4 -u 2070 /dev/rsd21g
fsmakedev -d 4 -u 2071 /dev/rsd21h mkscsidev −server 10 −devType 5 −lun 1 −specific 10 /dev/foo produces the device /dev/foo using the following call to fsmakedev:
fsmakedev -s 10 -d 5 -u 138 /dev/foo
KEYWORDS
scsi, disk, partitions, fsmakedev, device
Sprite version 1.0 — January 11, 1990