- 论坛徽章:
- 2
|
回复 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
|
|