Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3157415
  • 博文数量: 443
  • 博客积分: 11301
  • 博客等级: 上将
  • 技术积分: 5678
  • 用 户 组: 普通用户
  • 注册时间: 2004-10-08 12:30
个人简介

欢迎加入IT云增值在线QQ交流群:342584734

文章分类

全部博文(443)

文章存档

2022年(1)

2021年(1)

2015年(2)

2014年(1)

2013年(1)

2012年(4)

2011年(19)

2010年(32)

2009年(2)

2008年(4)

2007年(31)

2006年(301)

2005年(42)

2004年(2)

分类:

2006-09-07 20:32:21

 
Jumpstart是SUN公司为了在多个主机上简化和快速布署Solaris操作系统的一种自动安装技术,通过该技术,无需人工干预,便可同时在多台主机上安装操作系统,并且该技术允许用户通过脚本自定义操作系统安装行为,具有很高的灵活性,另外Jumpstart可以配合Flash Archive技术实现一些特定的安装效果,如:利用Flash Archive技术制作一个包含预安装系统和相关软硬件支持的归档文件,将该归档文件保存在光盘介质或NFS/FTP/HTTP服务器上,通过Jumpstart技术引用该归档文件,实现操作系统的快速克隆(视网络速度快慢,一般只需要约5-10分钟),并且可以定制脚本对克隆的客户端进行优化和预修改操作。

以下例子将Solrais 9操作系统自动安装在V890的c1t12d0s2上,主机名为jpstart,IP为10.72.3.110,MAC地址为”0:3:ba:8c:25:5f”.
安装服务器为sunclst01-ts,其Solaris 9源映像包保存在”/export/install”目录下.

step1.将Jumpstart服务器设置成安装/引导服务器.
在jumpstart服务器上建立主机与IP地址及主机与MAC地址的对应关系.
# more /etc/ethers
0:3:ba:8c:25:5f jpstart
# more /etc/hosts
10.72.3.110 jpstart

插入Solaris 9 DVD光盘,将光盘上的OS源映像包复制到jumpstart服务器上.
# cd /cdrom/cdrom0/s0/Solarsi_9/Tools
# ./setup_install_server /export/install
(如果为CD介质,还需要将其它盘上的源包一并复制到jumpstart服务器中,更多信息请参考“如何制作网络安装/启动服务器”一文).

step2.添加jumpstart客户端.
# cd /export/install/Solaris_9/Tools
# ./add_install_client -c sunclst01-ts:/export/config \
-p sunclst01-ts:/export/config jpstart sun4u

在向安装服务器添加jumpstart客户端后,”/etc/bootparams”文件内容如下:
# more /etc/bootparams
jpstart root=sunclst01-ts:/export/install/Solaris_9/Tools/Boot install=sunclst01-ts:/export/install boottype=:in sysid_config=sunclst01-ts:/export/config install_config=sunclst01-ts:/export/config rootopts=:rsize=32768
step3.建立rules规则文件.
# mkdir /export/config
# cat > ./rules
any - - client_profile -
上述规则文件表明将匹配任意一台jumpstart客户端,这些客户端的配置文件为
client_profile.

step3.为jumpstart客户端定义配置文件.

# more /export/config/client_profile(从网络安装服务器提供的Solaris软件包中安装)
install_type initial_install
system_type standalone
partitioning explicit
filesys c1t12d0s0 10240 /
filesys c1t12d0s1 32768 swap
filesys c1t12d0s7 free /export/home
cluster SUNWCXall (整个Solaris OS发行包加OEM支持)

# more /export/config/client_profile(从用Flash Archive技术生成的操作系统归档文件中安装,归档文件保存在FTP服务器上)
install_type flash_install
archive_location
partitioning explicit
filesys c1t9d0s0 10240 /
filesys c1t9d0s1 32768 swap
filesys c1t9d0s7 free /export/home

step4.定义sysidcfg文件,在该文件中可以不指定”hostname”和”ip_address”项,Jumpstart
程序会自动从”/etc/hosts”和”/etc/ethers”得到.

# more /export/config/sysidcfg
network_interface=primary
{netmask=255.255.255.0
default_route=none
protocol_ipv6=no}
timeserver=localhost
security_policy=NONE
name_service=NONE
timezone=PRC
system_locale=C
root_password=WDTnYjenQCXlU (为加密后的字串,可以从”/etc/shadow”文件中得到)
terminal=vt100

step5. 验证rules规则文件.
从安装服务器中拷贝check命令至”/export/config”目录下,并运行该命令验证rules文件
的正确性,如果通过测试,该命令将会生成”rules.ok”文件.
# ./check
step6.共享jumpstart配置目录/export/config
编辑/etc/dfs/dfstab文件,加入:
share -o ro /export/config
然后重新启动NFS服务进程.
step7.引导客户端安装.
ok boot net - install


[ Jumpstart客户端安装过程日志 ]

客户端安装过程中,Jumpstart程序将把根磁盘挂接在”/a”目录下,所有的安装日志文件被存储在/a/var/sadm/system/logs目录下,当jumpstart客户端完成安装并重启后,可转到”/var/sadm/system/logs”目录下查看客户端OS的安装日志,包括自定义脚本的执行情况.
阅读(2894) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~