Show Table of Contents
2.5. 리소스 설정 테스트
2.4절. “pcs 명령을 사용한 리소스 및 리소스 그룹 생성”에서 표시되는 클러스터 상태 디스플레이에서는 모든 리소스가
z1.example.com 노드에서 실행중입니다. 사용자는 다음의 절차를 통해 첫 노드를 standby 모드로 놓아서 해당 노드가 더 이상 리소스를 호스트할 수 없게 만들어서 리소스 그룹이 z2.example.com 노드로 페일오버하는지 테스트할 수 있습니다.
- 다음의 명령을 사용해서
z1.example.com노드를standby모드로 놓습니다.root@z1 ~]#
pcs cluster standby z1.example.com z1노드를 대기 모드로 놓은 후 클러스터 상태를 확인합니다. 이제 모든 리소스가z2에서 실행중이어야 합니다.[root@z1 ~]#
pcs statusCluster name: my_cluster Last updated: Wed Jul 31 17:16:17 2013 Last change: Wed Jul 31 17:18:34 2013 via crm_attribute on z1.example.com Stack: corosync Current DC: z2.example.com (2) - partition with quorum Version: 1.1.10-5.el7-9abe687 2 Nodes configured 6 Resources configured Node z1.example.com (1): standby Online: [ z2.example.com ] Full list of resources: myapc (stonith:fence_apc_snmp): Started z1.example.com Resource Group: apachegroup my_lvm (ocf::heartbeat:LVM): Started z2.example.com my_fs (ocf::heartbeat:Filesystem): Started z2.example.com VirtualIP (ocf::heartbeat:IPaddr2): Started z2.example.com Website (ocf::heartbeat:apache): Started z2.example.com정의된 IP 주소에 있는 웹 사이트는 여전히 중단 없이 표시되어야 합니다.z1을standby모드에서 제거하려면 다음의 명령을 실행합니다.root@z1 ~]#
pcs cluster unstandby z1.example.com참고
standby모드에서 어떤 노드를 제거하는 것만으로 리소스가 해당 노드로 페일오버하게 만들지는 않습니다. 리소스가 실행되는 노드를 제어하는 데 대한 자세한 정보는 Red Hat High Availability Add-On Reference에 있는 클러스터 리소스 설정에 대한 설명을 확인합니다.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.