SUMMARY- Aliases and Booting

From: Craig Gruneberg (clg@zygote.csph.psu.edu)
Date: Tue Oct 03 1995 - 15:37:59 CDT


My original post was:

What portions of the path to the device must be specified in
both Solaris 2.3 and 2.4 when one is changing the boot device,
both at boot time and in the boot PROM?

And, thanks to the group, the answers from:
***************************************************************

Pell Emanuelsson <pell@lysator.liu.se>
js@cctechnol.com (Johnie Stafford)
"Heas H. Heas" <heas@nexen.com>
brunel@delver.iterus.org
Stephen P Richardson <spr@myxa.com>
amccammo@lehman.com
Peter.Bestel@uniq.com.au (Peter Bestel)
Roger Salisbury <rogers@ttmc.com>
sr%wipronsd@wipinfo.soft.net (Shekhar Raju(System Integration))
"Lau, Victoria H" <vlau@msmail2.hac.com>
Leonard Sitongia <sitongia@zia.hao.ucar.edu>

are:
***************************************************************

The easiest way is to say "boot disk1" for SCSI-ID 1, etc.

Give the following
ok boot disk0
or
ok boot disk3

You may use "devalias" at the boot prompt level to specify a boot
device. At the ok prompt, type "devalias" to identify possible
default boot devices:

ok devalias
screen /iommu@0,....
ttyb /obio/zs@0,100000:b
ttya /obio/zs@0,100000:a
...
disk /iommu/sbus/espdma@5,8400000/esp@5,8800000/sd@3,0
cdrom /...
disk3 [same as disk]
disk2 /iommu/sbus/espdma@5,8400000/esp@5,8800000/sd@2,0
disk1 /iommu/sbus/espdma@5,8400000/esp@5,8800000/sd@1,0
disk0 /iommu/sbus/espdma@5,8400000/esp@5,8800000/sd@0,0

To boot from disk2 (sd@0,0), just type boot disk2.

To change the default permanently, type "printenv" at the
boot monitor prompt and locate the value of boot-device:

ok printenv
Parameter Name Value Default Value
...
boot-device disk disk
...

To change the value to disk2 permanently:
ok setenv boot-device disk2
ok printenv boot-device
ok reset

Of course, you may set it while the system is running without
shutting down the system to access the boot prompt. But this
is one way to find out your aliases without typing the full
and real path of your disk device.

I don't think you said what type of Sun you're refering to. The
answer depends upon the PROM rev level, which approximately depends
upon the model of the Sun. For the newer Suns, a simple name of
"disk#" where # is a single digit for the SCSI ID of the disk to boot.
The same thing is used in an explicit boot, such as "boot disk1" and
in the PROM environmental variable to set to change the default. I
don't remember the name of that variable. Something like boot-device.
"printenv" in the PROM monitor will show you.



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:34 CDT