Sun Cluster 系統管理指南 (適用於 Solaris 作業系統)

如何移除 Sun Cluster 修補程式

如有必要,您可以退出 (移除) Sun Cluster 修補程式。

  1. 在您要移除修補程式的節點上成為超級使用者。

  2. 列示要移除修補之節點上的資源群組與裝置群組。


    # scrgadm -pv
    # scstat
    

  3. 將所有的資源群組、資源以及裝置群組從要移除修補程式的節點上,切換至其他叢集成員。


    # scswitch -S -h node[,...]
    

    -S

    從指定的節點撤出所有的裝置服務與資源群組。

    -h node[,...]

    指定要從此節點切換出資源群組及裝置群組。

  4. 關閉節點。


    # shutdown -g0 -y -i0 message
    

    -g0

    指定關機前的等待秒數, 預設的寬限期為 60 秒。

    -y

    對確認提示指定回答 yes (是)。

    -i0

    指定初始狀態為 0。 在以 SPARC 為基礎的系統上使用此選項使節點顯示 OpenBoot PROM ok 提示符號,或在以 x86 為基礎的系統上使節點進入啟動子系統。

    message

    指定要廣播的警告訊息。 如果 message 含有多個字,請使用引號括住。

  5. 以非叢集單一使用者模式啟動節點。

    • SPARC︰


      ok boot -sx
      

    • x86︰


                            <<< Current Boot Parameters >>>
      Boot path: /pci@0,0/pci8086,2545@3/pci8086,1460@1d/pci8086,341a@7,1/
      sd@0,0:a
      Boot args:
      
      Type    b [file-name] [boot-flags] <ENTER>  to boot with options
      or      i <ENTER>                           to enter boot interpreter
      or      <ENTER>                             to boot with defaults
      
                        <<< timeout in 5 seconds >>>
      Select (b)oot or (i)nterpreter: b -sx
      

  6. 移除修補程式。


    # patchrm patch-id
    

    patch-id

    指定修補程式的修補程式編號。

  7. 重新啟動節點。


    # reboot
    

  8. 確認成功移除修補程式。


    # showrev -p | grep patch-id
    

  9. 確認節點與叢集運作正常。

  10. 對其餘的叢集節點重複 步驟 1步驟 9

  11. 在需要時可切換資源群組、資源及裝置群組 (選用的)。

    重新啟動所有的節點後,最後一個重新啟動的節點不會使資源群組及裝置群組連線。


    # scswitch -z -Ddevice-group[,...]  -h node[,...]
    # scswitch -z -g resource-group[,...] -h node[,...]
    

    -z

    指定對主要資源群組或裝置群組所做的變更。

    -h node[,...]

    指定您要用來轉換資源群組及裝置群組的節點。

    -D

    將指定的裝置群組切換至 -h 選項所識別的節點上。

    -g

    將指定的資源群組切換至 -h 選項所識別的節點上。 如果未指定 -h,資源群組將會離線。

範例—移除 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 -g0 -y -i0 "Rebooting down node for maintenance"
...

以非叢集模式啟動節點。


...
# patchrm 234567-05
...
# reboot
...
# pkgchk -v 234567-05
...
# scswitch -z -D dg-schost-1 -h phys-schost-1
# scswitch -z -g schost-sa-1 -h phys-schost-1