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

如何從磁碟裝置群組移除節點 (Solstice DiskSuite/Solaris Volume Manager)

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

  1. 確認節點仍然是群組的成員,且群組為 SDS/SVM 裝置群組。

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


    phys-schost-1% scconf -pv | grep '(global-galileo)'
      (global-galileo) Device group type:              SDS/SVM
      (global-galileo) Device group failback enabled:  no
      (global-galileo) Device group node list:         phys-schost-1, phys-schost-2
      (global-galileo) Diskset name:                   global-galileo
    phys-schost-1%

  2. 判斷哪一個節點是裝置群組目前的主要節點。


    # scstat -D
    
  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% scconf -pv |grep   
    Device group node list:  phys-schost-1, phys-schost-2, phys-schost-1%

範例—從磁碟裝置群組移除節點 (Solstice DiskSuite/Solaris Volume Manager)

下列範例顯示如何從磁碟裝置群組配置移除主機名稱 phys-schost-2 。這個範例刪除成為指定磁碟裝置群組中潛在主要節點的 phys-schost-2 。執行 scstat- D 指令,以確認節點移除。檢查移除的節點不再顯示於螢幕文字中。


[Determine the Solstice DiskSuite/Solaris Volume Manager
 disk device group(2) for the node:]
# scconf -pv | grep Device
  Device group name:                 dg-schost-1
    Device group type:               SDS/SVM
    Device group failback enabled:   no
    Device group node list:          phys-schost-1, phys-schost-2
    Device group ordered node list:  yes
    Device group diskset name:    	         dg-schost-1
[Determine the disk device group(s) for the node:]
# scstat -D
  -- Device Group Servers --
                       Device Group  Primary        Secondary
                       ------------  -------        ---------
  Device group servers: dg-schost-1  phys-schost-1  phys-schost-2
[Become superuser.]
[Remove the hostname from the disk device group:]
# metaset -s dg-schost-1 -d -h phys-schost-2
[Verify removal of the node:]
phys-schost-1% scconf -pv |grep
 Device Group Servers --
                       Device Group  Primary        Secondary
                       ------------  -------        ---------
Device group node list: dg-schost-1, phys-schost-2,