使用此程序從 Solstice DiskSuite/Solaris Volume Manager磁碟裝置群組的潛在主要節點清單中,移除一個叢集節點。 請為每一個您想要移除節點的磁碟裝置群組,重複執行 metaset 指令。
確認節點仍然是群組的成員,且群組為 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% |
判斷哪一個節點是裝置群組目前的主要節點。
# scstat -D |
在目前擁有您要修改之磁碟裝置群組的節點上成為超級使用者。
從磁碟裝置群組移除節點的主機名稱。
# metaset -s setname -d -h nodelist |
指定磁碟裝置群組名稱
從磁碟裝置群組移除含有 -h 的節點。
從可以主控磁碟裝置群組的節點清單中移除節點
更新可能需要數分鐘才能夠完成。
如果指令失敗,則將 -f ([強制]) 選項加入指令中。
# metaset -s setname -d -f -h nodelist |
對於要從中移除潛在主要節點的每個磁碟裝置群組,重複步驟 4。
確認節點已從磁碟裝置群組中移除。
磁碟裝置群組名稱會與 metaset 指定的磁碟組名稱一致。
phys-schost-1% scconf -pv |grep Device group node list: phys-schost-1, phys-schost-2, phys-schost-1% |
下列範例顯示如何從磁碟裝置群組配置移除主機名稱 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, |