Mit dem scsetup(1M)-Dienstprogramm können Sie einer Knotenliste für ein vorhandenes Quorum-Gerät einen Knoten hinzufügen bzw. diesen daraus entfernen. Um die Knotenliste eines Quorum-Geräts zu ändern, müssen Sie das Quorum-Gerät entfernen, die realen Verbindungen zwischen Knoten und dem entfernten Quorum-Gerät ändern und das Quorum-Gerät wieder der Cluster-Konfiguration hinzufügen. Beim Hinzufügen eines Quorum-Geräts konfiguriert scconf(1M) für alle mit der Platte verbundenen Knoten automatisch die Knoten-Platten-Pfade.
Melden Sie sich bei einem beliebigen Cluster-Knoten als Superbenutzer an.
Bestimmen Sie den Namen des Quorum-Geräts, das Sie ändern möchten.
# scconf -p | grep Quorum |
Starten Sie das scsetup-Dienstprogramm.
# scsetup |
Das Hauptmenü wird angezeigt.
Geben Sie die Nummer ein, die der Quorum-Option entspricht.
Das Quorum-Menü wird angezeigt.
Geben Sie die Nummer ein, die der Option zum Entfernen eines Quorum-Geräts entspricht.
Befolgen Sie die Anweisungen. Sie werden aufgefordert, den Namen der zu entfernenden Platte anzugeben.
Fügen Sie die realen Verbindungen zwischen Knoten und Quorum-Gerät hinzu bzw. löschen Sie diese.
Geben Sie die Nummer ein, die der Option zum Hinzufügen eines Quorum-Geräts entspricht.
Befolgen Sie die Anweisungen. Sie werden aufgefordert, den Namen der Platte anzugeben, die als Quorum-Gerät verwendet werden soll.
Überprüfen Sie, ob das Quorum-Gerät hinzugefügt wurde.
# scstat -q |
Das nachstehende Beispiel zeigt die Verwendung des scsetup-Dienstprogramms, um einer Knotenliste für ein Quorum-Gerät Knoten hinzuzufügen bzw. diese daraus zu löschen. In diesem Beispiel trägt das Quorum-Gerät den Namen d2, und das Verfahren fügt der Knotenliste einen weiteren Knoten hinzu.
[Become superuser on any node in the cluster. ] [Determine the quorum device name:] # scconf -p | grep Quorum Quorum devices: d2 Quorum device name: d2 Quorum device votes: 1 Quorum device enabled: yes Quorum device name: /dev/did/rdsk/d2s2 Quorum device hosts (enabled): phys-schost-1 phys-schost-2 Quorum device hosts (disabled): [Execute the utility:] # scsetup 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: Example: quorum device name d2 [Verify that the scconf command completed successfully:] scconf -r -q globaldev=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: Example: quorum device name d2 [Verify that the scconf command completed successfully:] scconf -a -q globaldev=d2 Command completed successfully. Quit the scsetup 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.] # scconf -p | grep Quorum Quorum devices: d2 Quorum device name: d2 Quorum device votes: 2 Quorum device enabled: yes Quorum device name: /dev/did/rdsk/d2s2 Quorum device hosts (enabled): phys-schost-1 phys-schost-2 phys-schost-3 Quorum device hosts (disabled): [Verify that the modified quorum device is online.] # scstat -q -- Quorum Votes by Device -- Device Name Present Possible Status ----------- ------- -------- ------ Device votes: /dev/did/rdsk/d2s2 1 1 Online [Verify the quorum device is removed:] # scstat -q -- Quorum Summary -- Quorum votes possible: 4 Quorum votes needed: 3 Quorum votes present: 4 -- Quorum Votes by Node -- Node Name Present Possible Status --------- ------- -------- ------ Node votes: phys-schost-1 1 1 Online Node votes: phys-schost-2 1 1 Online -- Quorum Votes by Device -- Device Name Present Possible Status ----------- ------- -------- ------ Device votes: /dev/did/rdsk/d3s2 1 1 Online Device votes: /dev/did/rdsk/d4s2 1 1 Online |