Sun Cluster 軟體安裝指南 (適用於 Solaris 作業系統)

Procedure如何從失敗的雙分割區升級回復

若在升級期間遇到了無法回復的錯誤,請執行此程序來取消升級。


備註 –

您在升級遇到無法回復的錯誤後,將無法重新啟動雙分割區升級。


  1. 成為叢集中每一個節點的超級使用者。

  2. 啟動每個節點進入非叢集模式。

    • 在 SPARC 架構的系統上,執行下列指令:


      ok boot -x
      
    • 在 x86 架構的系統上,執行下列指令:

      1. 在 GRUB 功能表上,使用箭頭鍵選取適當的 Solaris 項目,然後輸入 e 編輯其指令。

        GRUB 功能表會以類似以下的方式顯示:


        GNU GRUB version 0.95 (631K lower / 2095488K upper memory)
        +-------------------------------------------------------------------------+
        | Solaris 10 /sol_10_x86                                                  |
        | Solaris failsafe                                                        |
        |                                                                         |
        +-------------------------------------------------------------------------+
        Use the ^ and v keys to select which entry is highlighted.
        Press enter to boot the selected OS, 'e' to edit the
        commands before booting, or 'c' for a command-line.

        如需得知更多以 GRUB 為基礎的啟動之相關資訊,請參閱「System Administration Guide: Basic Administration 」中的「System Administration Guide: Basic Administration」中的第 11 章「GRUB Based Booting (Tasks)」

      2. 在啟動參數畫面,使用箭頭鍵選取 kernel 項目並輸入 e 來編輯該項目。

        GRUB 啟動參數畫面會以類似以下的方式顯示:


        GNU GRUB version 0.95 (615K lower / 2095552K upper memory)
        +----------------------------------------------------------------------+
        | root (hd0,0,a)                                                       |
        | kernel /platform/i86pc/multiboot                                     |
        | module /platform/i86pc/boot_archive                                  |
        +----------------------------------------------------------------------+
        Use the ^ and v keys to select which entry is highlighted.
        Press 'b' to boot, 'e' to edit the selected command in the
        boot sequence, 'c' for a command-line, 'o' to open a new line
        after ('O' for before) the selected line, 'd' to remove the
        selected line, or escape to go back to the main menu.
      3. 增加 -x 到指令來指定系統啟動為非叢集模式。


        [ Minimal BASH-like line editing is supported. For the first word, TAB
        lists possible command completions. Anywhere else TAB lists the possible
        completions of a device/filename. ESC at any time exits. ]
        
        grub edit> kernel /platform/i86pc/multiboot -x
        
      4. 按 Enter 接受變更,並返回啟動參數畫面。

        畫面會顯示已編輯的指令。


        GNU GRUB version 0.95 (615K lower / 2095552K upper memory)
        +----------------------------------------------------------------------+
        | root (hd0,0,a)                                                       |
        | kernel /platform/i86pc/multiboot -x                                  |
        | module /platform/i86pc/boot_archive                                  |
        +----------------------------------------------------------------------+
        Use the ^ and v keys to select which entry is highlighted.
        Press 'b' to boot, 'e' to edit the selected command in the
        boot sequence, 'c' for a command-line, 'o' to open a new line
        after ('O' for before) the selected line, 'd' to remove the
        selected line, or escape to go back to the main menu.-
      5. 輸入 b 將節點啟動為非叢集模式。


        備註 –

        對核心啟動參數指令所做的這個變更不會在系統啟動後持續。下次您重新啟動節點時,將會啟動至叢集模式。若要轉而啟動為非叢集模式,請再次執行上述步驟來增加 -x 選項到核心啟動參數指令。


  3. 在每個節點上,從安裝媒體執行升級回復程序檔。

    若節點成功升級到 Sun Cluster 3.2 軟體,您也可以從 /usr/cluster/bin 目錄執行 scinstall 指令。


    phys-schost# cd /cdrom/cdrom0/Solaris_arch/Product/sun_cluster/Solaris_ver/Tools
    phys-schost# ./scinstall -u recover
    
    -u

    指定升級。

    recover

    在開始雙分割區升級之前,復原 /etc/vfstab 檔案和 Cluster Configuration Repository (CCR) 資料庫回其原始狀態。

    回復程序會讓叢集節點處於非叢集模式。請勿將節點啟動至叢集模式。

    詳情請參閱 scinstall(1M) 線上手冊。

  4. 執行下列任一項作業。

    • 從備份復原舊的軟體,以使叢集回到其原始狀態。

    • 繼續使用標準升級方法來升級叢集上的軟體。

      此方法需要所有叢集節點在升級期間都維持在非叢集模式。請參閱表 8–1 的標準升級之對應作業。在雙分割區升級失敗之前成功完成的標準升級程序中的最後一個作業或步驟恢復升級。