Hi,

when setting up DRBD with pacemaker, I am stuck with secondary/secondary.

Packages:
kmod-drbd84-8.4.8-1_1.el7.elrepo.x86_64
drbd84-utils-8.9.6-1.el7.elrepo.x86_64
[root@ft2 ~]# drbd-overview
 1:nfs0/0    Unconfigured . .

Cluster Setup:
pcs cluster destroy --all
pcs cluster setup --start --name fscluster  ft1 ft2
pcs cluster enable --all  ft1 ft2
pcs property set no-quorum-policy=ignore
pcs property set stonith-enabled=false

pcs -f $$_nfs_cfg resource create Nfsdata ocf:linbit:drbd \
  drbd_resource=nfs0 drbdconf="/etc/drbd.conf" \
  op monitor interval="31s"
pcs -f $$_nfs_cfg  resource master Nfsdataclone Nfsdata \
  master-max="1" master-node-max="1" \
  clone-max="2" clone-node-max="1" notify="true" target-role="Master"
pcs -f $$_nfs_cfg resource op add Nfsdata monitor interval=29s \
  role=Master
# Mount Filesystem
pcs -f $$_nfs_cfg resource create NFSfs Filesystem \
  device="/dev/drbd/by-res/nfs0/0" directory="/export/nfs" fstype="xfs"
pcs -f $$_nfs_cfg constraint colocation add NFSfs \
  with Master Nfsdataclone INFINITY
pcs -f $$_nfs_cfg constraint order promote Nfsdataclone then start NFSfs
pcs cluster cib-push  $$_nfs_cfg

[root@ft2 ~]# drbd-overview
 1:nfs0/0    Connected    Secondary/Secondary UpToDate/UpToDate

pcs status:
Cluster name: fscluster
Last updated: Mon Oct 31 00:36:00 2016          Last change: Mon Oct 31 00:31:47
2016 by hacluster via crmd on ft1
Stack: corosync
Current DC: ft1 (version 1.1.13-10.el7_2.4-44eb2dd) - partition with quorum
2 nodes and 3 resources configured

Online: [ ft1 ft2 ]

Full list of resources:

 Master/Slave Set: Nfsdataclone [Nfsdata]
     Slaves: [ ft1 ft2 ]
 NFSfs  (ocf::heartbeat:Filesystem):    Stopped

PCSD Status:
  ft1: Online
  ft2: Online

Daemon Status:
  corosync: active/enabled
  pacemaker: active/enabled
  pcsd: active/enabled

What is wrong with the config? Why doesn't it promote a master?

Thanks
Werner
-- 
----------------------------------------------------------------------
Werner Gold                                          [email protected]
Steinbachweg 23                                 phone: +49.9331.803855
97252 Frickenhausen/Main, Germany
Key fingerprint = FF91 B07C 6F3D 340E A717  91AC 5E3A 6CB4 D44C BC37
----------------------------------------------------------------------
_______________________________________________
drbd-user mailing list
[email protected]
http://lists.linbit.com/mailman/listinfo/drbd-user

Reply via email to