环境:E450 :solaris 9,做jumpstart的server
E250: 原为solaris9 , 做jumpstart 的client,升级到solaris10.
具体步骤参考了yanghz的作品:http://www.chinaunix.net/jh/6/458739.html,特此向yanghz表示感谢!
环境:E450 :solaris 9,做jumpstart的server
E250: 原为solaris9 , 做jumpstart 的client,升级到solaris10.
1.下载:在www.sun.com下载solaris 10 DVD版(5个zip文件),然后解压缩,合并形成sparc.iso文件,放在E450上(以下操作绝大部分在450上)
2.mount光盘,免去刻DVD之苦(我刻DVD的成功率比CDR低多了)
lofiadm -a sparc.iso /dev/lofi/1
mount -F nsfs -o ro /dev/lofi/1 /cdrom
3.建立jumpstart 路径:
mkdir /jumpstart/solaris10/install
mkdir /jumpstart/solaris10/config
4.开始拷DVD上的文件到硬盘上:
cd /cdrom/Solaris10/Tools
./setup_install_server /jumpstart/solaris10/install/
显示:
Verifying target directory...
Calculating the required disk space for the Solaris_10 product
Calculating space required for the installation boot image
Copying the CD image to disk...
Copying Install Boot Image hierarchy...
Install Server setup complete
5.编辑配置文件:
vi sysidcfg如下:
network_interface=primary
{protocol_ipv6=no
netmask=255.255.255.0
default_route=XXX.XXX.XXX.XXX}
security_policy=none
name_service=NONE
timezone=Asia/Shanghai
system_locale=en_US
terminal=vt100
timeserver=XXX.XXX.XXX.XX
root_password=XXXXXXXXX
vi rules如下:
hostname e250 - profiles1 -
vi profile1如下:
install_type upgrade
cluster SUNWCall
locale en_US
locale zh_CN
6.检查一下配置文件,生成rules.ok文件:
cp /jumpstart/solaris10/install/Solaris10/Misc/jumpstart_sample/check /jumpstart/solaris10/config
./check
生成rules.ok文件
7.生成客户端文件和NFS输出文件系统:
cd /jumpstart/solaris10/install/Solaris_10/Tools/
./add_install_client -s E450:/jumpstart/solaris10/install/ -c E450:/jumpstart/solaris10/config/ -p E450:/jumpstart/solaris10/config/ e250 sun4u
显示如下:
saving original /etc/dfs/dfstab in /etc/dfs/dfstab.orig
Adding "share -F nfs -o ro,anon=0 /jumpstart/solaris10/install/Solaris_10/Tools/Boot" to /etc/dfs/dfstab
updating /etc/bootparams
copying inetboot to /tftpboot
8.自己还应该修改一下/etc/dfs/dfstab
删掉:share -F nfs -o ro,anon=0 /jumpstart/solaris10/install/Solaris_10/Tools/Boot
增加两行:share -F nfs -o ro,anon=0 /jumpstart/solaris10/install
share -F nfs -o ro,anon=0 /jumpstart/solaris10/config
否则clinet引导之后,提示无法mount NFS文件系统.
9.share NFS和其他工作 :
/sbin/shareall
瞄一眼:/usr/sbin/share
vi /etc/hosts
127.0.0.1 localhost
X.X.X.X e450 loghost
X.X.X.X e250
#vi /etc/ethers
x:x:x:x:x:x e250
另外:e450上应该运行rarp 和 tftp服务.
10.重新引导E250到OPENBOOT状态:
ok> setenv local-mac-address? true(此步的原因是:E250上有两张网卡,hme0和ge0,但ge0的驱动不在OPENBOOT中,暂时只能使用hme0)
ok> boot net - upgrade
安装时间比较长,回家休息,回来后就安装好了.
11.sys-unconfig 后重新启动一下e250,重新配置一下系统.
以上升级步骤参考yanghz的作品:http://www.chinaunix.net/jh/6/458739.html,特此向yanghz表示感谢!