Using LVM Archive to Track and Restore LVM Changes

Using LVM Archive to Track and Restore LVM Changes This write-up will detail the process of using LVM’s archive capability to track changes made using LVM. Along with how to use the archive feature to rollback incorrect changes. Basic Command Line Reference Commmand Description vgcfgrestore -l [vg_name] List all changes made to a volume group…


Installing Performance Co-Pilot on RHEL 7

This write-up details the process of installing Performance Co-Pilot (PCP) and PCP System Tools on RHEL 7. Install PCP and PCP System Tools Packages 1 – Install pcp and pcp-system-tools packages.

Example Output

Start and Enable PCP Service 1 – Start the pmcd service.

2 – Next configure pmcd service to start…


Installing Performance Co-Pilot on RHEL 6

This write-up details the process of installing Performance Co-Pilot on RHEL 6. Requirements Must be running RHEL 6.6 or higher to install PCP Some PCP packages are in the RHEL Optional repository and not the main server repository Joining Server to RHEL Optional Repo Your repo name may differ from the one listed here. Be…


Pacemaker Create Location Constraints

This write-up will detail the process of creating location constraints in a Pacemaker cluster. This is done when you want to have an resource or resource group prefer to run on a specific node in the cluster. 1 – Verify the current list of constraints using the pcs constraint list command.

Example Output


Pacemaker Remove Constraints

This write-up details the process of removing constraints. Remove Constraints 1 – List the currently configured constraints using the pcs constraint list –full command.

Example Output

2 – Note the id string and use that to remove the constraints use the pcs constraint remove id command.

3 – Verify the constraints have…


Pacemaker Enable Maintenance Mode or Freeze Cluster

This write-up details the process of placing a Pacemaker cluster into maintenance mode or freezing the cluster. Enable Maintenance Mode 1 – Run the pcs property set maintenance-mode=true command to place the cluster into maintenance mode.

2 – Next run the pcs property command to verity that it displays maintenance-mode: true which means the…


Pacemaker Cheat Sheet

File and Directory Locations Location Description /var/lib/pacemaker/cib/cib.xml Primary cluster configuration file /var/log/cluster/corosync.log Primary cluster log file /usr/lib/ocf/resource.d/heartbeat/ Directory where resource scripts are located Check Cluster Status Command Description pcs cluster status Display status of cluster nodes pcs status –full (double dashes) Display detailed cluster status of nodes and resources pcs resource Display status of all…


Pacemaker Configure Oracle Resource Agent

This write-up details the process used to create an Oracle resource using pacemaker. Oracle Resource Agent Notes The Oracle resource agent requires you have an user created within the Oracle database called ocfmon with the ability to create a profile. This user is used to monitor the databases health. Without this user the Oracle resource…


Pacemaker Configure HP iLO 4 SSH Fencing

This write-up details how to configure HP iLO 4 fencing over SSH using Pacemaker and Stonith Requirements An account created on the HP iLO that can power the server on and off SSH enabled on the iLO (This may require an License) HP iLO SSH Fencing Notes During my initial testing of HP iLO fencing…


Pacemaker Clear Resource Failures

This write-up describes how to clear Failed Actions from the output of the pcs status command. 1 – The pcs status command displays failed starting of the server106-cpn_ilo4_fence_start_0 resource.

Example Output

2 – To remove this Failed Action from the output issue the pcs resource cleanup [resource-name] command.

Example Output

3…