INFODOC ID: 14046
SYNOPSIS: Using show-disks to create devalias for Ultra[TM] disk board boot drive
DETAIL DESCRIPTION:
Using show-disks to create a devalias for an Ultra disk board boot drive

After installing Solaris on your Ultra Enterprise disk board in card cage
slot 5, you may discover that Solaris won't boot because the boot device
is not defined as the boot-device in the Open Boot PROM.

The alias "diskbrd" is defined at /sbus@3,0/SUNW,fas@3,8800000/sd@a,0
for disk boards installed in card cage slot 3.  This does not work if
the disk board is installed in card cage slot 5 on your server.
To define a different boot device:

    1) Run probe-scsi view drives on the disk board board.
    2) Use show-disks to view your SCSI controllers.
    3) Use nvalias to create a device alias.
    4) Use setenv to set the boot-device to your device alias.


At the OpenBoot PROM prompt, run probe-scsi-all to view all SCSI devices:

  {0} ok probe-scsi-all
  /sbus@7,0/SUNW,fas@3,8800000
  Target c 
    Unit 0   Disk     SEAGATE ST32550W SUN2.1G041800000000
                      Copyright (c) 1996 Seagate
                      All rights reserved ASA2
  Target d 
    Unit 0   Disk     SEAGATE ST32550W SUN2.1G041800000000
                      Copyright (c) 1996 Seagate
                      All rights reserved ASA2
  
  /sbus@3,0/SUNW,fas@3,8800000
  Target 5 
    Unit 0   Removable Tape     EXABYTE EXB-8505SMBANSH20793            

  Target 6 
    Unit 0   Removable Read Only device     TOSHIBA XM-4101TASUNSLCD342412/08/94
         

The boot drive in this example will be Seagate ST32550W 2.1G drive at Target c.


Run show-disks to view the SCSI disk selection list:                                    

  {0} ok show-disks
  a) /sbus@7,0/SUNW,fas@3,8800000/sd
  b) /sbus@3,0/SUNW,fas@3,8800000/sd
  q) NO SELECTION 
  Enter Selection, q to quit: a
  /sbus@7,0/SUNW,fas@3,8800000/sd has been selected.
  Type ^Y ( Control-Y ) to insert it in the command line. 
  e.g. ok nvalias mydev ^Y 
           for creating devalias mydev for 
  /sbus@7,0/SUNW,fas@3,8800000/sd
  {0} ok nvalias mydisk /sbus@7,0/SUNW,fas@3,8800000/sd@c,0

                 ^      ^
                 |       (pressing CNTRL-Y here will insert this line
                 |        up to /sd.  You must add "@target,0"  where
                 |       "target" is the SCSI target address. )
     	      	 |
	 This is the alias name referenced for the boot-device.

  This example sets the alias name "mydisk" to SCSI target 12 on the
  1st disk in the drive board installed in card cage slot 7.


  Note:   "sd@c,0" references the SCSI disk at Target 12
   	  ( The hexadecimal "c" is the same as decimal "12".)

            In this example Solaris will use the symbolic device name
            c2t12d0 where "t12" is the target address on controller 2.


To set boot device, the boot-device NVRAM parameter must be changed:

  ok setenv boot-device mydisk
  ok reset


The machine will reset itself and should automatically boot from the
device alias 'mydisk'.


Run the devalias command to list your device aliases:

  {0} ok devalias
  mydisk                   /sbus@7,0/SUNW,fas@3,8800000/sd@c,0
  screen                   /sbus@7,0/cgsix@0,0
  disk                     /sbus@3,0/SUNW,fas@3,8800000/sd@0,0
  diskbrd                  /sbus@3,0/SUNW,fas@3,8800000/sd@a,0
  diskisp                  /sbus@3,0/QLGC,isp@0,10000/sd@0,0
  net                      /sbus@3,0/SUNW,hme@3,8c00000
  cdrom                    /sbus@3,0/SUNW,fas@3,8800000/sd@6,0:f
  tape                     /sbus@3,0/SUNW,fas@3,8800000/st@4,0
  scsi                     /sbus@3,0/SUNW,fas@3,8800000
  disk0                    /sbus@3,0/SUNW,fas@3,8800000/sd@0,0
  disk1                    /sbus@3,0/SUNW,fas@3,8800000/sd@1,0
  disk2                    /sbus@3,0/SUNW,fas@3,8800000/sd@2,0
  disk3                    /sbus@3,0/SUNW,fas@3,8800000/sd@3,0
  disk4                    /sbus@3,0/SUNW,fas@3,8800000/sd@4,0
  disk5                    /sbus@3,0/SUNW,fas@3,8800000/sd@5,0
  tape0                    /sbus@3,0/SUNW,fas@3,8800000/st@4,0
  tape1                    /sbus@3,0/SUNW,fas@3,8800000/st@5,0
  ttya                     /central/fhc/zs@0,902000:a
  ttyb                     /central/fhc/zs@0,902000:b
  keyboard                 /central/fhc/zs@0,904000
  keyboard!                /central/fhc/zs@0,904000:forcemode
  name                     aliases


Note:

After you boot Solaris the two disk drives are recognized as c2t12d0 and
c2t13d0 where "t12" and "t13" are scsi target addresses on controller 2.
Under format c2t12d0 will be mapped to sbus@7,0/SUNW,fas@3,8800000/sd@c,0.                  

SOLUTION SUMMARY:
                   

APPLIES TO: Hardware, Operating Systems/Solaris/Solaris 2.x, AFO Vertical Team Docs, AFO Vertical Team Docs/Hardware
ATTACHMENTS: