
完成下面的步骤:
1.在NIS主服务器上,以root登录。打开一个终端窗口,并改变目录到/etc目
录。
# cd /etc
2.编辑/etc/ethers文件,并添加关于JumpStart客户机的一个项目;例如:
8:0:20:2f:90:3d client1
3.编辑/etc/hosts文件,如果关于JumpStart客户机的项目不存在则添加一条。
添加timehost别名到JumpStart服务器的项目;例如:
192.9.200.1 server1 loghost timehost
192.9.200.100 client1
4.编辑或检查/etc/netmasks以确定它包含你的网络的网络号和子网掩码;例
如:
192.9.200.0 255.255.255.0
5.编辑/etc/timezone文件并添加将你的本地时区和你的NIS域名关联到一起
的一个项目。这个文件的项目区分大小写;例如:
US/Mountain yourdomain
6.编辑/etc/locale文件并添加将你的场所和你的NIS域名关联到一起的一个条
目。
yourdomain en_US
7.更新或替换/var/yp/Makefile使得它包括支持使用一个关于
/etc/locale的映射的项目。你的讲师可能有一个更新了的可用
Makefile。
要更新/var/yp/Makefile使得它包括locale映射,做下面的改变。这个
过程也从目标all移除aliases项目。
a.改变目录到/var/yp,并编辑Makefile。
# cd /var/yp
# /usr/ccs/bin/make
b.在已有的*.time项目后面添加下面的文本;所有的开始空白必须是制表
符。因为Makefile中关于timezone映射的项目包含除了映射名以外相
同的代码,你可以复制timezone项目,用locale替换timezone。
Locale.time:$(DIR)/locale
-@if [ -f $(DIR)/locale ];then \
sed –e"/^#/d"–e s/#.*$$// $(DIR)/locale \
| awk ’{for (i = 2;i<=NF; i++) print $$i, $$0}’ \
| $(MAKEDBM) - $(YPDBDIR)/$(DOM)/locale.byname; \
touch locale.time; \
echo "updated locale"; \
if [ ! $(NOPUSH) ]; then \
$(YPPUSH) locale.byname; \
echo "pushed locale"; \
else \
: ; \
fi \
else \
echo "couldn’t find $(DIR)/locale"; \
fi
c.将字locale附加到以字all开始的行后面。
d.在Makefile的这一相同部分检验aliases项目。如果它存在,移除
它。
e.在auto.home: auto.home.time项目后面添加下面的行:
locale: locale.time
f.保存该文件,退出编辑器。
8.通过运行make命令更新NIS映射。
# cd /var/yp
# /usr/ccs/bin/make
…
Control-C
make命令在它尝试将新的locale映射推到从服务器时将会挂起。当这种情况
发生时,用Control-C停止make命令。
9.在NIS从服务器上,首次用ypxfr命令传输locale.byname映射。
# /usr/lib/netsvc/yp/ypxfr locale.byname
10.在NIS主服务器上,再次通过运行make命令更新NIS映射。这次,make命令
应当成功地完成。
# cd /var/yp
# /usr/ccs/bin/make
11.向CD-ROM驱动器中插入Solaris 8软件1 of 2 CD-ROM。创建目录
/export/config。
# mkdir /export/config
fc1
12.改变目录到
/cdrom/cdrom0/s0/Solaris_8/Misc/jumpstart_sample。
# cd /cdrom/cdrom0/s0/Solaris_8/Misc/jumpstart_sample
13.拷贝jumpstart_sample目录的内容到/export/config。这样将示例
JumpStart配置文件放入你将用来完成练习的/export/config。
# cp -r * /export/config
14.改变目录到/export/config。将rule文件移动成rules.orig。
# cd /export/config
# mv rules rules.orig
15.创建一个名为rules的包含下面项目的新文件。输入你的JumpStart客户机名
称替换client1:
hostname client1 - host_class finish_script
16.编辑/export/config/host_class文件使得它指定一个初始的安装;一
个的系统类型;明确的分区;最终用户软件集;以及用于root(/),
swap,和/usr的分区。使用适合JumpStart客户机系统的分区大小和设备名
称;例如:
Entire Distribution Plus OEM Support Software Group (SUNWCXall)
Entire Distribution Software Group (SUNWCall)
Developer System Support Software Group (SUNWCprog)
End User System Support Software Group (SUNWCuser)
Core Software Group (SUNWCreq)
install_type initial_install
system_type standalone
partitioning explicit
cluster SUNWCuser (SUNWCXall)
filesys c0t0d0s0 300 /
filesys c0t0d0s1 128 swap
filesys c0t0d0s6 free /usr
17.在/export/config中,创建一个叫做finish_script的包含下面行的文
件。用你的NIS域名替换yourdomain。
#!/bin/sh
touch /a/noautoshutdown
rm /a/etc/defaultdomain
rm -r /a/var/yp/binding/nisdomain
cp /a/etc/nsswitch.files /a/etc/nsswitch.conf
这些命令配置JumpStart客户机以避免使用自动关机省电特性,并且它们移除
NIS客户机配置。
18.改变finish_script的许可为555。
# chmod 555 finish_script
19.运行/export/config/check程序,并纠正它所报告的在rules或
host_class文件中的任何问题。在check成功完成后,验证rules.ok文
件存在。
# ./check
20.在/export/config中,创建一个名为sysidcfg的包含下面行的文件。字
符串I/BCWS/naoJLQ是一个关于密码cangetin的13字符的加密字符串。你
可以通过从你自己的/etc/shadow文件拷贝一个字符串,用不同的加密密码
字符串替换这个字符串。
security_policy=none
network_interface=primary {protocol_ipv6=no}
root_password=I/BCWS/naoJLQ
注意 – 这些行回答关于实施kerberos安全和Internet协议版本6(IPv6)协议的安装
问题,并提供一个root密码。
21.编辑/etc/dfs/dfstab以添加关于/export/config目录的一个项目如
下:
share -o ro /export/config
22.如果NFS服务器后台进程没在运行,启动它们:
# /etc/init.d/nfs.server start
23.如果NFS服务器后台进程正在运行,运行shareall:
# shareall
24.改变目录到/cdrom/cdrom0/s0/Solaris_8/Tools。
# cd /cdrom/cdrom0/s0/Solaris_8/Tools
25.用add_install_client程序添加对你的JumpStart客户机的支持。下面的
例子适用于通过使用一个被挂接的Solaris 8 1 of 2 CD-ROM来提供进入操作
的服务器。用你的JumpStart服务器名称替换server1,用你的JumpStart客户
机名称替换client1,用sun4u,sun4m,或sun4c替换sun4x,这取决于
你使用的客户机系统的类型。
# ./add_install_client -c server1:/export/config \
-p server1:/export/config client1 sun4u
# ./add_install_client -c e220:/export/config -p e220:/export/config t1 sun4u
26.关于下面的add_install_client报告它采取了什么动作:
文件或后台进程动作
/etc/dfs/dfstab
/etc/inetd.conf
/etc/nsswitch.conf
/tftpboot
rarpd后台进程
bootparamd后台进程
27.通过运行make命令更新NIS映射。
# cd /var/yp
# /usr/ccs/bin/make
28.启动JumpStart客户机:
ok boot net (– install 会自动分区)
换盘172.31.11.233:/cdrom/sol_9_904_sparc_2
===================================================================
SOLARIS 10
主要是两个部分,1 找个solaris机器做安装服务器,2 从网络启动
一、设置ALOM
先连接RJ45<-->串口的管理端口,PC上设置终端(都是默认,唯一要改的就是波特率9600)开电源后进入ALOM状态:sc>
设置ip地址,先用dhcp得到一个:
sc> setsc netsc_dhcp true 启用dhcp
sc> resetsc 保存设置
sc> shownetwork 验证地址,得到一个IP。
为了以后管理方便,将此ip或另外分配的ip设为ALOM的固定IP:
sc> setsc netsc_dhcp false 先禁用用dhcp
sc> setsc netsc_ipaddr ipaddress
sc> setsc netsc_ipnetmask mask
1037
sc> setsc netsc_ipgateway gateway
sc> resetsc
sc> shownetwork
将网络管理端口RJ45<-->RJ45联入网络,这样就可以用ssh或telnet连接ALOM了。
-----------ALOM设置完毕--------------
从ALOM进入SUN控制器或者系统,用:
sc> console
从console进入ALOM sc> ,键入#.
从ALOM sc> 进入obp ok提示符下,有几种方法:
若系统在运行,进入console状态,正常关机init0;或非正常关机 STOP+A;
或者在sc> break 尽量不要在系统运行时这样做,相当于非法关机。
进入ok提示符后可以进行相应设置,后面会提到。
二、设置网络安装服务器
前提,安装服务器需要同一子网。如果不是同一子网,那么需要同一子网的引导服务器。
开始安装时,只有一台安装服务器T2000,但和T1000不是同一子网,所以怎么试也不成功,后来把T1000接到T2000的网段里,就成功了。
下面建立网络安装文件和程序设置:
创建一个目录来包含 DVD 映像: # mkdir -p install_dir_path
转到已挂载光盘上的 Tools 目录,对于 SPARC DVD 介质,请键入:# cd /cdrom/cdrom0/s0/Solaris_10/Tools
将驱动器中的 DVD 映像复制到安装服务器的硬盘上: # ./setup_install_server install_dir_path
以下操作默认已经被自动完成了,只是要看一下确认。
============
验证安装服务器映像的路径是否被正确共享: # share | grep install_dir_path ;如果没有显示安装服务器目录的路径,或者选项中未显示
anon=0;则将该项添加到 /etc/dfs/dfstab 文件,使安装服务器可用于引导服务器:
share -F nfs -o ro,anon=0 -d "install server directory" install_dir_path
验证 nfsd 守护进程正在运行:如果安装服务器正在运行 Solaris 10 11/06 OS 或兼容版本,请键入以下命令:
# svcs -l svc:/network/nfs/server:default
如果 nfsd 守护进程尚未联机,请启动该守护进程:
# svcadm enable svc:/network/nfs/server
==============
------------------------------------------------------------------------------------------------
如果安装服务器正在运行 Solaris 9 OS 或兼容版本,请键入以下命令。
# ps -ef | grep nfsd
如果 nfsd 守护进程正在运行,请继续步骤 d。如果 nfsd 守护进程未运行,请启动该守护进程。
# /etc/init.d/nfs.server start
---------------------------------------------------------------------------------------------------
共享该安装服务器: # shareall
转到根目录 (/)。
一定要umount /mnt,否则会出错
-----------------------------------------------------
使用 add_install_client 添加要从网络安装的系统 (DVD)
在install_dir_path目录下(不是光盘镜像/mnt下)
# ./add_install_client -e “新机器mac” -i “新机器IP” “新机器主机名” sun4v #注意一般是sun4u,但t1000S是sun4v,此外还要设置网卡mac和ip,不设的话就无法正常安装---------------------------
# ./add_install_client -e 0:14:4f:af:f: -i 192.168.1.14 app2 sun4v T系列机器用sun4v
# ./add_install_client -e 0:3:ba:86:44:cd -i 192.168.1.3 V490 sun4u 老机器用SUN4u
Adding Ethernet number for V490 to /etc/ethers
saving original /etc/dfs/dfstab in /etc/dfs/dfstab.orig
Adding "share -F nfs -o ro,anon=0 /cdrom/sol_10_1008_sparc" to /etc/dfs/dfstab
making /tftpboot
enabling tftp in /etc/inetd.conf
Converting /etc/inetd.conf
enabling network/tftp/udp6 service
enabling network/rarp service
enabling network/rpc/bootparams service
updating /etc/bootparams
copying boot file to /tftpboot/inetboot.SUN4U.Solaris_10-1
进入OBP,设置从网络启动:
sc> break
sc> console
ok boot net - install或者ok boot net - nowin
具体安装过程就不赘述了
Sun Fire(TM) T1000, No Keyboard
Copyright 2007 Sun Microsystems, Inc. All rights reserved.
OpenBoot 4.25.8, 8184 MB memory available, Serial #78581604.
Ethernet address 0:14:4f:af:f:, Host ID: 84af0f.
Rebooting with command: boot net
Boot device: /pci@7c0/pci@0/network@4 File and args:
Timed out waiting for Autonegotiation to complete
Check cable and try again
Link Down
Retrying network initialization
1000 Mbps full duplex Link up
Requesting Internet Address for 0:14:4f:af:f:
Timed out waiting for Autonegotiation to complete
Check cable and try again
Link Down
Retrying network initialization
Timed out waiting for Autonegotiation to complete
Check cable and try again
Link Down
Retrying network initialization
1000 Mbps full duplex Link up
SunOS Release 5.10 Version Generic_120011-14 -bit
Copyright 1983-2007 Sun Microsystems, Inc. All rights
3ae
reserved.
Use is subject to license terms.
os-io whoami: no domain name
Configuring devices.
WARNING: ldc: cannot negotiate hypervisor LDC services group: 0x101 major: 1 minor: 0 errno: 22
WARNING: ldc: cannot negotiate hypervisor LDC services group: 0x101 major: 1 minor: 0 errno: 22
WARNING: /pci@7c0/pci@0/pci@8/scsi@2/sd@0,0 (sd0):
Corrupt label; wrong magic number
Using RPC Bootparams for network configuration information.
Attempting to configure interface bge3...
Skipped interface bge3
Attempting to configure interface bge2...
Skipped interface bge2
Attempting to configure interface bge1...
Skipped interface bge1
Attempting to configure interface bge0...
Configured interface bge0
Setting up Java. Please wait...
Extracting windowing system. Please wait...
Beginning system identification...
Searching for configuration file(s)...
Search complete.
Discovering additional network configuration...
