Wednesday, June 25, 2008

Solaris Boot Process -1

Boot Process
0.Power On the server
1. Boot PROM

  • PROM load POST
  • OK prompt
  • Boot loader load from boot devices
  • Boot reads Boot Block (first 15 sectors)
  • a copy of the bootblk is available at /usr/platform/`arch - k`/lib/fs/ufs/bootblk
  • Boot load Boot block

2. Boot Program

  • Boot Block loads secondary Boot loader(UFS boot)
  • (/platform/`arch -k`/ufsboot) UFS boot will load kernel
    Kernel is two parts
    Gen UNIX =>Platform independent (/kernel/genunix )
    Unix => Platform dependant (/platform/`arch -k`/kernel/*)

3. Kernel Initialization

  • Kernel reads config files(/etc/system)
  • Kernel initializes itself & load modules
  • Force load option in /etc/system –used to mount module permanently
  • The kernel creates PID 0 ( sched)

4. Init phase

  • The kernel start PID1 -init (/sbin/init)
  • Init process reads /etc/inittab file and /etc/init/default
  • Init starts rc scripts (/sbin/rc#) [# indicate runlevel]
  • rc script executes the files in /etc/rc#.d

No comments: