man uakmknod





NAME


  uakmknod - Digital UNIX mknod generation (from University of Alaska)


SYNOPSIS


  uakmknod -hsz	 hostbus,hszunit [-options]

  uakmknod -disk hostbus,target [-options]

  uakmknod -tape hostbus,target [-options]

  uakmknod -show [hostbus,number] [-options]


DESCRIPTION


  The uakmknod command generates mknod commands to create device special
  files for Digital UNIX. This utility calculates the device minor numbers.
  The mknod commands are generated but not automatically executed.  Files for
  general disks, disks behind raid controllers, and tapes can be specified.


ACTIONS and OPTIONS


  uakmknod utilizes the cci command parser utilized by non-UNIX operating
  systems instead of the traditional UNIX getopt() parsing. Actions and
  options have been defined to "look like" UNIX style options, but can be
  spelled out or abbreviated.  For example '-h' is the same as '-hsz40'.
  Because of this multiple options must be space separated and the hyphen is
  part of the option name.

  Actions (one of the following must be specified)

  -hsz	  host_bus,hsz_unit
	  Generate hsz device files, such as:

	  -hsz 2,200	  # host scsi2 hsz unit d200

  -tape	  host_bus,target
	  Generate tape device files, such as:

	  -tape 4,1	  # host scsi4 target 1

  -disk	  host_bus,target
	  Generate disk device files, such as:

	  -disk 1,4	  # host scsi1 target 4 (e.g., rz12)

  -show	  host_bus,number
	  Display hsz device tables for specified number of busses:
		  -show 0,4	  # show devices bus 0 through 3

  Options

  -number number
	  Specify device number to replace default of 8*bus + target.  This
	  option is most useful for customizing tape device numbers.

  -output filename
	  Specify optional output filename for mknod commands.


EXAMPLES


  Generate device files for bus 4 hsz unit d201:

       # uakmknod -hsz 4,201
       # rz34 mknod: host scsi-id 4 HSZ unit d201 target-id 2 lun 1 lu 34
       #
       mknod	/dev/rzb34a    b 8     67648 #
       mknod	/dev/rzb34b    b 8     67649 #
       mknod	/dev/rzb34c    b 8     67650 #
       mknod	/dev/rzb34d    b 8     67651 #
       mknod	/dev/rzb34e    b 8     67652 #
       mknod	/dev/rzb34f    b 8     67653 #
       mknod	/dev/rzb34g    b 8     67654 #
       mknod	/dev/rzb34h    b 8     67655 #
       #
       mknod   /dev/rrzb34a    c 8     67648 #
       mknod   /dev/rrzb34b    c 8     67649 #
       mknod   /dev/rrzb34c    c 8     67650 #
       mknod   /dev/rrzb34d    c 8     67651 #
       mknod   /dev/rrzb34e    c 8     67652 #
       mknod   /dev/rrzb34f    c 8     67653 #
       mknod   /dev/rrzb34g    c 8     67654 #
       mknod   /dev/rrzb34h    c 8     67655 #

  Generate device files for tape on bus 1 target 2, named mt8:

       # uakmknod -tape 1,2 -n8
       # mt8 mknod: host scsi-id 1 target unit 2 lu 10
       #
       mknod	/dev/rmt8l     c 9     18432 # Default:	 /dev/rmt10l
       mknod   /dev/nrmt8l     c 9     18433 # Default: /dev/nrmt10l
       mknod	/dev/rmt8h     c 9     18434 # Default:	 /dev/rmt10h
       mknod   /dev/nrmt8h     c 9     18435 # Default: /dev/nrmt10h
       mknod	/dev/rmt8m     c 9     18436 # Default:	 /dev/rmt10m
       mknod   /dev/nrmt8m     c 9     18437 # Default: /dev/nrmt10m
       mknod	/dev/rmt8a     c 9     18438 # Default:	 /dev/rmt10a
       mknod   /dev/nrmt8a     c 9     18439 # Default: /dev/nrmt10a

  Show device table for bus 0 and 1:

       # uakmknod -s 0,2
	       Host scsi-id Default Device Naming and Base Minor #'s

       HSZ     scsi#0	       scsi#1
       Unit    rz	minor  rz	minor

       d100    rza1_	 1024  rza9_	17408
       d101    rzb1_	 1088  rzb9_	17472
       d102    rzc1_	 1152  rzc9_	17536
       d103    rzd1_	 1216  rzd9_	17600
       d104    rze1_	 1280  rze9_	17664
       d105    rzf1_	 1344  rzf9_	17728
       d106    rzg1_	 1408  rzg9_	17792
       d107    rzh1_	 1472  rzh9_	17856
       [...]


RESTRICTIONS


  The following conventions are used in Digital UNIX (at least v3.0 through
  v4.0b):

       Naming convention (find info from 'scu show edt'),
       from hsz v2.5 users gd:

       device  r[r]zXnnY, where:
	       X       a=LUN0, b=LUN1, ..., h=LUN7
	       nn      (8 * Host Side SCSI Bus #) +
		       (Target ID from HSZ40 unit designator)
	       Y       partition designator (a through h)

       minor#  ((bus# * 16384) + (target# * 1024) + (LUN# * 64)) +
	       (partition # where a=0, ..., h=7)


RELATED INFORMATION


  Commands:  mknod(8), MAKEDEV(8), MAKE_RAID_LUNS(8), scu(8).