27.4. 클러스터에서 쿼럼 장치 관리
클러스터에서 쿼럼 장치 설정을 변경하고 쿼럼 장치를 비활성화하고 쿼럼 장치를 제거하는 데 사용할 수 있는 다양한 pcs 명령이 있습니다.
쿼럼 장치 설정 변경
pcs quorum device update 명령을 사용하여 쿼럼 장치의 설정을 변경할 수 있습니다.
쿼럼 장치 모델 net 의 호스트 옵션을 변경하려면 이전 호스트와 새 호스트가 동일한 시스템인 경우 명령을 사용하여 구성을 올바르게 설정합니다.
pcs quorum device remove 및 pcs 쿼럼 장치 add
다음 명령은 쿼럼 장치 알고리즘을 lms 로 변경합니다.
[root@node1:~]# pcs quorum device update model algorithm=lms
Sending updated corosync.conf to nodes...
node1: Succeeded
node2: Succeeded
Corosync configuration reloaded
Reloading qdevice configuration on nodes...
node1: corosync-qdevice stopped
node2: corosync-qdevice stopped
node1: corosync-qdevice started
node2: corosync-qdevice started
쿼럼 장치 제거
다음 명령은 클러스터 노드에 구성된 쿼럼 장치를 제거합니다.
[root@node1:~]# pcs quorum device remove
Sending updated corosync.conf to nodes...
node1: Succeeded
node2: Succeeded
Corosync configuration reloaded
Disabling corosync-qdevice...
node1: corosync-qdevice disabled
node2: corosync-qdevice disabled
Stopping corosync-qdevice...
node1: corosync-qdevice stopped
node2: corosync-qdevice stopped
Removing qdevice certificates from nodes...
node1: Succeeded
node2: Succeeded
+ 쿼럼 장치를 제거한 후 쿼럼 장치 상태를 표시할 때 다음 오류 메시지가 표시됩니다.
+
[root@node1:~]# pcs quorum device status
Error: Unable to get quorum status: corosync-qdevice-tool: Can't connect to QDevice socket (is QDevice running?): No such file or directory
쿼럼 장치 삭제
다음 명령은 쿼럼 장치 호스트에서 쿼럼 장치를 비활성화 및 중지하고 모든 구성 파일을 삭제합니다.
[root@qdevice:~]# pcs qdevice destroy net
Stopping quorum device...
quorum device stopped
quorum device disabled
Quorum device 'net' configuration files removed