HP SCSI 2 drive booting problems (now SCSI ID mapping)

sun!synergy!kevin at corp.sun.com sun!synergy!kevin at corp.sun.com
Thu Feb 14 09:03:00 AEST 1991


In article <1361 at brchh104.bnr.ca> faatcrl!jimb at gvlv2.gvl.unisys.com (Jim Burwell) writes:

>Also, does anyone know how Sun binds SCSI IDs to device names ?  ID 0 maps
>to sd0, ID 1 maps to SD2.  What ID does sd1 map to ?

On the older machines, it is a config line like this:

disk            sd0 at si0 drive 0 flags 0

where the drive number is target*8 + lun (logical unit number).  We
ususally set up the config file so that 0 and 1 were the disks on the
first controller, and 2 & 3 the logical units on the second controller.

disk		sd2 at si0 drive 8 flags 0	# target 1, lun 0
disk		sd3 at si0 drive 9 flags 0	# target 1, lun 1

A little known fact is that you can enter the numbers in octal as well as
decimal, which makes things easier for SCSI devices.  The above lines
would then read:

disk		sd2 at si0 drive 010 flags 0	# target 1, lun 0
disk		sd3 at si0 drive 011 flags 0	# target 1, lun 1

The unit number (as in sd#) is mostly arbitrary - what comes in the drive
field is what counts for SCSI addressing.

For the newer (open prom) systems, the addressing is explicit, and the
drive number is again arbitrary.  It is a good idea to keep them
sequential and monotonically ascending.

disk sd0 at scsibus0 target 3 lun 0     # first hard SCSI disk

	l & h,
	kev



More information about the Comp.sys.sun mailing list