Skip to content

Instantly share code, notes, and snippets.

@mafonso
Last active August 27, 2015 20:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mafonso/df9a0749633e5c8740b1 to your computer and use it in GitHub Desktop.
Save mafonso/df9a0749633e5c8740b1 to your computer and use it in GitHub Desktop.
RedHat Cluster Suite Postgres
<?xml version="1.0"?>
<cluster config_version="7" name="pgcluster">
<clusternodes>
<clusternode name="10.39.30.11" votes="1" nodeid="1">
<fence/>
</clusternode>
<clusternode name="10.39.30.12" votes="1" nodeid="2">
<fence/>
</clusternode>
</clusternodes>
<rm>
<failoverdomains>
<failoverdomain name="PGSQL" nofailback="0" ordered="0" restricted="0">
<failoverdomainnode name="10.39.30.11"/>
<failoverdomainnode name="10.39.30.12"/>
</failoverdomain>
</failoverdomains>
<resources>
<ip address="10.39.30.10" monitor_link="on" sleeptime="10"/>
<postgres-8 config_file="/var/lib/pgsql/data/postgresql.conf" name="pgsql" shutdown_wait="5" />
</resources>
<service autostart="1" exclusive="0" domain="PGSQL" name="pgsql" recovery="relocate">
<drbd name="drdb-postgres" resource="r0">
<fs device="/dev/drbd0" fsid="6202" fstype="ext3" mountpoint="/var/lib/pgsql" name="pgsql" options="noatime"/>
</drbd>
<ip ref="10.39.30.10"/>
<postgres-8 ref="pgsql"/>
</service>
</rm>
<cman expected_votes="1" two_node="1"/>
<fence_daemon clean_start="1" post_fail_delay="0" post_join_delay="3"/>
</cluster>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment