免费注册 查看新帖 |

Chinaunix

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

jumpstart配置 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-02-01 15:10 |只看该作者 |倒序浏览
要给一台ultra5安装solaris10 CD光驱坏了,第一次配置jumpstart 的小白遇到各种问题。求大神指导profile和sysidcfg以及rules配置

论坛徽章:
2
卯兔
日期:2014-08-21 14:59:16IT运维版块每日发帖之星
日期:2015-09-30 06:20:00
2 [报告]
发表于 2012-02-03 13:04 |只看该作者
回复 1# edison_K


    你说的这三个文件其实都可以不用配置的;只是配置了的话会方便很多,不用再手工设置而已


在进行jumpstart安装时,也可以事先编辑sysidcfg文件来指定服务器名,IP地址,掩码,默认路由,时钟类型,本地语言支持等;并同时编辑rules文件来指定客户机的分区大小等信息;
          1)sysidcfg文件内容:

             name_service=NONE  #指定名服务为NONE              
             network_interface=primary{netmask=255.255.255.0 protocol_ipv6=no}  设置网络相关参数
             security_policy=NONE 设置安全策略为NONE
             terminal=dtterm  设置终端类型为dtterm
             timezone=PRC 设置时区信息为PRC
             system_local=zh   设置本地信息为zh(中文)
             timeserver=localhost 设置时钟信息为localhost
        
         2)rules文件内容
            
             rule keywords and rule valuess begin script profile finish script
          #——————————————————————
              hostname T522002 -test_prof-
                        
                    test_prof配置文件内容
               install_type initial_install  指定安装类型主initial
               userdisk c0t0d0 指定系统选择的硬盘为c0t0d0
               boot_device c0t0d0s0 update 设置root文件系统及引导设置位置,并更新EEPROM中的参数。
               root_device c0t0d0s0 设置root文件系统位置为c0t0d0s0
               cluster SUNWCXALL  设置系统软件安装类别为Entire Distribution Plus OEM Support
               system_type standalone 设置系统类型为standalone
               partitioning explicit 指定硬盘分区方式(explicit表示使用filesys定义的结构)
                filesys c0t0d0s0 30000 / -\
                filesys c0t0d0s1 16000 swap - |
                filesys c0t0d0s6 50000 /oracle - |
                filesys c0t0d0s7 200
               注意事项: install_type必须在第一行;
                          标记容量为“free”的分区如“filesys c0t0d0s7 free /export/home/ -”必须写在所有“filesys”定义的最后一个

               
           以下为另一种编辑sysidcfg文件的方式

创建一个配置目录
    # mkdir /export/home/config
    在/export/home/config下创建一个sysidcfg文件
     # cd /export/home/config
     # touch sysidcfg
     # vi sysidcfg
      system_local=en_US.ISO8859-1
      timezone=Asia/Shanghai
      terminal=vt100
      root_password=
      network_interface=primary {hostname=V480
                             network=255.255.255.0
                             protocol_ipv6=no
                             default_route=192.168.1.1}
      :wq
创建一个profile文件Tech_prof(这里是在技术部)
# touch Tech_prof
# vi Tech_prof
install_type   initial_install
system_type   standalone
partitioning    explicit
cluster        SUNWCprog
filesys        rootdisk.s0 8192  /
filesys        rootdisk.s1 1024  swap
filesys        rootdisk.s4 2000  /opt
filesys        rootdisk.s7 free   /export/home
:wq
    创建一个rules文件
# touch rules
# vi rules
hostname V480 – Tech_prof –
:wq
创建check脚本
# cd /export/home/config
# cp /export/home/install/Solaris_10/Misc/jumpstart_sample/check .
运行check脚本
# ./check
Validating rules…
Validating profile Tech_prof
The custom JumpStart configuration is ok.
4.共享/export/home/install和/export/home/config 目录
  (1)# share –F nfs –o ro,anon=0 /export/home/install
       # share –F nfs –o ro,anon=0 /export/home/config
       # shareall
   (2)编辑/etc/dfs/dfstab文件
     # vi /etc/dfs/dfstab
#       Place share(1M) commands here for automatic execution
#       on entering init state 3.
#
#       Issue the command 'svcadm enable network/nfs/server' to
#       run the NFS daemon processes and the share commands, after adding
#       the very first entry to this file.
#
#       share [-F fstype] [ -o options] [-d ""]  [resource]
#       .e.g,
#       share  -F nfs  -o rw=engineering  -d "home dirs"  /export/home2
share -F nfs -o ro,anon=0 /export/home/install
share -F nfs -o ro,anon=0 /export/home/config
     
"dfstab" 16 lines, 580 characters
  :wq
5.启动nfsserver
    # /etc/init.d/nfs.server start


论坛徽章:
1
2015年迎新春徽章
日期:2015-03-04 09:54:45
3 [报告]
发表于 2012-02-03 23:34 |只看该作者
本帖最后由 yiguihuo 于 2012-02-03 23:35 编辑

就给一台服务器安装系统就简单点吧

服务器搭建
# mkdir /sol_10
创建存放安装文件目录

# cd /cdrom/cdrom0/Solaris_10/Tools/
进入光盘工具目录

# ./setup_install_server /sol_10/
执行安装服务并拷贝安装文件

# vi /etc/hosts
192.168.0.5     kangte
设置客户端安装地址

ok> banner
查看客户机网卡mac地址
# vi /etc/ethers
mac地址  kangte

# cd /sol_10/Solaris_10/Tools/          #注意目录
# ./add_install_client kangte sun4u  #不要加-s选项

# vi /etc/dfs/dfstab
查看是否添加上下面内容 没有的话手动添加上
share -F nfs -o ro,anon=0 /sol_10
# svcadm restart svc:/network/nfs/server:default
重启服务


客户端安装
ok模式下
{a} devalias                         #查看net是哪块网卡
{a} ok boot net - install       #注意参数有一个空格
这时会下载boot_archive文件,看网卡灯常亮多等一会就行,时间大概半小时

论坛徽章:
0
4 [报告]
发表于 2012-02-07 15:44 |只看该作者
灰常感谢楼上两位,系统已经安装好了

论坛徽章:
3
天秤座
日期:2014-10-29 11:37:572015元宵节徽章
日期:2015-03-06 15:50:39NBA常规赛纪念章
日期:2015-05-04 22:32:03
5 [报告]
发表于 2012-02-07 16:17 |只看该作者
回复 4# edison_K


    把安装步骤写出来。。。

论坛徽章:
0
6 [报告]
发表于 2012-02-09 16:06 |只看该作者
仔细研究下 应该都不会很难吧···
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP