博客首页 注册 建议与交流 排行榜 加入友情链接
推荐 投诉 搜索: 帮助

Solaris,I love it!!!

Empty your mind,Be formless,sharpless,like the water!!
13627662.cublog.cn
JumpStart Install for Solaris 10 over a LAN

JumpStart Install Solaris 10 Over a Local Network

1.       准备工作

安装服务器、配置服务器、文件服务器使用同一台服务器(我这里是Netra20

Client ServerSUN Fire V480

   一张Solaris10 OS DVD安装盘

2.说明提供以下步骤

   1)创建一个JumpStart安装服务器

   2)在服务器上创建一个安装目录以及客户配置文件

   3)共享安装、配置文件

   4)创建客户tftpboot文件

   5)为了允许从网络启动,Pre-boot Execution EnviromentPXE)必须生效

3.开始工作Put the Solaris 10 OS for Sparc platforms DVD in the DVD-ROM on the server

  1.创建一个安装目录

# mkdir /export/home/install

  2.将Solaris software拷贝到新建的目录中

     # cd /cdrom/cdrom0/s0/Solaris_10/Tools

     # ./setup_install_server /export/home/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...

 3.创建一个配置目录

    # 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=<encrypted from /etc/shadow>

      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 "<text>"] <pathname> [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

 6.编辑/etc/hosts

       #

# Internet host table

#

127.0.0.1       localhost      

192.168.1.20    Netra20 loghost

192.168.1.48    V480

:wq

7.创建tftpboot文件

   运行add_install_client 脚本为客户

   找到add_install_client 脚本的位置

   # cd /export/home/install/Solaris_10/Tools

   # ./add_install_client \

   >-e 0:3:ba:2a:e5:9c

   >-s Netra20:/export/home/install \

   >-c Netra20:/export/home/config \

   >-p Netra20:/export/home/sysidcfg

Enabling tftp in /etc/inetd.confi

Converting /etc/inetd.conf

生成文件在/etc/bootparams验证:

    # more /etc/bootparams

V480  root=Netra20:/database/install/Solaris_10/Tools/Boot install=Netra20:/data

base/install boottype=:in sysid_config=Netra20:/database/jumpstart/sysidcfg inst

all_config=Netra20:/database/jumpstart rootopts=:rsize=8192

8.配置就绪,客户机可以通过网络安装了

ok提示下输入

ok boot net – install Netra20:/export/home/install

这里注意:确保网线安装好

在本机已成功!!!!

支持者给点投票!!!!!!!!!!!!!

谢谢!

发表于: 2007-06-22,修改于: 2007-06-23 12:15,已浏览324次,有评论0条 推荐 投诉

给我留言
版权所有 ChinaUnix.net 页面生成时间:0.00726