Sun Cluster 3.0 系统管理指南

7.2.4 如何移除 Sun Cluster 修补程序

在必要时,您可以撤出(移除)一个 Sun Cluster 修补程序。

  1. 成为您要从其中移除修补程序的节点上的超级用户。

  2. 列出要移除修补程序的节点上的资源组和设备组。


    # scrgadm -pv
    # scstat
    
  3. 将所有的资源组、资源和设备组从要移除修补程序的节点切换到其他群集成员。


    # scswitch -S -h node
    
    -h node

    指定将资源组和设备组切换到哪个节点。

    -S

    从指定的节点撤出所有的设备服务和资源组。

  4. 关闭节点。


    # shutdown [-y] [-g grace-period] ["message"]
    -y

    指定对确认提示回答 yes

    -g grace-period

    指定关闭前等待的时间,以秒为单位。缺省宽延期为 60 秒。

    message

    指定要广播的警告消息。如 果 message 中包含多个单词,请使用引号。

  5. 将节点引导到非群集模式。


    ok boot -x
    
  6. 移除修补程序。


    # patchrm patch-id
    
    patch-id

    指定一个给定的修补程序的修补程序号。

  7. 重新引导该节点。


    # reboot
    
  8. 检验是否已成功移除修补程序。


    # showrev -p | grep patch-id
    
  9. 检验节点和群集是否正常运行。

  10. 将所有的资源组、资源和设备组切换回去。


    # scswitch -S -h node
    
  11. 对于所有尚在运行的群集节点,重复 从步骤 1步骤 10的操作。

7.2.4.1 示例-移除 Sun Cluster 修补程序

以下示例展示移除一个 Sun Cluster 修补程序。


# scrgadm -pv
...
RG Name: schost-sa-1
...
# scstat
...
Device Group Name:																		dg-schost-1
...
# scswitch -S -h phys-schost-2
# shutdown -y -g 5 "Rebooting down node for maintenance"
...
ok boot -x
...
# patchrm 10-34567
...
# reboot
...
# pkgchk -v 10-34567
...
# scswitch -S -h phys-schost-1