Chinaunix
标题:
jumpstart配置
[打印本页]
作者:
edison_K
时间:
2012-02-01 15:10
标题:
jumpstart配置
要给一台ultra5安装solaris10 CD光驱坏了,第一次配置jumpstart 的小白遇到各种问题。求大神指导profile和sysidcfg以及rules配置
作者:
zhangyudong1987
时间:
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
作者:
yiguihuo
时间:
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文件,看网卡灯常亮多等一会就行,时间大概半小时
作者:
edison_K
时间:
2012-02-07 15:44
灰常感谢楼上两位,系统已经安装好了
作者:
tomer
时间:
2012-02-07 16:17
回复
4#
edison_K
把安装步骤写出来。。。
作者:
tzpi2000
时间:
2012-02-09 16:06
仔细研究下 应该都不会很难吧···
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2