• 软件测试技术
  • 软件测试博客
  • 软件测试视频
  • 开源软件测试技术
  • 软件测试论坛
  • 软件测试沙龙
  • 软件测试资料下载
  • 软件测试杂志
  • 软件测试人才招聘
    暂时没有公告

字号: | 推荐给好友 上一篇 | 下一篇

用DVD制作9的网络安装服务器以及遇到问题的解决

发布: 2007-6-08 22:43 | 作者: seanhe | 来源: | 查看: 19次 | 进入软件测试论坛讨论

领测软件测试网
一台BLADE2000机器制作安装服务器的过程,本机操作系统是solaris8,制作的是solaris 9的安装服务器。
把solaris9的DVD安装介质放到DVD光驱里面,然后变成超级用户,执行
1建立存放映像文件的目录
# mkdir –p /dg88b/inst_server
2 进入DVD里面相应的目录下面
#  cd /cdrom/sol_9_1202_sparc/s0/Solaris_9/Tools
3 启动映像拷贝命令,开始拷贝
#   ./setup_install_server /dg88b/inst_server
  下面是该命令的输出(需要等待很长时间)
Calculating the required disk space for the Solaris_9 product
Calculating space required for the installation boot image
Copying the CD image to disk...
Copying Install Boot Image hierarchy...
Install Server setup complete
至此,安装服务器的文件映像拷贝完成了,安装映像目录大小为2.9G。
4 添加需要进行网络安装的客户机,本例是一台SUN20工作站
首先编辑/etc/hosts,把客户机的主机名和需要分配的IP地址加进去(使用NIS,NIS+的编辑其相关文件)。然后进入到存放安装映像文件目录里面。
# cd /dg88b/inst_server/Solaris_9/Tools
# ./add_install_client -e 08:00:20:91:ab:a9 dg03 sun4m
说明:08:00:20:91:ab:a9是客户机的MAC地址;dg03是客户机的分配好的主机名,在/etc/hosts文件中定义其名字和IP;sun4m是其内核结构,ultral系列和BLADE系列工作站的内核结构是sun4u
下面是系统的输出信息:
Adding Ethe.net number for dg03 to /etc/ethers
/dg88b already has an entry in /etc/dfs/dfstab.
However, /dg88b must be shared read-only with root access.
Use ro and either anon=0 or root=dg03 for /dg88b.
The /etc/dfs/dfstab file must be fixed and /dg88b shared
before dg03 can boot.
making /tftpboot
enabling tftp in /etc/inetd.conf
starting rarpd
starting bootparamd
updating /etc/bootparams
,在客户端输入boot net开始网络引导后,出来一点信息之后就停止不动了,进入死机状态。检查客户机的MAC地址,以及安装服务器上的/etc/bootparams /etc/hosts  /etc/ethers /etc/inetd.conf等几个和网络引导相关的文件,没发现什么问题,最后发现是/etc/dfs/dfstab文件设置错误。在制作安装服务器之前,该文件格式如下:
share  -F nfs  /dg88a
share  -F nfs  /dg88b
/dg88b在制作安装服务器之前已经被NFS共享了,而安装映像文件位置是/dg88b/inst_server,问题就处在这里,客户机寻找的是/dg88b/inst_server而不是/dg88b。删除该行,运行下面的命令:
# cd /dg88b/inst_server/Solaris_9/Tools
# ./ rm_install_client  dg03  
#./add_install_client   dg03  sun4m
现在在察看/etc/dfs/dfstab文件,格式如下:
share  -F nfs  /dg88a
share -F nfs -o ro,anon=0 /dg88b/inst_server
这时候,客户机就可以顺利从网络引导并安装操作系统了。

想了很久没找到原因,其实这里已经给出了错误提示:
Adding Ethernet number for dg03 to /etc/ethers
/[size=18:441eb8345f]dg88b already has an entry in /etc/dfs/dfstab.
However, /dg88b must be shared read-only with root access.
Use ro and either anon=0 or root=dg03 for /dg88b.
The /etc/dfs/dfstab file must be fixed and /dg88b shared
before dg03 can boot.[/size:441eb8345f]

 南非蜘蛛 回复于:2003-11-05 16:37:16
不错,race好厉害呀,再贡献几篇

 handsun 回复于:2004-05-30 11:46:42
谢谢前辈,有共享才有提高。

延伸阅读

文章来源于领测软件测试网 https://www.ltesting.net/


关于领测软件测试网 | 领测软件测试网合作伙伴 | 广告服务 | 投稿指南 | 联系我们 | 网站地图 | 友情链接
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备2023014753号-2
技术支持和业务联系:info@testage.com.cn 电话:010-51297073

软件测试 | 领测国际ISTQBISTQB官网TMMiTMMi认证国际软件测试工程师认证领测软件测试网