Saturday, March 24, 2012

AIX Boot Process

AIX Boot Process:
When the server is Powered on Power on self test(POST) is run and checks the hardware
On successful completion on POST Boot logical volume is searched by seeing the bootlist
The AIX boot logical contains AIX kernel, rc.boot, reduced ODM & BOOT commands. AIX kernel is loaded in the RAM.
Kernel takes control and creates a RAM file system.
Kernel starts /etc/init from the RAM file system
init runs the rc.boot 1 ( rc.boot phase one) which configures the base devices.
rc.boot1 calls restbase command which copies the ODM files from Boot Logical Volume to RAM file system
rc.boot1 calls cfgmgr –f command to configure the base devices
rc.boot1 calls bootinfo –b command to determine the last boot device
Then init starts rc.boot2 which activates rootvg
rc.boot2 calls ipl_varyon command to activate rootvg
rc.boot2 runs fsck –f /dev/hd4 and mount the partition on / of RAM file system
rc.boot2 runs fsck –f /dev/hd2 and mounts /usr file system
rc.boot2 runs fsck –f /dev/hd9var and mount /var file system and runs copy core command to copy the core dump if available from /dev/hd6 to /var/adm/ras/vmcore.0 file. And unmounts /var file system
rc.boot2 runs swapon /dev/hd6 and activates paging space
rc.boot2 runs migratedev and copies the device files from RAM file system to /file system
rc.boot2 runs cp /../etc/objrepos/Cu* /etc/objrepos and copies the ODM files from RAM file system to / filesystem
rc.boot2 runs mount /dev/hd9var and mounts /var filesystem
rc.boot2 copies the boot log messages to alog
rc.boot2 removes the RAM file system
Kernel starts /etc/init process from / file system
The /etc/init points /etc/inittab file and rc.boot3 is started. Rc.boot3 configures rest of the devices
rc.boot3 runs fsck –f /dev/hd3 and mount /tmp file system
rc.boot3 runs syncvg rootvg &
rc.boot3 runs cfgmgr –p2 or cfgmgr –p3 to configure rest of the devices. Cfgmgr –p2 is used when the physical key on MCA architecture is on normal mode and cfgmgr –p3 is used when the physical key on MCA architecture is on service mode.
rc.boot3 runs cfgcon command to configure the console
rc.boot3 runs savebase command to copy the ODM files from /dev/hd4 to /dev/hd5
rc.boot3 starts syncd 60 & errordaemon
rc.boot3 turn off LED’s
rc.boot3 removes /etc/nologin file
rc.boot3 checks the CuDv for chgstatus=3 and displays the missing devices on the console
The next line of Inittab is execued


/etc/inittab file format: identifier:runlevel:action:command

MkitabàAdd records to the /etc/inittab file

LsitabàList records in the /etc/inittab file

Chitabàchanges records in the /etc/inittab file

Rmitabàremoves records from the /etc/inittab file

To display a boot list: bootlist –m normal –o

To change a boot list: bootlist –m normal cd0 hdisk0

No comments:

Post a Comment