Wednesday, September 07, 2005

Rough alternatives to init 0 and init 5

halt
poweroff
* halt takes to ok prompt
* no rc (run control) scripts are executed

Turn off power from PROM

power-off

init 6 is better than reboot because

reboot does not process rc (run control) scripts

To disable an rc#.d script

rename it to start with a lowercase letter

What run level scrips are hard links?

/sbin/rc0
/sbin/rc5
/sbin/rc6
point to the same inode

Five sections of /etc/system

moddir
rootfs, rootdev
exclude
forceload
set

Three kernel driver directories are

/kernel/drv <- to boot the system (platform-independent)
/platform/sun4u/kernel/drv <- platform-dependent
/usr/kernel/drv <- dynamic loading when the system is running

Two kernel files are

genunix <- platform independent
unix <- platform dependent

Four steps to boot

PROM
bootblk & ufsboot
kernel
init

Current run level?

who -r

How many run levels?

Eight:
0 ok
s crit fs
1 all fs
2 no nfsd
3 default
4 none
5 power off
6 reboot

Steps to perform on an unresponsive system

1. SSH and kill PID
2. Stop-A and sync

* sync synchronizes file systems, writes a crash dump, and reboots

List PROM variables from shell

eeprom

Allow abort sequence only at boot

/etc/default/kbd
KEYBOARD_ABORT=disable

Tuesday, September 06, 2005

Reset diag-device to default

set-default diag-device

If auto-boot? is false

system stops at ok prompt

Parameter ending in a question mark

such as auto-boot?
can only be set to true or false

Change boot device

boot-device

Set monitor in PROM to 1024x768 at 75hz

output-device=screen:r1024x768x75

grep for PROM commands

sifting

List all IDE devices

probe-ide

Machine won't boot, and I suspect NVRAM

set-defaults

List disks in PROM

show-disks

Show PROM aliases

devalias

Stop-A from OS is not recommended because

it can cause file system corruption

Reset NVRAM to defaults

Stop-N

Diagnostic mode

Stop-D
sets diag-switch? to true

Check PROM version

prtdiag -v
ok .version