您可以使用 clsetup(1CL) 公用程式,在現有法定裝置的節點清單中增加或移除節點。若要修改法定裝置的節點清單,您必須移除法定裝置,修改節點至已移除裝置的實體連接,然後再次將法定裝置增加至叢集配置。在增加法定裝置後,clquorum(1CL) 會自動將節點至磁碟的路徑配置給所有附接至磁碟的節點。
此程序提供長形式的 Sun Cluster 指令。大多數指令還有簡短的形式。除了指令名稱有長形式和短形式之分外,指令本身是相同的。如需指令及其短形式的清單,請參閱附錄 ASun Cluster 以物件為導向的指令。
在叢集的任一節點上成為超級使用者或成為提供 solaris.cluster.modify RBAC 授權的角色。
確認您要修改的法定裝置名稱。
# clquorum list -v |
啟動 clsetup 公用程式。
# clsetup |
顯示 Main Menu。
鍵入與 [Quorum] 選項相對應的數字。
顯示 Quorum Menu。
鍵入與移除法定裝置的選項相對應的數字。
依照指示進行。系統會要求您輸入要移除的磁碟名稱。
新增或刪除到法定裝置的實體節點連線。
鍵入與增加法定裝置的選項相對應的數字。
依照指示進行。系統會要求您輸入用來做為法定裝置的磁碟名稱。
確認法定裝置新增成功。
# clquorum list -v |
以下範例顯示如何使用 clsetup 公用程式在法定裝置節點清單上增加或刪除節點。在此範例中,法定裝置名稱為 d2,而此程序的最後結果是將另一個節點增加至法定裝置節點清單。
[Become superuser or assume a role that provides solaris.cluster.modify RBAC authorization on
any node in the cluster.]
[Determine the quorum device name:]
# clquorum list -v
Quorums Type
------- -----
d2 scsi
sc-phys-schost-1 node
sc-phys-schost-2 node
sc-phys-schost-3 node
[Start the clsetup utility:]
# clsetup
[Type the number that corresponds with the quorum option.]
.
[Type the number that corresponds with the option to remove a quorum device.]
.
[Answer the questions when prompted.]
[You will need the following information:]
Information: Example:
Quorum Device Name: d2
[Verify that the clquorum command completed successfully:]
clquorum remove d2
Command completed successfully.
[Type the number that corresponds with the Quorum option.]
.
[Type the number that corresponds with the option to add a quorum device.]
.
[Answer the questions when prompted.]
[You will need the following information:]
Information Example:
quorum device name d2
[Verify that the clquorum command was completed successfully:]
clquorum add d2
Command completed successfully.
Quit the clsetup utility.
[Verify that the correct nodes have paths to the quorum device.
In this example, note that phys-schost-3 has been added to the
enabled hosts list.]
# clquorum show d2 | grep Hosts
=== Quorum Devices ===
Quorum Device Name: d2
Hosts (enabled): phys-schost-1, phys-schost-2, phys-schost-3
[Verify that the modified quorum device is online.]
# clquorum status d2
=== Cluster Quorum ===
--- Quorum Votes by Device ---
Device Name Present Possible Status
----------- ------- -------- ------
d2 1 1 Online[Verify the quorum device is removed:]
# clquorum list -v
Quorums Type
------- -----
sc-phys-schost-1 node
sc-phys-schost-2 node
sc-phys-schost-3 node
|