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

Procedure如何在其他的叢集節點上配置 Sun Cluster 軟體 (XML)

使用 XML 叢集配置檔執行此程序來配置新叢集節點。新節點可以是執行 Sun Cluster 3.2 2/08 軟體之現有叢集節點的複本。

此程序會在新節點配置以下叢集元件:

開始之前

執行下列作業:

  1. 確認尚未在想要增加至叢集的可能節點上配置了 Sun Cluster 軟體。

    1. 在可能的節點上成為超級使用者。

    2. 判定是否已在可能的節點上配置了 Sun Cluster 軟體。


      phys-schost-new# /usr/sbin/clinfo -n
      
      • 若指令失敗,請至步驟 2

        尚未在節點上配置 Sun Cluster 軟體。您可以將可能的節點增加至叢集。

      • 若指令傳回節點 ID 編號,請至步驟 c

        已在節點配置好 Sun Cluster 軟體。在您可以增加節點到不同叢集之前,必須先移除現有的叢集配置資訊。

    3. 將可能的節點啟動至非叢集模式。

      • 在 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」中的第 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 選項到核心啟動參數指令。


    4. 從可能的節點取消配置 Sun Cluster 軟體。


      phys-schost-new# /usr/cluster/bin/clnode remove
      
  2. 若要複製執行 Sun Cluster 3.2 2/08 軟體的節點,請建立叢集配置 XML 檔案。

    1. 在要複製的叢集節點上成為超級使用者。

    2. 將現有節點配置資訊匯出到檔案。


      phys-schost# clnode export -o clconfigfile
      
      -o

      指定輸出目的地。

      clconfigfile

      叢集配置 XML 檔案的名稱。指定的檔案名稱可以是現有檔案,或者指令將建立的新檔案。

      如需得知更多資訊,請參閱「clnode(1CL) 線上手冊」。

    3. 將叢集配置 XML 檔複製到要配置為新叢集節點的可能節點。

  3. 在可能的節點上成為超級使用者。

  4. 視需要修改叢集配置 XML 檔案。

    1. 開啟叢集配置 XML 檔案進行編輯。

      • 若要複製現有叢集節點,請開啟使用 clnode export 指令所建立的檔案。

      • 若不要複製現有叢集節點,請建立新檔案。

        以出現在「clconfiguration(5CL) 線上手冊」中元素階層上的檔案為基礎。您可以在任一目錄儲存此檔案。

    2. 修改 XML 元素的值以反映您要建立的節點配置。

      請參閱「clconfiguration(5CL) 線上手冊」,以取得有關叢集配置 XML 檔案之結構與內容的詳細資訊。

  5. 驗證叢集配置 XML 檔案。


    phys-schost-new# xmllint --valid --noout clconfigfile
    
  6. 配置新叢集節點。


    phys-schost-new# clnode add -n sponsornode -i clconfigfile
    
    -n sponsornode

    指定現有的叢集成員名稱以作為新節點的贊助者。

    -i clconfigfile

    指定叢集配置 XML 檔名稱以當成輸入來源。

  7. (可選擇) 若所有的監視磁碟路徑都故障,請啟用自動節點重新啟動。

    1. 啟用自動重新啟動功能。


      phys-schost# clnode set -p reboot_on_path_failure=enabled
      
      -p

      指定要設定的特性

      reboot_on_path_failure=enable

      若至少有一個磁碟可以從叢集的不同節點存取時,指定為如果所有監視的磁碟路徑失敗時節點會重新啟動。

    2. 驗證在磁碟路徑失敗而自動重新啟動的功能已啟用。


      phys-schost# clnode show
      === Cluster Nodes ===                          
      
      Node Name:                                      node
      …
        reboot_on_path_failure:                          enabled
      …
疑難排解

配置失敗 - 如果無法將一或多個節點加入叢集,或者指定了錯誤的配置資訊,請先嘗試重新執行此程序。若上述做法無法修正問題,請在每個配置錯誤的節點執行如何取消配置 Sun Cluster 軟體來修正安裝問題的程序來將其從叢集配置中移除。您不需要解除安裝 Sun Cluster 套裝軟體。接著,重新執行此程序。

接下來的步驟

若要將節點增加至使用法定裝置的叢集,請至如何在將節點增加至叢集後更新法定裝置

否則,請至如何驗證法定配置與安裝模式