Home Linux & Systems Cybersecurity Cloud & DevOps Networks & Infrastructure SIEM & Monitoring DFIR & Threat Intel Development & Other All categories Projects About Tools

RedHat 7 Cluster basic commands

Leer en espanol
RedHat 7 Cluster basic commands

Table of contents

View cluster status ===

These are the basic commands to control a Red Hat Cluster from command line. View Cluster status, start/stop/restart/move resources and services, etc.

View cluster status:

text
pcs cluster status

View the status of resources

text
pcs status resources

Start or stop a resource

text
crm_resource start/stop <GRUPO>

Example:

text
crm_resource start redorbitaclus

Move resources

text
pcs resource move <RECURSO>  <NODO>

Example:

text
pcs resource move redorbitaclus  redorbitaclus01 restart

NOTE: After always moving the resource, you must execute:

text
pcs resource clear redorbitaclus

Move resources (Force resource)

text
crm_resource –force –resource redorbitaclus  –move redorbitaclus01 –node  –quiet

NOTE: After always moving the resource, you must execute:

text
pcs resource clear redorbitaclus

Eliminate errors

text
pcs resource cleanup

Consult the constraints

text
pcs constraint location –full

Location Constraints:

Resource: redorbitaclus

Enabled on: redorbitaclus02.redorbita.com (score:INFINITY) (id:location-redorbitaclus -redorbitaclus02.redorbita.com-INFINITY)

Mostrar solo las location constraint:

pcs constraint location –full

Location Constraints:

Resource: redorbitaclus

Enabled on: redorbitaclus02.redorbita.com (score:INFINITY) (id:location-redorbitaclus -redorbitaclus02.redorbita.com-INFINITY)

Put a node into maintenance

text
pcs cluster standby <NODO>

Remove a node from maintenance mode

text
pcs node unstandby <NODO>

All the best.

Comments