Chinaunix首页 | 论坛 | 博客
  • 博客访问: 649074
  • 博文数量: 128
  • 博客积分: 265
  • 博客等级: 二等列兵
  • 技术积分: 1464
  • 用 户 组: 普通用户
  • 注册时间: 2011-09-27 20:44
个人简介

just do it

文章分类

全部博文(128)

文章存档

2023年(1)

2020年(1)

2019年(1)

2018年(3)

2017年(6)

2016年(17)

2015年(16)

2014年(39)

2013年(34)

2012年(10)

分类: SOLARIS

2013-11-19 22:25:42

前几天升级一组补丁,导致Sun Fire 4800所有的domain的日期不正常,出现时间跳跃,时间会往下走.一天会慢十多个钟.隔几天竟会慢一个多月.多处查找资料,sun网站上查明证实是SC bug. 由于计划升级SC Firmware.

我将升级过程记录下来,供大家分享。具体操作如下:


升级前准备:
下载SF4800 SC Firmware升级补丁  114526-01.jar  
请将保存到solaris 系统根目录下,并用unzip解压该文件,该服务器要开通FTP服务因后升级要通过FTP来传输文件。
#upzip 114526-01.jar
该文件有下列文件:
bash-2.05# ls
Install.info
LEGAL_LICENSE.TXT
README.114526-01
Sun_Fire_Entry-Level_Midrange_System_Administration_Guide.pdf
Sun_Fire_Entry-Level_Midrange_System_Controller_Command_Reference_Manual.pdf
Sun_Fire_Entry-Level_Midrange_System_Firmware_5.19.0_Release_Notes.pdf
Sun_Fire_Midrange_System_Controller_Command_Reference_Manual.pdf
Sun_Fire_Midrange_Systems_Firmware_5.19.0_Release_Notes.pdf
Sun_Fire_Midrange_Systems_Platform_Administration_Manual.pdf
copyright
lw8cpu.flash
lw8pci.flash
sgcpu.flash
sgiowci.flash
sgpci.flash
sgrtos.flash
sgsc.flash
bash-2.05#



查看升级前的SC、主板、IO板的有关信息:
sf4800-sc1:SC> showsc -v

SC: SSC1  
Main System Controller
SC Failover: disabled
Clock failover enabled.

SC date: Tue Dec 27 13:10:20 GMT+08:00 2005
         Custom                        GMT+8     
SC uptime: 528 days 13 hours 38 minutes 38 seconds

ScApp version: 5.15.2
Version build: 2.0
Version String: 5.15.2
RTOS version: 31

SC POST diag level: off

Clock source is: 75MHz

sf4800-sc1:SC>
sf4800-sc1:SC>showboards -p version -v

Component   Segment Compatible In Date       Time  Build Version               
---------   ------- ---------- -- ----       ----  ----- -------               
SSC1/FP0    -       -          -  -          -     -     RTOS version: 31      
SSC1/FP1    ScApp   Reference  12 08/04/2003 10:31 2.0   5.15.2                 
SSC1/FP1    Ver     -          -  08/04/2003 10:31 2.0   5.15.2                 
/N0/IB6/FP0 iPOST   Yes        12 08/04/2003 10:28 2.0   5.15.2                 
/N0/IB6/FP0 Ver     -          -  08/04/2003 10:29 2.0   5.15.2                 
/N0/SB2/FP0 POST    Yes        12 09/30/2003 23:01 10.2  5.15.3                 
/N0/SB2/FP0 OBP     Yes        12 09/30/2003 23:01 10.2  5.15.3                 
/N0/SB2/FP0 Ver     -          -  09/30/2003 23:01 10.2  5.15.3                 
/N0/SB2/FP1 POST    Yes        12 09/30/2003 23:01 10.2  5.15.3                 
/N0/SB2/FP1 OBP     Yes        12 09/30/2003 23:01 10.2  5.15.3                 
/N0/SB2/FP1 Ver     -          -  09/30/2003 23:01 10.2  5.15.3                 
/N0/IB8/FP0 iPOST   Yes        12 08/04/2003 10:28 2.0   5.15.2                 
/N0/IB8/FP0 Ver     -          -  08/04/2003 10:29 2.0   5.15.2                 
/N0/SB4/FP0 POST    Yes        12 08/04/2003 10:27 2.0   5.15.2                 
/N0/SB4/FP0 OBP     Yes        12 08/04/2003 10:27 2.0   5.15.2                 
/N0/SB4/FP0 Ver     -          -  08/04/2003 10:28 2.0   5.15.2                 
/N0/SB4/FP1 POST    Yes        12 08/04/2003 10:27 2.0   5.15.2                 
/N0/SB4/FP1 OBP     Yes        12 08/04/2003 10:27 2.0   5.15.2                 
/N0/SB4/FP1 Ver     -          -  08/04/2003 10:28 2.0   5.15.2                 

sf4800-sc1:SC> showboards -p v

Component   Compatible Version               
---------   ---------- -------               
SSC1        Reference  5.15.2                 
/N0/IB6     Yes        5.15.2                 
/N0/SB2     Yes        5.15.3                 
/N0/IB8     Yes        5.15.2                 
/N0/SB4     Yes        5.15.2                 

sf4800-sc1:SC> showboards -p cpu -v

Component   Cpu Mask  Description                                             
---------   --------  -----------                                             
/N0/SB2/P0  6.0       UltraSPARC-III++, 1200MHz, 8M ECache                     
/N0/SB2/P1  6.0       UltraSPARC-III++, 1200MHz, 8M ECache                     
/N0/SB2/P2  6.0       UltraSPARC-III++, 1200MHz, 8M ECache                     
/N0/SB2/P3  6.0       UltraSPARC-III++, 1200MHz, 8M ECache                     
/N0/SB4/P0  6.0       UltraSPARC-III++, 1200MHz, 8M ECache                     
/N0/SB4/P1  6.0       UltraSPARC-III++, 1200MHz, 8M ECache                     
/N0/SB4/P2  6.0       UltraSPARC-III++, 1200MHz, 8M ECache                     
/N0/SB4/P3  6.0       UltraSPARC-III++, 1200MHz, 8M ECache                     

sf4800-sc1:SC>
sf4800-sc1:SC> showboards

Slot     Pwr Component Type                 State      Status     Domain
----     --- --------------                 -----      ------     ------
SSC1     On  System Controller              Main       Passed     -        
SSC0     On  System Controller              Spare      -          -        
ID0      On  Sun Fire 4800 Centerplane      -          OK         -        
PS0      On  A153 Power Supply              -          OK         -        
PS1      On  A153 Power Supply              -          OK         -        
PS2      Off No Grid Power                  -          -          -        
FT0      On  Fan Tray                       Low Speed  OK         -        
FT1      On  Fan Tray                       Low Speed  OK         -        
FT2      On  Fan Tray                       Low Speed  OK         -        
RP0      On  Repeater Board                 -          OK         -
RP2      On  Repeater Board                 -          OK         -
/N0/SB2  On  CPU Board V2                   Active     Passed     A
/N0/SB4  On  CPU Board V2                   Active     Passed     B
/N0/IB6  On  PCI I/O Board                  Active     Passed     A
/N0/IB8  On  PCI I/O Board                  Active     Passed     B

sf4800-sc1:SC>



升级步骤
1
、先将所有Domain全部关闭。
solaris系统中执行init 5 关机命令,注意不要执行setkeyswitch off命令,因升级是要求各主板、IO板之类全部处于通电状态。
1
1备份以前的Firmware数据
升级前先备份以前的Firmware数据,以防升级失败再restoreconfig恢复回来。
sf4800-sc1:SC> dumpconfig –f  
Enter password:
Enter password again:
Created:
Created:
sf4800-sc1:SC>

2
、确定您有几块SC板。
我的机器有两块SC,升级时先从Spare System Controller (我的是SSC0)开始升级,然后再升级Main System Controller (我的是SSC1,如果您只有一块SC板就可直接从Main System Controller开始升级。
3
、升级Spare System Controller (我的是SSC0 –Ip地址172.16.5.125
telnet 172.16.5.125  (telnet
到您的Spare System ControllerIP地址)

System Controller 'sf4800-sc0':

    Type  0  for Platform Shell

    Input: 0

Platform Shell - Spare System Controller

查看Spare System Controller的有关信息
sf4800-sc0:sc> showsc -v

SC: SSC0
Spare System Controller
SC Failover: disabled

SC date: Tue Dec 27 13:10:20 GMT+08:00 2005
         Custom                        GMT+8     
SC uptime: 528 days 13 hours 38 minutes 38 seconds

ScApp version: 5.15.2
Version build: 2.0
Version String: 5.15.2
RTOS version: 31

SC POST diag level: min

Clock source is: 75MHz

31开始升级

sf4800-sc0:sc> flashupdate -f scapp rtos

As part of this update, the system controller will automatically reboot.
RTOS will be upgraded automatically during the next boot.
ScApp will be upgraded automatically during the next boot.
Rebooting will interrupt any current operations.
This includes keyswitch changes, Solaris reboots
and all current connections.
Do you want to continue? [no] yes
Waiting for critical processes to finish.  This may take a while.
Critical processes have finished.
No boards can be updated.

Rebooting the SC to automatically complete the upgrade.
Rebooting. All telnet connections closed. Reestablish any needed connections.

3
2升级时间约6分钟,此会话就中断。
执行ping IP 地址看它是否已起来,如果执行ping 有反映后再待1-2分钟后即可telnet 上去查看是否已升级成功。
C:\telnet  172.16.5.125
System Controller 'sf4800-sc0':

    Type  0  for Platform Shell
    Input: 0

Platform Shell - Spare System Controller
sf4800-sc0:sc> showsc -v

SC: SSC0
Spare System Controller
SC Failover: disabled

SC date: Thu Dec 29 11:18:49 GMT+08:00 2005
         Custom                        GMT+08:00
SC uptime: 1 hour 21 minutes 12 seconds

ScApp version: 5.19.0 Build_17.1
Version build: 17.1
Version String: 5.19.0
RTOS version: 43

SC POST diag level: min

Clock source is: 75MHz

sf4800-sc0:sc>

 

4、升级Main System Controller (我的是SSC1 –IP地址:172.16.5.128

4
1查看SC的信息

sf4800-sc0:sc>
System Controller 'sf4800-sc1':

    Type  0  for Platform Shell

    Type  1  for domain A console
    Type  2  for domain B console
    Type  3  for domain C console
    Type  4  for domain D console

    Input: 0

Platform Shell

sf4800-sc1:SC>
sf4800-sc1:SC>
sf4800-sc1:SC>
sf4800-sc1:SC> showsc -v

SC: SSC1
Main System Controller
SC Failover: disabled
Clock failover enabled.

SC date: Thu Dec 29 09:47:14 GMT+08:00 2005
         Custom                        GMT+08:00
SC uptime: 1 minute 49 seconds

ScApp version: 5.19.0 Build_17.1
Version build: 17.1
Version String: 5.19.0
RTOS version: 43

SC POST diag level: off

Clock source is: 75MHz

sf4800-sc1:SC> showboards -p v

Component   Compatible Version               
---------   ---------- -------               
SSC1        Reference  5.19.0 Build_17.1      
/N0/IB6     Yes        5.15.2                 
/N0/SB2     Yes        5.15.3                 
/N0/IB8     Yes        5.15.2                 
/N0/SB4     Yes        5.15.2                 

sf4800-sc1:SC> showboards -p version -v

Component   Segment Compatible In Date       Time  Build Version               
---------   ------- ---------- -- ----       ----  ----- -------               
SSC1/FP0    -       -          -  -          -     -     RTOS version: 43      
SSC1/FP1    ScApp   Reference  12 06/30/2005 14:23 17.1  5.19.0                 
SSC1/FP1    Ver     -          -  06/30/2005 14:23 17.1  5.19.0 Build_17.1      
/N0/IB6/FP0 iPOST   Yes        12 08/04/2003 10:28 2.0   5.15.2                 
/N0/IB6/FP0 Ver     -          -  08/04/2003 10:29 2.0   5.15.2                 
/N0/SB2/FP0 POST    Yes        12 09/30/2003 23:01 10.2  5.15.3                 
/N0/SB2/FP0 OBP     Yes        12 09/30/2003 23:01 10.2  5.15.3                 
/N0/SB2/FP0 Ver     -          -  09/30/2003 23:01 10.2  5.15.3                 
/N0/SB2/FP1 POST    Yes        12 09/30/2003 23:01 10.2  5.15.3                 
/N0/SB2/FP1 OBP     Yes        12 09/30/2003 23:01 10.2  5.15.3                 
/N0/SB2/FP1 Ver     -          -  09/30/2003 23:01 10.2  5.15.3                 
/N0/IB8/FP0 iPOST   Yes        12 08/04/2003 10:28 2.0   5.15.2                 
/N0/IB8/FP0 Ver     -          -  08/04/2003 10:29 2.0   5.15.2                 
/N0/SB4/FP0 POST    Yes        12 08/04/2003 10:27 2.0   5.15.2                 
/N0/SB4/FP0 OBP     Yes        12 08/04/2003 10:27 2.0   5.15.2                 
/N0/SB4/FP0 Ver     -          -  08/04/2003 10:28 2.0   5.15.2                 
/N0/SB4/FP1 POST    Yes        12 08/04/2003 10:27 2.0   5.15.2                 
/N0/SB4/FP1 OBP     Yes        12 08/04/2003 10:27 2.0   5.15.2                 
/N0/SB4/FP1 Ver     -          -  08/04/2003 10:28 2.0   5.15.2                 

sf4800-sc1:SC> showboards -p cpu -v

Component   Cpu Mask  Description                                             
---------   --------  -----------                                             
/N0/SB2/P0  6.0       UltraSPARC-III+, 1200MHz, 8M ECache                     
/N0/SB2/P1  6.0       UltraSPARC-III+, 1200MHz, 8M ECache                     
/N0/SB2/P2  6.0       UltraSPARC-III+, 1200MHz, 8M ECache                     
/N0/SB2/P3  6.0       UltraSPARC-III+, 1200MHz, 8M ECache                     
/N0/SB4/P0  6.0       UltraSPARC-III+, 1200MHz, 8M ECache                     
/N0/SB4/P1  6.0       UltraSPARC-III+, 1200MHz, 8M ECache                     
/N0/SB4/P2  6.0       UltraSPARC-III+, 1200MHz, 8M ECache                     
/N0/SB4/P3  6.0       UltraSPARC-III+, 1200MHz, 8M ECache

 

42升级Main System Controller  SSC1

sf4800-sc1:SC> flashupdate -f all rtos

As part of this update, the system controller will automatically reboot.
RTOS will be upgraded automatically during the next boot.
ScApp will be upgraded automatically during the next boot.

After this update you must reboot each active domain that was upgraded.

Rebooting will interrupt any current operations.
This includes keyswitch changes, Solaris reboots
and all current connections.
Do you want to continue? [no] yes
Waiting for critical processes to finish.  This may take a while.
Critical processes have finished.

Retrieving:
Validating  .................. Done

Programming PROM /N0/SB2/FP0
Erasing     .................. Done
Programming .................. Done
Verifying   .................. Done

Programming PROM /N0/SB2/FP1
Erasing     .................. Done
Programming .................. Done
Verifying   .................. Done

Programming PROM /N0/SB4/FP0
Erasing     .................. Done
Programming .................. Done
Verifying   .................. Done

Programming PROM /N0/SB4/FP1
Erasing     .................. Done
Programming .................. Done
Verifying   .................. Done

Retrieving:
Validating  ...... Done

Programming PROM /N0/IB6/FP0
Erasing     ...... Done
Programming ...... Done
Verifying   ...... Done

Programming PROM /N0/IB8/FP0
Erasing     ...... Done
Programming ...... Done
Verifying   ...... Done

Rebooting the SC to automatically complete the upgrade.

Rebooting. All network client connections closed. Reestablish any needed connections.

4
3升级后自动重启,需时约8分钟.
Ping 172.16.5.128
有反应后再等2分钟。再telnet 连接上来查看升级是否成功,版本号是否已更新

4
4查看升级成功信息
System Controller 'sf4800-sc1':

    Type  0  for Platform Shell

    Type  1  for domain A console
    Type  2  for domain B console
    Type  3  for domain C console
    Type  4  for domain D console

    Input: 0

Platform Shell

sf4800-sc1:SC> showsc

SC: SSC1
Main System Controller
SC Failover: disabled
Clock failover enabled.

SC date: Thu Dec 29 11:42:04 GMT+08:00 2005
SC uptime: 1 hour 36 minutes 55 seconds

ScApp version: 5.19.0 Build_17.1
RTOS version: 43

sf4800-sc1:SC> showboards -p version -v

Component   Segment Compatible In Date       Time  Build Version
---------   ------- ---------- -- ----       ----  ----- -------
SSC1/FP0    -       -          -  -          -     -     RTOS version: 4
SSC1/FP1    ScApp   Reference  12 06/30/2005 14:23 17.1  5.19.0
SSC1/FP1    Ver     -          -  06/30/2005 14:23 17.1  5.19.0 Build_17
/N0/IB6/FP0 iPOST   Yes        12 06/30/2005 14:10 17.1  5.19.0
/N0/IB6/FP0 Ver     -          -  06/30/2005 14:20 17.1  5.19.0 Build_17
/N0/SB2/FP0 POST    Yes        12 06/30/2005 14:08 17.1  5.19.0
/N0/SB2/FP0 OBP     Yes        12 06/30/2005 14:07 17.1  5.19.0
/N0/SB2/FP0 Ver     -          -  06/30/2005 14:18 17.1  5.19.0 Build_17
/N0/SB2/FP1 POST    Yes        12 06/30/2005 14:08 17.1  5.19.0
/N0/SB2/FP1 OBP     Yes        12 06/30/2005 14:07 17.1  5.19.0
/N0/SB2/FP1 Ver     -          -  06/30/2005 14:18 17.1  5.19.0 Build_17
/N0/IB8/FP0 iPOST   Yes        12 06/30/2005 14:10 17.1  5.19.0
/N0/IB8/FP0 Ver     -          -  06/30/2005 14:20 17.1  5.19.0 Build_17
/N0/SB4/FP0 POST    Yes        12 06/30/2005 14:08 17.1  5.19.0
/N0/SB4/FP0 OBP     Yes        12 06/30/2005 14:07 17.1  5.19.0
/N0/SB4/FP0 Ver     -          -  06/30/2005 14:18 17.1  5.19.0 Build_17
/N0/SB4/FP1 POST    Yes        12 06/30/2005 14:08 17.1  5.19.0
/N0/SB4/FP1 OBP     Yes        12 06/30/2005 14:07 17.1  5.19.0
/N0/SB4/FP1 Ver     -          -  06/30/2005 14:18 17.1  5.19.0 Build_17

sf4800-sc1:SC> showboards

Slot     Pwr Component Type                 State      Status     Domain
----     --- --------------                 -----      ------     ------
SSC1     On  System Controller              Main       Passed     -
SSC0     On  Present                        Spare      -          -
ID0      On  Sun Fire 4800 Centerplane      -          OK         -
PS0      On  A153 Power Supply              -          OK         -
PS1      On  A153 Power Supply              -          OK         -
PS2      Off No Grid Power                  -          -          -
FT0      On  Fan Tray                       Low Speed  OK         -
FT1      On  Fan Tray                       Low Speed  OK         -
FT2      On  Fan Tray                       Low Speed  OK         -
RP0      On  Repeater Board                 -          OK         -
RP2      On  Repeater Board                 -          OK         -
/N0/SB2  On  CPU Board V2                   Active     Passed     A
/N0/SB4  On  CPU Board V2                   Active     Passed     B
/N0/IB6  On  PCI I/O Board                  Active     Passed     A
/N0/IB8  On  PCI I/O Board                  Active     Passed     B

sf4800-sc1:SC>
4
5关机、开机、引导系统
查看信息正确后,分别执行setkeyswitch off关闭所有domain再执行setkeyswitch on 即可开机正常运行了。

5
、备份升级后的Firmware数据
sf4800-sc1:SC> dumpconfig –f  

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

上一篇:-rw-r--r-- 含义

下一篇:SUN SC 卡命令

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