《第五章 系统的启动与关闭.ppt》由会员分享,可在线阅读,更多相关《第五章 系统的启动与关闭.ppt(19页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、第五章 系统的启动与关闭本章目的启动模式略述在系统关闭时进程的处理详细说明/etc/inittab的内容常用命令System Resource controller系统启动模式Normal mode程序、进程的运行终端开启存取系统文件通讯启动多用户模式系统启动模式Standalone ModeSystem Management Services diskette系统程序显示和改变系统的设置显示和改变设备启动的顺序执行硬件诊断执行系统工具在启动出现第一个画面时,按F1键System Management Services 主菜单Config:查看系统设置multiboot:显示和设置boot s
2、equence,access the open firmware command promptUtilities:set and remove passwords,network bootingconfigmultibootUtilitiesExit命令alog用于维护和管理logs。如果文件满,新的自动覆盖以前的信息通过观察rc.boot文件看出,先把信息放在/tmp/boot_log中,在结束后移到/var/adm/ras/bootlog中保存常用命令#alog-L#alog-o-t boot命令last用于以反向年代顺序显示记录在/var/adm/wtmp 文件中login and lo
3、g off的记录#last root console#last|grep shutdown命令bootlist命令bootlist用于显示和改变启动设备#bootlist-m normal hdisk0 hdisk1命令uptime显示系统启动了多长时间文件/etc/inittabinit:2:initdefault:brc:sysinit:/sbin/rc.boot 3/dev/console 2&1#Phase 3 of system bootpowerfail:powerfail:/etc/rc.powerfail 2&1|alog-tboot /dev/console#Power Fa
4、ilure Detectionrc:2:wait:/etc/rc 2&1|alog-tboot /dev/console#Multi-User checksfbcheck:2:wait:/usr/sbin/fbcheck 2&1|alog-tboot /dev/console#run/etc/firstbootsrcmstr:2:respawn:/usr/sbin/srcmstr#System Resource Controllerrctcpip:2:wait:/etc/rc.tcpip /dev/console 2&1#Start TCP/IP daemonscron:2:respawn:/
5、usr/sbin/cronpiobe:2:wait:/usr/lib/lpd/pio/etc/pioinit/dev/null 2&1#pb cleanupwritesrv:2:wait:/usr/bin/startsrc-swritesrvuprintfd:2:respawn:/usr/sbin/uprintfdlogsymp:2:once:/usr/lib/ras/logsymptom#for system dumpspmd:2:wait:/usr/bin/pmd /dev/console 2&1#Start PM daemondiagd:2:once:/usr/lpp/diagnosti
6、cs/bin/diagd/dev/console 2&1cons:0123456789:respawn:/usr/sbin/getty/dev/console文件/etc/inittab详解标识:标记进程。运行等级行为respawn:If the process does not exist,start itwait:Start the process and wait for it to stoponce:start the process and do not restart it if it stopsysinit:commands to be run to start the proc
7、ess命令行System Resource controller(SRC)包含启动、停止和状态查询的用户接口记录子系统(subsystems)的异常终止跟踪subsystem,a group subsystem or a subserver支持远程系统控制subsystem的刷新功能SRC语法#startsrc-s qdaemon#stopsrc-g nfs#refresh-s qdaemon#lssrc-a系统的关闭#shutdown-options+time message/etc/rc.shutdown 文件系统进入维护状态Welcome to Base Operating System
8、 Installation and MaintenanceType the number of your choice and press Enter.1 Start Installation Now with Default Settings 2 Change/Show Installation Settings and Install 3 Start Maintenance Mode for System Recovery88 Help?99 Previous MenuChoice 1:系统进入维护状态MaintenanceType the number of your choice an
9、d press Enter.1 Access a Root Volume Group 2 Copy a System Dump to Removable Media 3 Access Advanced Maintenance Functions 4 Install from a System Backup88 Help?99 Previous Menu Choice 1:系统进入维护状态WarningIf you choose to access a root volume group,you will not be able to returnto the Base Operating Sy
10、stem Installation menus without rebooting.Type the number of your choice and press Enter0 Continue88 Help?99 Previous Menu Choice 99:系统进入维护状态Access a Root Volume GroupType the number for a volume group to display logical volumeinformation and press Enter.1)Volume Group 00615147b27f2b40 contains thes
11、e disks:hdisk0 958 04-B0-00-2,02)Volume Group 00615247b27c2b41 contains these disks:hdisk1 2063 04-B0-00-6,0Choice:系统进入维护状态Volume Group InformationVolume Group ID 00615147b27f2b40 includes following logical volumes:hd5 hd6 hd8 hd4 hd2 hd9varhd3 hd1 lv00 lv01Type the number of your choice and press Enter.1)Access this Volume Group and start a shell2)Access this Volume Group and start a shell before mounting file systems99)Previous MenuChoice 99:
限制150内