Solaris 11 安装
安装准备 机房环境确认 服务器 ( 140.83.201.1 ) 服务器序列号 ( SPARC T5-8,AK00088367 ) 网关 IP( 例如 :140.83.201.1,10.196.3.1) 2
网络拓扑 140.83.201.44 Solaris repo Datacenter SC 140.83.201.57 T5-8 3
网络连接 生产网 71/137/139 心跳网 管理网 72/138 244 245 10.223.30.0/25 192.168.31.0/24 10.134.90.0/24 Ipmp0 net0 net1 ipmp1 net2 net3 Ipmp0 net0 net1 ipmp1 net2 net3 ILOM.155 hncjdb01 hncjdb02 ILOM.156 Disk Disk 4
软件确认 查看最新 Solaris 11.1 SRU 版本 (MOS:1501435.1) Solaris 11.1 SRU1.4 (2012 年 11 月 20 日 ) Solaris 11.1 SRU2.5 (2012 年 12 月 17 日 ) Solaris 11.1 SRU3.4(2013 年 1 月 11 日 ) Solaris 11.1 SRU3.5.1(2013 年 1 月 25 日 ) Solaris 11.1 SRU4.5 (2013 年 2 月 18 日 ) Solaris 11.1 SRU4.6 (2013 年 3 月 6 日 ) Solaris 11.1 SRU5.5 (2013 年 3 月 13 日 ) Solaris 11.1 SRU6.4 (2013 年 4 月 11 日 ) Solaris 11.1 SRU7.5 (2013 年 5 月 20 日 ) Solaris 11.1 SRU8.4 (2013 年 6 月 12 日 ) Solaris 11.1 SRU9.5.1 (2013 年 7 月 11 日 ) Solaris 11.1 SRU10.5.0(2013 年 8 月 19 日 ) Solaris 11.1 SRU11.4.0(2013 年 9 月 13 日 ) Solaris 11.1 SRU12.5.0(2013 年 10 月 15 日 ) https://support.oracle.com Oracle Solaris 11.1 VirtualBox Template http://www.oracle.com/technetwork/server-storage/solaris11/vmtemplates-vmvirtualbox-1949721.html 5
软件确认 查看最新 Solaris 11.1 SRU 版本 (MOS:1501435.1) Solaris 11.1 SRU13.6 (2013 年 11 月 18 日 ) Solaris 11.1 SRU14.5 (2013 年 12 月 12 日 ) Solaris 11.1 SRU15.4 (2014 年 1 月 14 日 ) Solaris 11.1 SRU16.5 (2014 年 2 月 21 日 ) Solaris 11.1 SRU17.5 (2014 年 3 月 18 日 ) Solaris 11.1 SRU18.5 (2014 年 4 月 15 日 ) Solaris 11.1 SRU19.6 (2014 年 5 月 19 日 ) Solaris 11.1 SRU20.5 (2014 年 6 月 18 日 ) Solaris 11.1 SRU21.4 (2014 年 7 月 15 日 ) 6
软件确认 查看最新 Solaris 11.2 SRU 版本 (MOS:1672221.1) Solaris 11.2 SRU1.5.0 (2014 年 8 月 15 日 ) Solaris 11.2 SRU2.5.0 (2014 年 9 月 12 日 ) Solaris 11.2 SRU2.7.0 (2014 年 9 月 25 日 ) Solaris 11.2 SRU2.8.0 (2014 年 9 月 26 日 ) Solaris 11.2 SRU3.4.1 (2014 年 10 月 14 日 ) Solaris 11.2 SRU3.5.0 (2014 年 10 月 20 日 ) Solaris 11.2 SRU4.6.0 (2014 年 11 月 14 日 ) Solaris 11.2 SRU5.5.0 (2014 年 12 月 12 日 ) Solaris 11.2 SRU6.4.0 (2015 年 1 月 20 日 ) Solaris 11.2 SRU7.4.0 (2015 年 2 月 13 日 ) Solaris 11.2 SRU8.4.0 (2015 年 3 月 20 日 ) Solaris 11.2 SRU8.5.0 (2015 年 4 月 1 日 ) Solaris 11.2 SRU9.5.0 (2015 年 4 月 14 日 ) Solaris 11.2 SRU10.5.0 (2015 年 5 月 15 日 ) Solaris 11.2 SRU11.5.0 (2015 年 6 月 12 日 ) 7
软件确认 Solaris 11.1, 需下载, 例如 : SRU11.1.18.5.0 text 交互安装光盘映像 (iso,600 至 700MB) SPARC,p18521297_1100_SOLARIS64.zip X86,p18521306_1100_Solaris86-64.zip Oracle Solaris 11.1 Repository Image(iso, 约 7GB) SRU11.1.21.4.0 软件库升级补丁 (iso, 约 3.8GB) p19174846_1100_solaris64.zip Oracle EIS DVD( 可选 ) http://www.oracle.com/technetwork/server-storage/solaris11/downloads/index.html 8
软件确认 Solaris 11.2, 需下载, 例如 : GA text 交互安装光盘映像 (iso, 约 750MB) SPARC,sol-11_2-text-sparc.iso X86,sol-11_2-text-x86.iso Oracle Solaris 11.2 Repository Image(iso, 约 7GB) Oracle Solaris 11.2 SRU 5.5 p20131812_1100_solaris86-64_1of2.zip p20131812_1100_solaris86-64_2of2.zip Oracle EIS DVD( 可选 ) http://www.oracle.com/technetwork/server-storage/solaris11/downloads/index.html 9
Oracle EIS 标准安装确认 查看最新 Oracle Enterprise Installation Standards(EIS) 说明 http://eis.us.oracle.com/checklists/checklists.html 10
Solaris 文档确认 查看 Solaris 11.1 发行说明 http://www.oracle.com/technetwork/documentation/solaris-11-192991.html 11
Solaris 文档确认 查看 Solaris 11.2 发行说明 http://docs.oracle.com/cd/e36784_01/index.html 12
系统要求 Solaris 11.1 安装要求 ( 以 Text install 为例 ) 内存 :1GB(x86),1.5GB(SPARC) 硬盘 :4.9GB(x86),4.8GB(SPARC) 13
Solaris 11.2 安装要求 ( 以 Text install 为例 ) 内存 :1.5GB(x86),2GB(SPARC) 硬盘 :6.9GB(x86),6.9GB(SPARC) 14
Solaris 的交互安装 安装 Solaris 11.1 需从 Solaris DVD 光盘启动, 或选择从 rkvms 挂载 DVD 光盘映像文件启动 SPARC T5-8, Keyboard Present Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved. OpenBoot 4.36.1, 1.9987 TB memory available, Serial #103679956. Ethernet address 0:10:e0:2e:7:d4, Host ID: 862e07d4. {0} ok boot rcdrom {0} ok boot rcdrom Boot device: /pci@300/pci@1/pci@0/pci@4/pci@0/pci@6/usb@0/device@5/storage@2/disk@0 File and args: SunOS Release 5.11 Version 11.1 64-bit Copyright (c) 1983, 2012, Oracle and/or its affiliates. All rights reserved. 15
安装 Solaris 11.1 观察系统引导, 选择键盘类型 USB keyboard 1. Arabic 15. Korean 2. Belgian 16. Latin-American 3. Brazilian 17. Norwegian 4. Canadian-Bilingual 18. Portuguese 5. Canadian-French 19. Russian 6. Danish 20. Spanish 7. Dutch 21. Swedish 8. Dvorak 22. Swiss-French 9. Finnish 23. Swiss-German 10. French 24. Traditional-Chinese 11. German 25. TurkishQ 12. Italian 26. UK-English 13. Japanese-type6 27. US-English 14. Japanese To select the keyboard layout, enter a number [default 27]: 16
安装 Solaris 11.1 选择语言类型 1. Chinese - Simplified 2. Chinese - Traditional 3. English 4. French 5. German 6. Italian 7. Japanese 8. Korean 9. Portuguese - Brazil 10. Spanish To select the language you wish to use, enter a number [default is 3]: 17
安装 Solaris 11.1 选择安装 Solaris Welcome to the Oracle Solaris installation menu 1 Install Oracle Solaris 2 Install Additional Drivers 3 Shell 4 Terminal type (currently xterm) 5 Reboot Please enter a number [1]: 18
安装 Solaris 11.1 观察欢迎界面, 选择继续 19
安装 Solaris 11.1 选择硬盘发现方法 20
安装 Solaris 11.1 观察硬盘分区界面, 选择继续 21
安装 Solaris 11.1 选择全部硬盘, 选择继续 22
安装 Solaris 11.1 输入主机名称 23
安装 Solaris 11.1 选择网口 24
安装 Solaris 11.1 输入 IP 地址等, 选择继续 25
安装 Solaris 11.1 选择是否配 DNS, 选择继续 26
安装 Solaris 11.1 选择是否配其它名称服务, 选择继续 27
安装 Solaris 11.1 选择地区, 选择继续 28
安装 Solaris 11.1 选择国家, 选择继续 29
安装 Solaris 11.1 选择时区, 选择继续 30
安装 Solaris 11.1 设置时间, 选择继续 31
安装 Solaris 11.1 初始 root 用户和初始用户口令等, 选择继续 32
安装 Solaris 11.1 选择注册 33
安装 Solaris 11.1 选择 Proxy 等 ( 例如 :No Proxy) 34
安装 Solaris 11.1 观察配置概要, 选择安装 35
安装 Solaris 11.1 观察安装进度 ( 约 15 分钟 ) 36
安装 Solaris 11.1 安装结束, 按 F8 重启 37
安装 Solaris 11.1 观察 Solaris 重启后, 可以登录 Boot device: /pci@300/pci@1/pci@0/pci@4/pci@0/pci@c/scsi@0/disk@w5000cca02530a23d,0:a File and args: SunOS Release 5.11 Version 11.1 64-bit Copyright (c) 1983, 2012, Oracle and/or its affiliates. All rights reserved. Loading smf(5) service descriptions: 205/205 Configuring devices. Loading smf(5) service descriptions: 1/1 Hostname: t58-201054 t58-201054 console login: 38
安装 Solaris 11.1 用初始用户登录 t58-201054 console login: user1 Password: Oracle Corporation SunOS 5.11 11.1 March 2014 user1@t58-201054:~$ su Password: Sep 16 17:25:43 t58-201054 su: 'su root' succeeded for user1 on /dev/console root@t58-201054:~# 39
安装 Solaris 11.1 观察 Solaris 版本 Solaris SRU 版本等信息 root@t58-201054:~# more /etc/release Oracle Solaris 11.1 SPARC Copyright (c) 1983, 2013, Oracle and/or its affiliates. All rights reserved. Assembled 06 November 2013 root@t58-201054:~# pkg list entire NAME (PUBLISHER) VERSION IFO entire 0.5.11-0.175.1.18.0.5.0 i root@t58-201054:~# df -h Filesystem Size Used Available Capacity Mounted on rpool/root/solaris 274G 2.2G 201G 2% / 40
可选 : 设置 Solaris 允许 root 用户 ssh 登录 root@t58-201054:~# vi /etc/ssh/sshd_config PermitRootLogin yes root@t58-201054:~# svcadm restart svc:/network/ssh:default root@t58-201054:~# vi /etc/user_attr #root::::type=role 41
设置 Solaris 可选, 检查和增加 swap root@t58-201054:~# prtconf grep Mem Memory size: 2095872 Megabytes root@t58-201054:~# swap -l -h swapfile dev swaplo blocks free /dev/zvol/dsk/rpool/swap 287,2 8K 4.0G 4.0G root@t58-201054:~# swap -d /dev/zvol/dsk/rpool/swap root@t58-201054:~# zfs volsize=128g rpool/swap root@t58-201054:~# swap -a /dev/zvol/dsk/rpool/swap root@t58-201054:~# swap -l -h swapfile dev swaplo blocks free /dev/zvol/dsk/rpool/swap 287,2 8K 128G 128G 42
Enable Multipathing 多路径 I/O Enable 设备多路径, 并重启系统 root@t58-201054:~# stmsboot -e Do you wish to continue? [y/n] (default: y) WARNING: This operation will require a reboot. Do you want to continue? [y/n] (default: y) y The changes will come into effect after rebooting the system. Reboot the system now? [y/n] (default: y) Boot device: /pci@300/pci@1/pci@0/pci@4/pci@0/pci@c/scsi@0/disk@w5000cca02530a23d,0:a File and args: SunOS Release 5.11 Version 11.1 64-bit Copyright (c) 1983, 2012, Oracle and/or its affiliates. All rights reserved. stmsboot: Root is on ZFS stmsboot: configuring devices 43
配置 IPS 软件包库 下载并上传 repo 光盘映像文件 (zip,13.9gb) 并解压 root@t58-201054:~# ls -l total 27240091 -rw-r--r-- 1 root root 13936535040 Sep 16 17:51 repo-21.4.tar root@t58-201054:~# mkdir -p /disk1/software root@t58-201054:~# cd /disk1/software root@t58-201054:/disk1/software# tar xvf /root/repo-21.4.tar 44
配置 repo 可允许自己和其它服务器使用 root@t54bj201057:~# svccfg -s application/pkg/server setprop pkg/inst_root=/disk1/software/repo/repo root@t54bj201057:~# svccfg -s application/pkg/server setprop pkg/readonly=true root@t54bj201057:~# svcprop -p pkg/inst_root application/pkg/server /disk1/software/repo/repo root@t54bj201057:~# svcadm refresh application/pkg/server root@t54bj201057:~# svcadm enable svc:/application/pkg/server:default root@t54bj201057:~# pkg set-publisher -G '*' -g http://localhost/ solaris 45
升级 Solaris 可利用 repo 升级 Solaris 11.1 到最新 SRU 版本 ( 以 21.4 为例 ) root@t58-201054:~# pkg update Packages to install: 1 Packages to update: 73 Create boot environment: Yes Create backup boot environment: No DOWNLOAD PKGS FILES XFER (MB) SPEED Completed 74/74 2843/2843 167.0/167.0 23.0M/s root@t58-201054:~# reboot 46
重启系统后, 观察 Solaris 11.1 版本变化 (GA 升级到 21.4) root@t58-201054:~# pkg list entire NAME (PUBLISHER) VERSION IFO entire 0.5.11-0.175.1.21.0.4.1 i-- 47
安装 Solaris 其它软件包 安装包 ( 以 Solaris 桌面为例, 约 10 分钟 ), 并重启 root@t58-201054:~# pkg list entire NAME (PUBLISHER) VERSION IFO entire 0.5.11-0.175.1.21.0.4.1 i-- root@t58-201054:~# pkg install solaris-desktop Packages to install: 339 Create boot environment: No Create backup boot environment: Yes Services to change: 14 DOWNLOAD PKGS FILES XFER (MB) SPEED Completed 339/339 51015/51015 529.4/529.4 2.7M/s... root@t58-201054:~# reboot 48
系统重启后, 登录 Solaris 49
观察 Solaris 桌面 50
Oracle EIS 相关安装和配置 按 Oracle EIS, 自动安装相关软件和设置环境变量 上传 EIS DVD, 并挂载, 并运行 root@t58-201054:~# ls l -rw-r--r-- 1 root root 8291383296 Sep 16 18:25 EIS-DVD-ONE-16JUL14.iso root@t58-201054:~# mount -F hsfs -o ro EIS-DVD-ONE-16JUL14.iso /mnt root@t58-201054:~# cd /mnt/sun/install root@t58-201054:/mnt/sun/install#./setup-standard.sh Running setup-standard with EIS-DVD Vn 16-JUL-14 ================================================ Do you want to install Explorer 8.4.14.6.10 from the EIS-DVD? [y/n]: y 51
按 Oracle EIS, 自动安装相关软件和设置环境变量 按提示, 选择安装的工具, 如 Explorer 等 Do you want to install Explorer 8.4.14.6.10 from the EIS-DVD? [y/n]: y Installing Explorer package from IPS Repository on the EIS-DVD... Packages to install: 1 Create boot environment: No Create backup boot environment: No DOWNLOAD PKGS FILES XFER (MB) SPEED Completed 1/1 1484/1484 16.6/16.6 0B/s setup-standard completed. 52
体验 Oracle 服务部门或 Oracle 用户利用 Explorer 收集系统信息 运行 Explorer, 并其收集的系统信息和生成的报告 root@t58-201054:~# explorer The result of the Oracle Explorer data collection can be found in the /var/explorer/output directory. The packed result is: explorer.86236284.t58-201054-2014.08.22.15.45.tar.gz You can send this file to Oracle. root@t58-201054:/var/explorer/output# ls -l total 19220 drwx------ 20 root root 25 Aug 22 23:59 explorer.86236284.t58-201054- 2014.08.22.15.45 -rw------- 1 root root 9802986 Aug 22 23:59 explorer.86236284.t58-201054- 2014.08.22.15.45.tar.gz 53