Transfered from my journal.
Sun installation document:
820-5239
<<Solaris 10 10/08 Installation Guide: CustomJumpStart and Advanced Installations>>
820-5237
<<Solaris 10 10/08 Installation Guide:Network-Based Installations>>
Create installation directory:
CD 1
#> /cdrom/s0/Solaris_10/Tools/setup_install_server /export/install10
CD 2-5
#> /cdrom/Solaris_10/Tools/add_to_install_server /export/install10
Solaris 10 patch
#> unzip /export/install10/patchdb/5.10/sparc/10_Recommended.zip
Update /etc/hosts
192.168.1.45 autotest
Update /etc/ethers
0:17:4f:0f:42:b0 autotest
Update /etc/dfs/dfstab
share -F nfs -o ro,anon=0 /jstart
share -F nfs -o ro,anon=0 /export/install10
#> shareall
#> /etc/init.d/nfs.server stop|start
Update Jumpstart config file
cp –pr /export/install10/Solaris_10/Misc/jumpstart_sample /jstart
Update /jstart/sysidcfg
keyboard=English
system_locale=en_US
timezone=US/Central
terminal=vt100
timeserver=localhost
name_service=none
nfs4_domain=dynamic
root_password=IbIPT4W6ebNWc
network_interface=primary
{
default_route=10.4.3.1
netmask=255.255.255.0
protocol_ipv6=no
}
security_policy=none
service_profile=open
Update /jstart/rules
hostname cbtmsu1 – any_machine.280 10recommended
Update /jstart/any_machine.280
install_type initial_install
system_type server
partitioning explicit
filesys c1t0d0s0 2048 swap
filesys c1t0d0s1 free /
Check the Jumpstart config
#> /jstart/check
Update /jstart/10recommended
LUPATCHHOST=10.4.3.250
LUPATCHPATHROOT=/export/install10/patchdb
Update client
#> /export/install10/Solaris_10/Tools/add_install_client -s 10.4.3.250:/export/install10 -c 10.4.3.250:/jstart -p 10.4.3.250:/jstart autotest sun4u
/etc/bootparams will be updated
autotest root=vgtui_1:/export/install10/Solaris_10/Tools/Boot install=10.4.3.250:/export/install10 boottype=:in sysid_config=10.4.3.250:/jstart install_config=10.4.3.250:/jstart rootopts=:rsize=8192
Install client
ok boot net – install
== 准备jumpstart ==
开始jumpstart之前,需要做以下准备:
# 了解jumpstart基本知识,请google一下 <br>
# 我们实验室已经建好了jumpstart server,通过frontend可以直接访问,hostname/usr/password: jstart/root/voip <br>
# 了解jumpstart目标机器(也就是待安装机器),通过ifconfig -a获得其一个网卡物理地址并记录下来,安装时网线必须连接此网口,暂时称此网口为jumpstart网口 <br>
# 将jstart的第一个网口(已经配置好专用于jumpstart)和目标机器的jumpstart网口连接到一个独立的hub上去,这样它们将位于一个独立的网络,jumpstart安装时目标机器需要通过广播包从jstart获得其IP地址然后进行下一步操作 <br>
== 配置jumpstart server ==
=== 设置hosts和ethers ===
# hosts中为目标机器选择一个IP地址和机器名称 <br>
# ethers中则是指定目标地址的网卡物理地址,也就是上面记录的jumpstart网口对应的网卡物理地址 <br>
=== jumpstart专用配置 ===
jstart上有一个jumpstart专用目录:/jstart <br>
需要设置以下3个jumpstart配置文件: <br>
# rules。注意:设置完此文件后需要运行一下./check <br>
# any_machine.xxx。你会发现/jstart目录下有很多any_machine.大头的文件,文件的后缀名则是服务器种类,这类文件都是用来设置安装时目标机器分区用的,一般来说对于已有的服务器种类不需要再修改其any_machine文件,只需要在后面引用即可 <br>
# client_dev.sh。这个shell脚本的主要作用是设置tftp,tftp是jumpstart安装时目标机器从jumpstart server下载文件用的,配置完后运行一下./client_dev.sh。 <br>
注意: <br>
以上配置完成之后,需要检查以下几个地方: <br>
# /etc/ethers <br>
# /etc/inet/hosts <br>
# /tftpboot(目录),检查rm.xxx中有没有对应目标机器的配置文件 <br>
# /etc/inet/inetd.conf (见案例2) <br>
# /etc/bootparams (见案例1) <br>
# /etc/dfs/dfstab <br>
== 开始安装 ==
步骤如下: <br>
# 串口连接目标机器,运行init 0进入standalone无网络ok状态 <br>
# 在ok提示状态下运行boot net – install <br>
之后所有的安装将自动进行 <br>
FAQ:
=== 案例1 ===
某次jumpstart solaris 10时下载完安装包后便报以下错误: <br>
Completed software installation
Solaris 9 software installation succeeded
Customizing system files
– Mount points table (/etc/vfstab)
– Network host addresses (/etc/hosts)
– Network host addresses (/etc/hosts)
WARNING: Could not set file attributes (/a/var/svc/profile/name_service.xml)
ERROR: Unable to copy a temporary file to it’s final location
ERROR: System installation failed
Solaris installation program exited.
检查/etc/bootparams文件后发现是client_dev.sh中的安装包路径搞错了 <br>
=== 案例2 ===
某次jumpstart时下载不了安装包,注:可以在jstart上snoop -v监控jumpstart安装过程的IP包 <br>
最后检查/etc/inetd.conf配置发现tftp中启用了udp6所致,应该为如下配置: <br>
tftp dgram udp wait root /usr/sbin/in.tftpd in.tftpd -s /tftpboot
=== 案例3 ===
某次jumpstart时发现,目标地址第一步动作——从jumpstart获取IP地址——失败,而snoop -v能够抓到目标机器的广播包。 <br>
检查/etc/ethers文件发现有重复的物理地址,去掉之后就正常了。<br>
<br>
也有几次get IP地址失败竟然是因为插在hub上的网线松了。<br>
=== 案例4 ===
有台机器的首个网口坏掉了,可以用以下方法jumpstart:<br>
ok devalias
此命令能够列出所有设备,可以发现有多个网络设备,它们的命名方式一般是net, net1, net2, net3 <br>
ok boot net1 – install
从net1(也就是第二个网口)启动并开始jumpstart
=== 案例5 ===
ok boot net – install
Boot device: /pci@1f,0/pci@1,1/network@c,1 File and args: – install
SunOS Release 5.10 Version Generic_118833-17 64-bit
Copyright 1983-2005 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
SUNW,eri0 : 100 Mbps full duplex link up
whoami: no domain name
Configuring devices.
Using RPC Bootparams for network configuration information.
Attempting to configure interface eri1…
Skipped interface eri1
Attempting to configure interface eri0…
Configured interface eri0
Beginning system identification…
Searching for configuration file(s)…
Using sysid configuration file 10.4.3.250:/jumpstart/sysidcfg
Search complete.
Discovering additional network configuration…
Completing system identification…
Starting remote procedure call (RPC) services: done.
System identification complete.
Starting Solaris installation program…
Searching for JumpStart directory…
not found
Warning: Could not find matching rule in rules.ok
Press the return key for an interactive Solaris install program…
已解决:
修改/etc/netmasks,使所有的netmask保持一致。
a. /etc/netmasks;
b. sysidcfg中网络接口的配置;
c. /export/install10/Solaris_10/Tools/Boot/netmask
d. #ifconfig -a; —- 你的目标网卡设置的掩码是255.0.0.0,而其他几个的设置为255.255.255.0
bge1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
inet 10.4.3.250 netmask ff000000 broadcast 10.255.255.255
ether 0:3:ba:9f:f7:d6
