Crm-nfs-cluster

Aus xinux.net
Version vom 22. August 2018, 14:06 Uhr von Thomas.will (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „<pre> node 1: mabel \ attributes node 2: ryzen \ attributes primitive ip-10 IPaddr2 \ params ip=10.80.1.10 cidr_netmask=24 \ op start interval=0s timeout=2…“)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Zur Navigation springen Zur Suche springen
node 1: mabel \
	attributes
node 2: ryzen \
	attributes
primitive ip-10 IPaddr2 \
	params ip=10.80.1.10 cidr_netmask=24 \
	op start interval=0s timeout=20s \
	op stop interval=0s timeout=20s \
	op monitor interval=30s
primitive mount-nfs-cluster Filesystem \
	params device="nfs-cluster.xinux.lan:/mnt/misc" directory="/mnt/nfs-cluster" fstype=nfs options="acl,vers=3" \
	op start interval=0s timeout=60 \
	op stop interval=0s timeout=60 \
	op monitor interval=20 timeout=40
primitive nfs-data Filesystem \
	params device="/dev/drbd1" directory="/mnt/misc/" fstype=ext4 \
	op start interval=0s timeout=60 \
	op stop interval=0s timeout=60 \
	op monitor interval=20 timeout=40 \
	meta target-role=Started
primitive nfs-drbd ocf:linbit:drbd \
	params drbd_resource=nfs \
	op start interval=0s timeout=240 \
	op promote interval=0s timeout=90 \
	op demote interval=0s timeout=90 \
	op stop interval=0s timeout=100 \
	op monitor interval=60s
primitive nfs-ip IPaddr2 \
	params ip=10.80.1.200 cidr_netmask=24 \
	op start interval=0s timeout=20s \
	op stop interval=0s timeout=20s \
	op monitor interval=30s \
	meta target-role=Started
primitive nfs-server systemd:nfs-kernel-server \
	op monitor interval=30s \
	meta target-role=Started
primitive vm-nagus VirtualDomain \
	params hypervisor="qemu:///system" config="/mnt/virtimages/nagus.xml" migration_transport=ssh \
	meta allow-migrate=true priority=100 \
	op start interval=0s timeout=120s \
	op stop interval=0s timeout=120s \
	op monitor interval=10 timeout=30 \
	op migrate_from interval=0 timeout=120s \
	op migrate_to interval=0 timeout=120 \
	utilization cpu=2 hv_memory=4096
ms nfs-drbd-clone nfs-drbd \
	meta master-max=1 master-node-max=1 clone-max=2 clone-node-max=1 notify=true target-role=Started
clone mount-nfs-cluster-clone mount-nfs-cluster \
	meta target-role=Started
location cli-prefer-ip-10 ip-10 role=Started inf: ryzen
location cli-prefer-nfs-drbd-clone nfs-drbd-clone role=Started inf: ryzen
colocation colocation-mount-nfs-cluster-clone-nfs-drbd-clone-INFINITY inf: mount-nfs-cluster-clone nfs-drbd-clone:Master
colocation colocation-nfs-data-nfs-drbd-clone-INFINITY inf: nfs-data nfs-drbd-clone:Master
colocation colocation-nfs-ip-nfs-drbd-clone-INFINITY inf: nfs-ip nfs-drbd-clone:Master
colocation colocation-nfs-server-nfs-drbd-clone-INFINITY inf: nfs-server nfs-drbd-clone:Master
order order-nfs-data-nfs-server-mandatory nfs-data:start nfs-server:start
order order-nfs-drbd-clone-nfs-ip-mandatory nfs-drbd-clone:promote nfs-ip:start
order order-nfs-ip-nfs-data-mandatory nfs-ip:start nfs-data:start
order order-nfs-servermount-nfs-cluster-clone-mandatory nfs-server:start mount-nfs-cluster-clone:start
property cib-bootstrap-options: \
	have-watchdog=false \
	dc-version=1.1.14-70404b0 \
	cluster-infrastructure=corosync \
	cluster-name=nfs-cluster \
	stonith-enabled=false \
	last-lrm-refresh=1497450394r