
1.1 T2000机器的了解
1.1.1 T2000机器的实物介绍
T2000的图片
正面图:
其中需要注意的是:1、T2000配备的是吸入式DVD
2、T2000上的机器开关在上图的左上角,手动开机时需要用圆珠笔笔尖式的物体按动开关,通常我们使用SC下的命令开关启动
背面图:
1.1.2 T2000的技术规格:
– 1.0或1.2 Ghz, 4或6或8核心Niagara处理器
– 32 GB内存,使用512MB或1GB或2GB DDR2 DIMM,16个插槽
– 4个2.5” SAS硬盘,硬件Raid控制器,支持Raid 0和1(要在装系统之前做硬raid)
– 5个PCI插槽,其中3个PCI-E,2个PCI-X
– 4个10/100/1000网口
– 4个USB 2.0口
– ALOM管理,使用串口和10/100Base-T网口
–冗余,热插拔电源
1.2 ALOM卡的安装
1.2.1 ALOM卡介绍
当我们拿到机器时,应该一开始就去配制系统控制卡(SC),在T2000里SC卡就是ALOM卡。系统控制卡就是对系统在硬件级别的控制,只要机器接上电源就可以在SC上操作。SC卡主要提供下面的功能:
1、对硬件环境的监控,包括温度,电压,风扇转速等等。
2、机器故障时,报错信息的发送。
3、系统操作的远程控制,包括机器的开关机,重起,firmware的升级等等。
当我们第一次拿到机器,首先通过串口连接上机器,再为机器接通电源(暂不按下开关),这样我们就可以看到机器的启动信息。自检结束后停在sc>提示符下。
ALOM BOOTMON v1.3.8
ALOM Build Release: 001
Reset register: f0000000 EHRS ESRS LLRS SWRS
ALOM POST 1.0
Dual Port Memory Test, PASSED.
TTY External - Internal Loopback Test
TTY External - Internal Loopback Test, PASSED.
TTYC - Internal Loopback Test
TTYC - Internal Loopback Test, PASSED.
TTYD - Internal Loopback Test
TTYD - Internal Loopback Test, PASSED.
Memory Data Lines Test
Memory Data Lines Test, PASSED.
Memory Address Lines Test
Slide address bits to test open address lines
Test for shorted address lines
Memory Address Lines Test, PASSED.
Boot Sector FLASH CRC Test
Boot Sector FLASH CRC Test, PASSED.
Return to Boot Monitor for Handshake
ALOM POST 1.0
Status = 00007fff
Returned from Boot Monitor and Handshake
Instruction CACHE Test
DISABLE the I-CACHE
ENABLE the I-CACHE
Verify I-CACHE Performance Increase
Instruction CACHE Test, PASSED.
Memory Cells Test
Counting UP: Write data: 00000000
Counting DOWN: Read - Verify - Write data: ffffffff
Counting UP: Read - Verify - Write data: 55aa33cc
Memory Cells Test, PASSED.
Data CACHE Test
Verify D-CACHE Performance Increase
D-CACHE Performance Increase I-CACHE Disabled
D-CACHE Performance Increase I-CACHE Enabled
Verify D-CACHE Memory
Data CACHE Test, PASSED.
Main Sectors FLASH CRC Test
Main Sectors FLASH CRC Test, PASSED.
Loading the runtime image... VxWorks running.
Starting Advanced Lights Out Manager CMT v1.3.8
Copyright 2007 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Current mode: NORMAL
Attaching network interface lo0... done.
Attaching network interface motfec0.... done.
Booting from Segment 1
Sun(tm) Advanced Lights Out Manager CMT v1.3.8
Full VxDiag Tests
BASIC TOD TEST
Read the TOD Clock:
SC Alert: Preceding SC reset due to watchdog
TUE NOV 04 02:34:28 2008
Wait, 1 - 3 seconds
SC Alert: SC System booted.
Read the TOD Clock: TUE NOV 04 02:34:30 2008
BASIC TOD TEST, PASSED
ETHERNET CPU LOOPBACK TEST
50 BYTE PACKET - a 0 in field of 1's.
50 BYTE PACKET - a 1 in field of 0's.
900 BYTE PACKET - pseudo-random data.
ETHERNET CPU LOOPBACK TEST, PASSED
Full VxDiag Tests - PASSED
Status summary - Status = 7FFF
VxDiag - - PASSED
POST - - PASSED
LOOPBACK - - PASSED
I2C - - PASSED
EPROM - - PASSED
FRU PROM - - PASSED
ETHERNET - - PASSED
MAIN CRC - - PASSED
BOOT CRC - - PASSED
TTYD - - PASSED
TTYC - - PASSED
MEMORY - - PASSED
MPC885 - - PASSED
sc>
sc>
当我们对SC卡配制后,SC卡拥有了自己的IP后,我们可以通过NET MANGMENT口通过网络TELNET或者SSH来访问SC卡,登陆后直接输入自己设定的用户名和密码就可以进行操作了。
1.2.2 ALOM卡的命令介绍和安装
ALOM卡里命令很多,我们只需要了解常用的几个命令,就可以了。要想查看所有的命令,我们可以输入HELP命令:
sc> help
Available commands
------------------
Power and Reset control commands:
powercycle [-y] [-f]
poweroff [-y] [-f]
poweron [-c] [FRU]
reset [-y] [-c]
Console commands:
break [-D] [-y] [-c]
console [-f]
consolehistory [-b lines|-e lines|-v] [-g lines] [boot|run]
Boot control commands:
bootmode [normal|reset_nvram|bootscript="string"]
setkeyswitch [-y] showkeyswitch Locator LED commands: setlocator [on|off] showlocator Status and Fault commands: clearasrdb clearfault disablecomponent [asr-key] enablecomponent [asr-key] removefru [-y] setfru -c [data] showcomponent [asr-key] showenvironment showfaults [-v] showfru [-g lines] [-s|-d] [FRU] showlogs [-b lines|-e lines|-v] [-g lines] [-p logtype[r|p]] shownetwork [-v] showplatform [-v] ALOM Configuration commands: setdate <[mmdd]HHMM | mmddHHMM[cc]yy][.SS]> setsc [param] [value] setupsc showdate showhost [version] showsc [-v] [param] ALOM Administrative commands: flashupdate <-s IPaddr -f pathname> [-v] help [command] logout password resetsc [-y] restartssh [-y] setdefaults [-y] [-a] ssh-keygen [-l|-r] <-t {rsa|dsa}> showusers [-g lines] useradd userdel [-y] userpassword userperm usershow [username] 当我们第一次进入SC时,应该对SC卡进行配制,这时我们可以输入setupsc命令。但是在允许设置之前会要求为sc的默认用户admin设置密码。 sc> setupsc Warning: the setupsc command is being ignored because the password for admin is not set. Setting password for admin. New password: **** Re-enter new password: **** Warning: The password entered has been accepted but does not meet the recommended guidelines for security. sc> password (可以用password命令修改密码) password: Changing password for admin Enter current password: **** Enter new password: **** Re-enter new password: **** Warning: The password entered has been accepted but does not meet the recommended guidelines for security. sc>setupsc Entering Interactive setup mode. To exit and discard changes to that point, use Ctrl-C or to exit and save changes to that point, use Ctrl-Z. Do you wish to configure the enabled interfaces [y]? y Should the SC network interface be enabled [y]? y Should the SC interface connection type be set [ssh]? telnet Should the SC email alerts be enabled [y]? n Do you wish to configure the network interface [y]? y Should the SC use DHCP to obtain its network configuration [y]? n Enter the SC IP address [100.100.100.100]? 192.168.6.134 Enter the SC IP netmask [255.255.255.0]? 255.255.255.128 Enter the SC IP gateway address [100.100.100.100]? 192.168.6.254 Do you wish to configure the network management interfaces [y]? y Enter the number of mail servers to configure [0]? 0 Do you wish to configure the SC parameters [y]? n Do you wish to configure the platform diagnostic parameters [y]? n Your ALOM configuration profile has been successfully completed. To activate your network configuration, please reset the SC. sc> resetsc Are you sure you want to reset the SC [y/n]? y User Requested SC Shutdown 上面的配置我们只是默认的打开了SC的网络管理口,并配置了IP,这样以后我们就通过网络管理机器,而不需要通过串口了。配置结束后,我们可以通过showsc查看配置结果, sc>showsc Advanced Lights Out Manager CMT v1.3.1 parameter value --------- ----- if_network true if_connection telnet if_emailalerts false netsc_dhcp false netsc_ipaddr 192.168.6.134 netsc_ipnetmask 255.255.255.0 netsc_ipgateway 192.168.6.254 mgt_mailhost mgt_mailalert sc_customerinfo sc_escapechars #. sc_powerondelay false sc_powerstatememory false sc_clipasswdecho true sc_cliprompt sc sc_clitimeout 0 sc_clieventlevel 2 sc_backupuserdata true diag_trigger power-on-reset error-reset diag_verbosity normal diag_level min diag_mode normal sys_autorunonerror false sys_autorestart reset sys_eventlevel 2 ser_baudrate 9600 ser_parity none ser_stopbits 1 ser_data 8 netsc_enetaddr 00:14:4f:82:ac:bb sys_enetaddr 00:14:4f:82:ac:b2 第2章 安装操作系统 sc> sc>poweron SC Alert: Host System has Reset sc> console - f Enter #. to return to ALOM. 0:0> 0:0>SPARC-Enterprise[TM] T2000 POST 4.25.12 2008/03/23 13:52 /export/delivery/delivery/4.25/4.25.12/post4.25.x/Niagara/ontario/integrated (root) 0:0>Copyright 2008 Sun Microsystems, Inc. All rights reserved 0:0>VBSC selecting POST MIN Testing. 0:0>POST enabling threads: ffffffff 0:0>VBSC setting verbosity level 2 0:0>Start Selftest..... 0:0>Master CPU Tests Basic... …… …… …… ……(自检过程) SPARC Enterprise T2000, No Keyboard Copyright 2008 Sun Microsystems, Inc. All rights reserved. OpenBoot 4.25.12, 32760 MB memory available, Serial #80451444. Ethernet address 0:14:4f:cb:97:74, Host ID: 84cb9774. Bad magic number in disk label Can't open disk label package ERROR: boot-read fail Boot device: net File and args: SC Alert: SC Request to send Break to host. Time {0} ok 然后boot cdrom就可以安装系统了。 第3章 升级firmware 根据checklist要求: T2000 ONLY: ●If using Solaris 10 Update 1 or higher and the SP firmware is below 6.6.5 then upgrade the system using the contents of patch 136927-04 or later (on EIS-DVD >=26AUG08 ). Follow the instructions within the patch's Install.info file. 3.1 升级过程总结 1、确定当前firmware的版本。 sun系统的firmware由以下6个的版本组成: - Advanced Lights Out Manager CMT (ALOM-CMT) - vBSC - Reset - Hypervisor - Openboot (OBP) - Power On Self Test (POST) 使用以下命令来决定是否需要升级 sc> showsc version -v and sc> showhost 2、比较当前版本和此包的最新版本,有两种方法: 1)从showhost看到当前版本(不是所有主机都会显示) System Firmware 6.3.0 Sun Fire T2000 2006/11/10 06:46 2)从showsc version -v 看到所有的版本 System Firmware 6.3.0 Sun Fire T2000 2006/11/10 06:46 ALOM-CMT v1.3.0 Nov 10 2006 06:42:22 VBSC 1.3.0 Nov 10 2006 06:38:31 Hypervisor 1.3.0 2006/11/10 06:35 OBP 4.25.0 2006/11/07 23:24 POST 4.25.0 2006/11/08 00:08 3、如果任何一个版本低于此最新版本,可以进行升级 4、升级: a)从SC下升级(首先需要将补丁包下载下来并放到ftp server上) 1)关机到OK下,#.到sc下 2)sc> poweroff 3)回到sc>下,将keyswitch设为normal sc> showkeyswitch sc> setkeyswitch -y normal 4) sc> flashupdate -s 提示输入 Username: user Password: ****** 是ftp server的而不是sc的用户名和密码 5) sc> resetsc b)从系统中升级 1)如果当前版本低于6.1.10,则必须从sc口使用flashupdate命令升级 2)以root用户登录系统 3)cd /tmp;mkdir images;cd images 4)将Sun_System_Firmware-6_3_0-Sun_Fire_T2000.bin 和sysfwdownload FTP到该目录下 5)使用sysdownload工具将其镜像到sc下(大约需要10-15分钟) # /tmp/images/sysfwdownload Sun_System_Firmware-6_2_0-Sun_Fire_T2000.bin 6)关闭系统到OK,#.到sc。 7)sc>poweroff 8)sc> showkeyswitch;sc> setkeyswitch -y normal 9)sc> flashupdate -s 127.0.0.1 10)sc> resetsc 附录1:sc下升级log,首先将升级包Sun_System_Firmware-6_6_5-SPARC_ Enterprise_T2000.bin,ftp到某台主机如192.168.24.241上的目录 /tmp/136927-04/下。 sc> poweroff Are you sure you want to power off the system [y/n]? y sc> SC Alert: SC Request to Power Off Host. SC Alert: Host system has shut down. sc> sc> showkeyswitch Keyswitch is in the NORMAL position. sc> flashupdate -s 192.168.24.241 -f /tmp/136927-04/ Sun_System_Firmware-6_6_5-SPARC_ Enterprise_T2000.bin Username: root Password: **** SC Alert: System poweron is disabled. ....................................................................................................................................................................................... Update complete. Reset device to use new software. SC Alert: SC firmware was reloaded sc> resetsc Are you sure you want to reset the SC [y/n]? y User Requested SC Shutdown Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Sun(tm) Advanced Lights Out Manager CMT v1.6.5 Please login: Please login: admin Please Enter password: **** sc> showhost Sun-Fire-T2000 System Firmware 6.6.5 2008/07/29 15:28 Host flash versions: OBP 4.28.9 2008/06/30 21:26 Hypervisor 1.6.4 2008/06/06 04:57 POST 4.28.9 2008/06/30 21:55 sc> showsc version -v Advanced Lights Out Manager CMT v1.6.5 SC Firmware version: CMT 1.6.5 SC Bootmon version: CMT 1.6.5 VBSC 1.6.4.d VBSC firmware built Jul 29 2008, 12:47:59 SC Bootmon Build Release: 01 SC bootmon checksum: AB4DD2D8 SC Bootmon built Jul 29 2008, 12:58:01 SC Build Release: 01 SC firmware checksum: FB3B96A4 SC firmware built Jul 29 2008, 12:58:16 SC firmware flashupdate THU OCT 23 03:49:18 2008 SC System Memory Size: 32 MB SC NVRAM Version = 14 SC hardware type: 4 FPGA Version: 4.2.4.7 sc> poweron sc> SC Alert: Host System has Reset sc> sc> console Console session already in use. [view mode] Enter #. to return to ALOM. 附录2:从系统中升级log root@DLSC-SVC03 # cd /tmp root@DLSC-SVC03 # ls hsperfdata_noaccess hsperfdata_root root@DLSC-SVC03 # bash root@DLSC-SVC03 # mkdir images root@DLSC-SVC03 # ls hsperfdata_noaccess hsperfdata_root images root@DLSC-SVC03 # cd images/ root@DLSC-SVC03 # ls Sun_System_Firmware-6_6_5-Sun_Fire_T2000.bin root@DLSC-SVC03 # /tmp/images/sysfwdownload Sun_System_Firmware-6_6_5-Sun_Fire_ T2000.bin bash: /tmp/images/sysfwdownload: No such file or directory root@DLSC-SVC03 # pwd /tmp/images root@DLSC-SVC03 # cd / root@DLSC-SVC03 # /tmp/images/sysfwdownload Sun_System_Firmware-6_6_5-Sun_Fire_ root@DLSC-SVC03 # /tmp/images/sysfwdownload Sun_System_Firmware-6_6_5-Sun_Fire_ bash: /tmp/images/sysfwdownload: No such file or directory root@DLSC-SVC03 # cd images/ root@DLSC-SVC03 # ls Sun_System_Firmware-6_6_5-Sun_Fire_T2000.bin sysfwdownload root@DLSC-SVC03 # chmod +x sysfwdownload root@DLSC-SVC03 # /tmp/images/sysfwdownload Sun_System_Firmware-6_6_5-Sun_Fire_ T2000.bin .......... (9%)Oct 22 17:22:57 DLSC-SVC03 login: ROOT LOGIN /dev/pts/2 FROM 10.235.150.20 .......... (18%).......... (27%).......... (36%).......... (46%).......... (55%).......... (%).......... (73%).........Oct 22 17:37:14 DLSC-SVC03 login: ROOT LOGIN /dev/pts/1 FROM 10.235.150.20 . (83%).......... (92%)......... (100%) Download completed successfully. 3.2 升级结束后确认升级成功 sc> showhost SPARC-Enterprise-T2000 System Firmware 6.6.5 2008/07/29 15:28 Host flash versions: OBP 4.28.9 2008/06/30 21:26 Hypervisor 1.6.4 2008/06/06 04:57 POST 4.28.9 2008/06/30 21:55 第4章 安装补丁 略 第5章 系统盘做镜像 略 第6章 收集信息 1、收集explorer信息,带着-i参数 2、利用SRAS工具分析explorer信息 # cd /cdrom/...sun/tools/SRAS # sh run-sras.sh 3、检查生成的文件 # cd /var/tmp/SRAS # more *EIS.Report.txt 4、记录主机SN,ftp下explorer以及SRAS工具生成的txt文件,IC信息,签回文档。
