Skip to content

Instantly share code, notes, and snippets.

@howdoicomputer
Last active December 14, 2015 06:08
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 howdoicomputer/a6f846eb54c3024a5be9 to your computer and use it in GitHub Desktop.
Save howdoicomputer/a6f846eb54c3024a5be9 to your computer and use it in GitHub Desktop.
CIB configuration
node $id="169102664" dev-nfs-archive-1001.va.opower.it
node $id="169102676" dev-nfs-archive-1002.va.opower.it \
attributes standby="off" maintenance="off"
primitive p_export_rbd ocf:heartbeat:exportfs \
params directory="/srv/nfs4" clientspec="10.20.77.0/255.255.255.0" options="rw,async,no_subtree_check,no_root_squash" fsid="1" \
op monitor interval="10s" timeout="20s" \
op start interval="0" timeout="40s"
primitive p_fs_rbd ocf:heartbeat:Filesystem \
params directory="/srv/nfs4" fstype="ext4" device="/dev/rbd1" fast_stop="yes" \
op monitor interval="20s" timeout="40s" \
op start interval="0" timeout="60s" \
op stop interval="0" timeout="60s"
primitive p_nfs_server lsb:nfs-kernel-server \
op monitor interval="10s" timeout="30s"
primitive p_rbd_map ocf:ceph:rbd.in \
params user="dev.nfs" pool="fast" name="devnfs" cephconf="/etc/ceph/ceph.conf" \
op monitor interval="10s" timeout="20s"
primitive p_rpcbind upstart:rpcbind \
op monitor interval="10s" timeout="30s"
primitive p_vip ocf:heartbeat:IPaddr2 \
params ip="10.20.77.86" nic="eth0" \
op monitor interval="5"
group g_nfs p_rpcbind p_nfs_server
group g_rbd_share p_rbd_map p_fs_rbd p_export_rbd p_vip \
meta target-role="Started"
property $id="cib-bootstrap-options" \
dc-version="1.1.10-42f2063" \
cluster-infrastructure="corosync" \
stonith-enabled="false" \
no-quorum-policy="ignore" \
stop-all-resources="false" \
last-lrm-refresh="1449613693" \
maintenance-mode="false" \
symmetric-cluster="true"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment