Chinaunix首页 | 论坛 | 博客
  • 博客访问: 49776
  • 博文数量: 36
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 0
  • 用 户 组: 普通用户
  • 注册时间: 2016-08-03 09:58
个人简介

Working at Veritas,act as Senior NetBackup Technical Support Engineeer. Empty your mind,Be formless,sharpless,like the water!!

文章分类

全部博文(36)

文章存档

2015年(1)

2013年(2)

2011年(1)

2009年(3)

2008年(14)

2007年(15)

分类: SOLARIS

2007-06-22 17:00:12

JumpStart Install Solaris 10 Over a Local Network

                                                                                   Author: Rover Yao

                                                Time:  2007-08-24

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=

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

这里注意:确保网络通畅!!!


阅读(924) | 评论(0) | 转发(0) |
0

上一篇:心情

下一篇:没有饿死的,只有嗔死的

给主人留下些什么吧!~~