免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1998 | 回复: 0
打印 上一主题 下一主题

solaris 启动过程 and 运行级别 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-12-16 18:14 |只看该作者 |倒序浏览
操作系统启动过程
     ================
       [1] prom                (系统自检selftest) ,
       [2] bootblk,        (系统引导盘启动扇区),
       [3] ufsboot        (/platform/'uname -i'/ufsboot),
       [4] kernel        (initself, /kernel/genunix, /etc/system),
       [5] init         (/sbin/init,  /etc/inittab, /sbin/rc*.d,
                         /etc/rc*.d, /etc/init.d)
    操作系统自动配置过程
    ====================
       [1] 内核上载入内存(kernel module are load to memory)
           o 静态内核static core:
               /kernel/genunix, /platform/.../kernel/unix,
           o 动态内核dynamically loaded module:
                driver module, streams, ufs module, nfs module
                /kernel/,/platform/.../kernel/unix, /usr/kernel
           o /etc/system内容:
                moddir,
                exclude rootdev,
                set pt_cnt=100
                ...............
      [2] 设备配置(device configration )
           o device tree: /devices, /dev
           o /etc/path_to_install
    查看操作系统配置
    ==================
      # dmesg,
      # printconf,
      # sysdef
      # /usr/platform/sun4u/sbin/prtdiag
      # /usr/platform/sun43u/sbin/prtdiag
    重新配置系统硬件
    =================
      # touch /reconfigure
      # init 0
      ok boot -r (重新启动/配置系统硬件)
      ok boot -ar
       在系统运行情况下,如果不想重新启动系统,
       安装硬盘/磁带等热插拔硬件,则:
          # drvconfig
          # devlinks
          # disks
          # tapes
       查看配置情况:
          # dmesg
          # printconf
          # sysdef

系统启动时,进入/etc/inittab中initdefault所定义的运行级别(deafult 3)
   各运行级别的定义:
     run level:0,        (halt, shotdown, stop+a,sync,go )
               1,        (single user, boot -s, init  s )
               2,        (multiuser, unshare net)
               3,        (multiuser, deafult)
               5,        (halt, power off )
               6,        (reboot to level 3 )
               S         (init 1,  boot -s)
   改变系统运行级别命令
   ====================
       # init 0, halt, shotdown, stop+a,sync,go
       # init 1, single user, boot -s, init  s
       # init 2, multiuser, unshare net
       # init 3, multiuser, deafult
       # init 5, halt, power off
       # init 6, reboot to level 3
       # init s, init 1,  boot -s
       # init *,shotdown,halt,poweroff, reboot -- -r, reboot -- -s
       ok> boot -s, boot -sra
   启动、关闭Solaris 操作系统
   ==========================
       ok> boot -r (一般在安装新设备如硬盘等后,重起机器,重建系统内核)。
       ok> boot cdrom - brower (从CDROM启动机器,重新安装系统,界面为浏览器方式)。
       # sync (将内存中的内容写入硬盘)。
       # halt (或 /etc/init 0) (关闭系统)。
       # reboot


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/88690/showart_1723972.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP