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

Procedure如何從裝置群組移除節點 (Solaris Volume Manager)

使用此程序從 Solaris Volume Manager 裝置群組的潛在主要節點清單中,移除一個叢集節點。請為每一個您想要移除節點的裝置群組,重複執行 metaset 指令。


注意 – 注意 –

在叢集之外啟動的叢集節點上,如果其他節點是使用中叢集成員且其中至少有一個擁有磁碟組時,請勿執行 metaset —s setname —f -t


此程序提供長形式的 Sun Cluster 指令。大多數指令還有簡短的形式。除了指令名稱有長形式和短形式之分外,指令本身是相同的。如需指令及其短形式的清單,請參閱附錄 ASun Cluster 以物件為導向的指令

  1. 驗證該節點是否仍是裝置群組的成員,以及該裝置群組是否為 Solaris Volume Manager 裝置群組。

    SDS/SVM 裝置群組類型表示一個 Solaris Volume Manager 裝置群組。


    phys-schost-1% cldevicegroup show devicegroup
    
  2. 判斷哪一個節點是裝置群組目前的主要節點。


    # cluster status -t devicegroup
    
  3. 在目前擁有您要修改之裝置群組的節點上成為超級使用者。

  4. 從裝置群組移除節點的主機名稱。


    # metaset -s setname -d -h nodelist
    
    -s setname

    指定裝置群組名稱。

    -d

    從裝置群組刪除由 -h 標示的節點。

    -h nodelist

    指定將被移除的節點名稱或節點。


    備註 –

    更新可能需要數分鐘才能夠完成。


    如果指令失敗,則將 -f (強制) 選項加入指令中。


    # metaset -s setname -d -f -h nodelist
    
  5. 對要從其中將節點作為潛在主要節點移除的每個裝置群組重複執行步驟 4

  6. 驗證節點是否已從裝置群組中移除。

    裝置群組名稱會與使用 metaset 指定的磁碟組名稱相符。


    phys-schost-1% cldevicegroup list -v devicegroup
    

範例 5–22 從裝置群組 (Solaris Volume Manager) 移除節點

下列範例顯示如何從裝置群組配置移除主機名稱 phys-schost-2 。這個範例刪除成為指定裝置群組中潛在主要節點的 phys-schost-2 。執行 cldevicegroup show 指令來驗證是否移除節點。檢查移除的節點不再顯示於螢幕文字中。


[Determine the Solaris Volume Manager
 device group for the node:]
# cldevicegroup show dg-schost-1
=== Device Groups ===                          

Device Group Name:                    dg-schost-1
  Type:                                 SVM
  failback:                             no
  Node List:                            phys-schost-1, phys-schost-2
  preferenced:                          yes
  numsecondaries:                       1
  diskset name:                         dg-schost-1
[Determine which node is the current primary for the device group:]
# cldevicegroup status dg-schost-1
=== Cluster Device Groups ===

--- Device Group Status ---

Device Group Name    Primary         Secondary      Status
-----------------    -------         ---------      ------
dg-schost-1          phys-schost-1   phys-schost-2  Online
[Become superuser on the node that currently owns the device group.]
[Remove the host name from the device group:]
# metaset -s dg-schost-1 -d -h phys-schost-2
[Verify removal of the node:]
phys-schost-1% cldevicegroup list -v dg-schost-1
=== Cluster Device Groups ===

--- Device Group Status ---

Device Group Name    Primary         Secondary      Status
-----------------    -------         ---------      ------
dg-schost-1          phys-schost-1   -              Online