免费注册 查看新帖 |

Chinaunix

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

Jumpstart安装实例(作者:bear) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-08-07 09:34 |只看该作者 |倒序浏览

一、正常用CD-ROM手工安装一台机器(以下称Install_sever),准备将其配置成Install Server

二、按照用户分配的IP地址、规划的hostname,和需要利用网络安装的主机的Ethernet Address
修改Server的/etc/hosts和/etc/ethers
例如:/etc/hosts中加入以下行
129.148.94.6 Client1
129.148.94.7 Client2
.
.
/etc/ethers中加入以下行
8:0:20:30:6:9a Client1
8:0:20:30:6:83 Client2
.
.
三、制作Solaris OS Image
1、在Install_sever的CD-ROM中放入Solaris 8 Software 1 of 2光盘
2、运行以下命令:
# cd /cdrom/cdrom0/s0/Solaris_8/Tools
# ./setup_install_server /export/install
(其中/export/install所在的分区必须有足够的空间,至少800M以上,建议1G
如果/分区空间不够,可选用其他目录,只要于以后使用该目录时保持一致即可
如可以使用/export/home/install)
3、等待程序运行完成以后,运行以下命令取出Solaris 8 Software 1 of 2光盘
并放入Solaris 8 Software 2 of 2光盘
# cd /
# eject
4、运行以下命令:
# cd /cdrom/cdrom0/Solaris_8/Tools
# ./add_to_install_server /export/install
5、等待程序运行完成以后,运行以下命令取出Solaris 8 Software 2 of 2光盘
并放入Solaris 8 Language 光盘
# cd /
# eject
6、运行以下命令:
# cd /cdrom/cdrom0/Tools
# ./add_to_install_server -s /export/install
按照系统提示选择"Simplified Chinese"(简体中文)选项,安装相应软件包
7、等待程序运行完成以后,运行以下命令取出Solaris 8 Language 光盘
# cd /
# eject
至此制作Solaris OS Image的工作完成
四、配置jumpstart相关信息
1、运行以下命令
# mkdir /jumpstart
# cp -r /export/install/Solaris_8/Misc/jumpstart_sample/* /jumpstart
2、用ftp将事先制作好的以下几个文件上传至/jumpstart中(ftp上传时请用ascii码格式)
(用vi看一下文件的内容,如果文本行结尾有多余的^M,请将文件中的^M全部删除,或用
命令dos2unix转换)
sysidcfg
rules
test_prof_18G
test_prof_36G
3、按照用户设置的netmask(网络掩码)修改sysidcfg文件中network_interface的相关参数
例如:
原条目:network_interface=primary {netmask=255.255.255.0 protocol_ipv6=no}
修改成:network_interface=primary {netmask=255.255.252.0 protocol_ipv6=no}
保存文件
4、运行以下命令:
# cd /jumpstart
# ./check 具体每一个分区的信息(大小为兆字节)
filesys c0t0d0s6 2000 /usr - |
filesys c0t0d0s4 15 unnamed |
filesys c0t0d0s7 free /export/home -/
geo Asia#指定地理区域
locale zh#指定本地化语言包
isa_bits 64#计算位长(64 或32)
配置注意事项:
1、install_type 必须写在第1行
2、标记为容量为“free”的分区如“filesys c0t0d0s7 free /export/home -”
必须写在所有“filesys”定义的最后一个
test_prof_36G 文件内容
相应的解释与test_prof_18G 文件相同
区别只在“filesys”的分区大小定义不同
install_type initial_install
usedisk c0t0d0
boot_device c0t0d0s0 update
root_device c0t0d0s0
cluster SUNWCXall
system_type standalone
partitioning explicit
filesys c0t0d0s0 3000 / -
filesys c0t0d0s1 3000 /var -
filesys c0t0d0s3 3000 swap
filesys c0t0d0s5 5000 /opt -
filesys c0t0d0s6 3000 /usr -
filesys c0t0d0s4 15 unnamed
filesys c0t0d0s7 free /export/home -
geo Asia
locale zh
isa_bits 64
如果有其他特殊需求请参照:“Solaris 8 Advanced Installation Guide”
(Part Number:806–0957–10)
附例:JumpStart Install Server 安装过程:
附录1:实例安装记录
此例中:
JumpStart Install_Server的信息如下:
Hostame: jumptest
IP: 10.11.147.60
2个Install Client信息如下
Client1:
Hostame: test-1
IP: 10.11.147.38
Ethernet: 8:0:20:ce:ec:d6
c0t0d0: 18G
Client2:
Hostame: test-2
IP: 10.11.147.39
Ethernet: 8:0:20:ce:ec:ae
c0t0d0: 18G
root@jumptest # cd /cdrom/sol_8_sparc/s0/Solaris_8/Tools
root@jumptest # ./setup_install_server /export/home/install
Verifying target directory...
Calculating the required disk space for the Solaris_8 product
Copying the CD image to disk...
Install Server setup complete
root@jumptest # cd /
root@jumptest # eject
root@jumptest # cd /cdrom/sol_8_sparc_2/Solaris_8/Tools
root@jumptest # ./add_to_install_server /export/home/install
The following Products will be copied to /export/home/install/Solaris_8/Product:
Solaris_2_of_2
If only a subset of products is needed enter Control-C
and invoke ./add_to_install_server with the -s option.
Checking required disk space...
Copying the Early Access products...
41990 块
Processing completed successfully.
root@jumptest # cd /
root@jumptest # eject
root@jumptest # cd /cdrom/sol_8_lang_sparc/Tools
root@jumptest # ./add_to_install_server -s /export/install /export/home/install
Enter the number of the product(s) you want to add
to /export/home/install/Solaris_8/Product or 'all' for all products.
The following are valid products:
1Simplified_Chinese
2French
3German
4Italian
5Japanese
6Korean
7Spanish
8Swedish
9Traditional_Chinese
10shared
1
Checking required disk space...
Copying SimplifiedChinese packages...
Processing completed successfully.
root@jumptest # cd /
root@jumptest # eject
root@jumptest # cd /jumpstart
root@jumptest # ./check
Validating rules...
Validating profile test_prof_18G...
Validating profile test_prof_36G...
The custom JumpStart configuration is ok.
root@jumptest # ls
any_machine net924_sun4c rules sysidcfg x86-begin.conf
check test_prof_18G rules.ok upgrade x86-class
host_class test_prof_36G set_root_pw x86-begin
root@jumptest # /usr/lib/nfs/nfsd -a 16
root@jumptest # /usr/lib/nfs/mountd
root@jumptest # share /jumpstart
root@jumptest # shareall
root@jumptest # dfshares jumptest
RESOURCE SERVER ACCESS TRANSPORT
jumptest:/jumpstart jumptest - -
root@jumptest # cd /export/home/install/Solaris_8/Tools
root@jumptest # ./add_install_client -c jumptest:/jumpstart -p jumptest:/jumpstart test-1 sun4u
saving original /etc/dfs/dfstab in /etc/dfs/dfstab.orig
Adding "share -F nfs -o ro,anon=0 /export/home/install" to /etc/dfs/dfstab
updating /etc/bootparams
copying inetboot to /tftpboot
root@jumptest # ./add_install_client -c jumptest:/jumpstart -p jumptest:/jumpstart test-2 sun4u
updating /etc/bootparams
root@jumptest #
备注:例子中会有目录不同的情况
如不是/cdrom/cdrom0,而是/cdrom/sol_8_sparc/、/cdrom/sol_8_sparc_2
或/cdrom/sol_8_lang_sparc,其实/cdrom/cdrom0是指向这些目录的连接,没有问题


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/22249/showart_151777.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP