AIX Boot Process
- Different AIX boot Modes
- Disable Aix
- Scheduled tasks of Aix
- AIX Service Management
- Common AIX logs
Post = power on Self Test
Three RC. Boot calls
/Etc/inittab script call
RespawnIndicates that if the process does not exist, restart the process. If the process is terminated, restart the process (that is, a respawn-type process is usually "not killed)
Ssdb04.shz. hn:/# ls/usr/lib/boot-- View the complete list of Aix boot logical volumes (BOOT LV--BLV) hd5 logical volume file list,
Aixmon_chrp chramfs getrootfs restbase Unix
Bin CHRP. CD. proto mergedev srvboot unix_64
Bootinfo.txt CHRP. disk. proto network SSH unix_mp
Bootutil CHRP. Tape. proto protoext TFTP update_proto
Ssdb04.shz. hn:/# bootlist-o-m normal
Check the disk on which the BLV is started. hdisk0 and 1 are rootvg and BLV is on hd5.
Hdisk0 BLV =
Hd5
Hdisk1 BLV =
Hd5
Ssdb04.shz. hn:/# lsvg-l rootvg
Rootvg:
LV name type lps pps pvs lv state mount point
Hd5 boot 1 2 2 closed/syncd N/
Hd6 paging 96 192 2 open/syncd N/
Hd8 jfs2log 1 2 2 open/syncd N/
Hd4 jfs2 20 40 2 open/syncd/
Hd2 jfs2 80 160 2 open/syncd/usr
Hd9var jfs2 8 16 2 open/syncd/var
Hd3 jfs2 8 16 2 open/syncd/tmp
Hd1 jfs2 1 2 2 open/syncd/home
Hd10opt jfs2 8 16 2 open/syncd/OPT
Lg_dumplv sysdump 32 32 1 Open/syncd N/
Loglv00 jfslog 1 2 2 open/syncd N/
Lv00 JFS 1 2 2 open/syncd/var/adm/CSD
Instlv jfs2 40 80 2 closed/syncd/install
Command for operating on the/etc/inittab file (you can also directly edit it using VI)Modify the row settings in the chitab file lsitab list the row settings in the file mkitab add records to the file rmitab Delete the row settings in the file ssdb04.shz. hn:/usr/lib/boot #
Mkitab "myinit: 2: respawn: ls-l"
Ssdb04.shz. hn:/usr/lib/boot #
Lsitab myinit
Myinit: 2: respawn: ls-l
Ssdb04.shz. hn:/usr/lib/boot #
Chitab "myinit: 2: Once: ls-l"
Ssdb04.shz. hn:/usr/lib/boot # lsitab myinit
Myinit: 2: Once: ls-l
Ssdb04.shz. hn:/usr/lib/boot #
Rmitab myinit
Ssdb04.shz. hn:/usr/lib/boot # lsitab myinit
Ssdb04.shz. hn:/usr/lib/boot # Cat/etc/. init. State
2 -- display the running level of the current system
Ssdb04.shz. hn:/usr/lib/boot # lsitab init
Init: 2: initdefault: -- displays the default running level of the system.
Sdb04.shz. hn:/# uptimeView the system startup time
PM up 421 days, 1 user, load average: 0.04, 0.08, 0.08
Available in/etc/rc. shutdown file Editing: services that need to be shut down before the AIX system is shut down. For example, the Oracle database and RC are shut down before the AIX system is shut down. the shutdown file does not exist by default.
Ssdb04.shz. hn:/# crontab-l-- View scheduled tasks
Ssdb04.shz. hn:/# crontab-e-- Edit the scheduled task file ssdb04.shz. hn:/var/spool/cron/crontabs # PWD to view the scheduled task files of all users.
/Var/spool/cron/crontabs
Ssdb04.shz. hn:/var/spool/cron/crontabs # ls
ADM esaadmin S root sys uucp
Ssdb04.shz. hn:/var/spool/cron/crontabs #
- When the cron. deny file exists, as long as the user is not in the deny file, the user can use Cron
- When the cron. allow file exists, cron can only be used by users in the Allow file.
The default allow file does not exist, and the deny file exists.