Este conteúdo não está disponível no idioma selecionado.
B.3.5. Testing the Resource Configuration
In the cluster status display shown in Section B.3.4, “Creating the Resources and Resource Groups with the pcs Command”, all of the resources are running on node
z1.example.com. You can test whether the resource group fails over to node z2.example.com by using the following procedure to put the first node in standby mode, after which the node will no longer be able to host resources.
- The following command puts node
z1.example.cominstandbymode.root@z1 ~]# pcs cluster standby z1.example.com
root@z1 ~]# pcs cluster standby z1.example.comCopy to Clipboard Copied! Toggle word wrap Toggle overflow - After putting node
z1in standby mode, check the cluster status. Note that the resources should now all be running onz2.Copy to Clipboard Copied! Toggle word wrap Toggle overflow The web site at the defined IP address should still display, without interruption. - To remove
z1fromstandbymode, enter the following command.root@z1 ~]# pcs cluster unstandby z1.example.com
root@z1 ~]# pcs cluster unstandby z1.example.comCopy to Clipboard Copied! Toggle word wrap Toggle overflow Note
Removing a node fromstandbymode does not in itself cause the resources to fail back over to that node. For information on controlling which node resources can run on, see the chapter on configuring cluster resources in the Red Hat High Availability Add-On Reference.