30.3. Booth 티켓 제거
pcs booth ticket remove 명령을 사용하여 Booth 클러스터 티켓을 제거한 후 CIB(Cluster Information Base)에 Booth 티켓의 상태가 로드된 상태로 유지됩니다. 이는 한 사이트의 Booth 구성에서 티켓을 제거하고 pcs booth pull 명령을 사용하여 Booth 구성을 다른 사이트로 가져오는 경우에도 마찬가지입니다. 티켓 제약 조건을 제거한 후에도 티켓 제약 조건을 설정할 수 있으므로 이로 인해 티켓 제약 조건을 구성할 때 문제가 발생할 수 있습니다. 이로 인해 클러스터가 중지되거나 노드를 펜싱할 수 있습니다. RHEL 9.6 이상에서는 pcs booth ticket cleanup 명령을 사용하여 CIB에서 Booth 티켓을 제거하여 이를 방지할 수 있습니다.
사전 요구 사항
- Booth 티켓 관리자를 사용하는 다중 사이트 구성을 설정했습니다. 자세한 내용은 Pacemaker를 사용하여 다중 사이트 클러스터 구성 을 참조하십시오.
구성된 예제에서는 다음과 같은 배열을 사용합니다.
-
클러스터 1은
cluster1-node1및cluster1-node2노드로 구성됩니다. -
클러스터 2는
cluster2-node1및cluster2-node2노드로 구성됩니다. -
중재자 노드의 이름은
arbitrator-node입니다. -
이 구성에서 사용하는 Booth 티켓의 이름은
apacheticket입니다.
-
클러스터 1은
절차
Booth 티켓을 제거하려면 다음 단계를 수행합니다.
Booth 구성의 하나의 클러스터 사이트에 있는 클러스터 노드에서 다음을 수행합니다.
대기모드에서 제거하려면 티켓을 배치합니다. 이 예제에서 사용하는 티켓의 이름은apacheticket입니다.[cluster1-node1 ~]# pcs booth ticket standby apacheticketBooth 구성에서 티켓을 제거합니다.
[cluster1-node1 ~]# pcs booth ticket remove apacheticketBooth 구성을 현재 클러스터의 모든 노드와 동기화합니다.
[cluster1-node1 ~]# pcs booth sync현재 클러스터에서 Booth 리소스를 다시 시작합니다.
[cluster1-node1 ~]# pcs booth restart현재 클러스터의 CIB에서 티켓을 제거합니다.
[cluster1-node1 ~]# pcs booth ticket cleanup apacheticket
Booth 구성의 나머지 각 클러스터 사이트에 있는 클러스터 노드에서 다음을 수행합니다.
대기모드에서 제거하려면 티켓을 배치합니다.[cluster2-node1 ~]# pcs booth ticket standby apacheticket업데이트된 구성이 있는 노드에서 Booth 구성 파일을 다운로드합니다.
[cluster2-node1 ~]# pcs booth pull cluster1-node1Booth 구성을 현재 클러스터의 모든 노드와 동기화합니다.
[cluster2-node1 ~]# pcs booth sync현재 클러스터에서 Booth 리소스를 다시 시작합니다.
[cluster2-node1 ~]# pcs booth restart현재 클러스터의 CIB에서 티켓을 제거합니다.
[cluster2-node1 ~]# pcs booth ticket cleanup apacheticket
중재자 노드에서 업데이트된 구성을 사용하여 노드에서 업데이트된 Booth 구성 파일을 다운로드합니다.
[arbitrator-node ~]# pcs booth pull clusternode-node1
검증
Booth 티켓이 Booth 구성에서 제거되었는지 확인하려면 각 클러스터 노드와 중재자 노드에서
pcs booth config명령을 실행합니다.예를 들어 Pacemaker를 사용하여 다중 사이트 클러스터 구성에 설명된 절차를 사용하여
apacheticket이라는 티켓을 구성한 후 명령에서 다음 출력을 표시합니다.[cluster1-node1 ~]# pcs booth config authfile = /etc/booth/booth.key/ site = 192.168.11.100 site = 192.168.22.100 arbitrator = 192.168.99.100 ticket = "apacheticket"Booth 구성에서 티켓을 제거한 후 명령은 더 이상
ticket= "apacheticket":을 표시하지 않습니다.[cluster1-node1 ~]# pcs booth config authfile = /etc/booth/booth.key site = 192.168.11.100 site = 192.168.22.100 arbitrator = 192.168.99.100클러스터 노드의 CIB에서 Booth 티켓이 제거되었는지 확인하려면 클러스터의 모든 노드에서
crm_ticket유틸리티의--query-xml옵션을 사용합니다. 예를 들어apacheticket이라는 Booth 티켓을 구성한 후 유틸리티는 다음 출력을 표시합니다.[cluster1-node1 ~]# crm_ticket --query-xml State XML: <tickets> <ticket_state id="apacheticket" granted="true" booth-cfg-name="booth" owner="0" expires="1740986835" term="0" standby="false"/> </tickets>CIB에서 티켓을 제거한 후 출력에
id="apacheticket":이 포함된ticket_state요소가 표시되지 않습니다.[cluster1-node1 ~]# crm_ticket --query-xml State XML: <tickets/>