Sun Cluster 3.0 系統管理手冊

3.4.4.1 範例-從磁碟裝置群組移除節點(SDS)

以下範例顯顯示如何從磁碟裝置群組(中繼組)移除主機名稱以及驗證節點是否已經從磁碟裝置群組移除。儘管範例中顯示已從單一磁碟裝置群組中移除節點,不過,節點也可同時屬於一個以上的磁碟裝置群組。對於各個您想從其中移除節點 的磁碟裝置群組,請重覆此項 metaset 指令。


[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 all disk device groups:]
# metaset -s dg-schost-1 -d -f -h phys-schost-2
[Verify removal of the node:]
# scstat -D
  -- Device Group Servers --
                       Device Group  Primary       Secondary
                       ------------  -------       ---------
  Device group servers: dg-schost-1  phys-schost-1  -