[DRBD-user] Server not promoted to primary
Timothy Moyer
tmoyer at orionsystemsinc.net
Wed May 2 10:49:49 CEST 2018
We ran into a scenario the other day were during normal maintenance both
servers were shut down upon restart the A server would not boot. This server
had been the active primary and the problem was the B server would not
promote the primary remaining in the state of "UpToDate". Subsequently we
were able to start the A server and it came on primary.
We were able to run some tests and found that if the first server shutdown
is not primary it cannot come back as primary without the other.
Is there some configuration parameter I can set to allow this? Or some
command that can be given to force the server to primary.
We are running R ed Hat 6.7 with DRBD 8.3.16-1.
This is the resource configuration
Global_common
global {
usage-count yes;
# minor-count dialog-refresh disable-ip-verification
}
common {
protocol C;
handlers {
# These are EXAMPLE handlers only.
# They may have severe implications,
# like hard resetting the node under certain circumstances.
# Be careful when chosing your poison.
# pri-on-incon-degr
"/usr/lib/drbd/notify-pri-on-incon-degr.sh;
/usr/lib/drbd/notify-emergency-reboot.sh; echo b > /proc/sysrq-trigger ;
reboot -f";
# pri-lost-after-sb
"/usr/lib/drbd/notify-pri-lost-after-sb.sh;
/usr/lib/drbd/notify-emergency-reboot.sh; echo b > /proc/sysrq-trigger ;
reboot -f";
# local-io-error "/usr/lib/drbd/notify-io-error.sh;
/usr/lib/drbd/notify-emergency-shutdown.sh; echo o > /proc/sysrq-trigger ;
halt -f";
# fence-peer "/usr/lib/drbd/crm-fence-peer.sh";
# split-brain "/usr/lib/drbd/notify-split-brain.sh root";
# out-of-sync "/usr/lib/drbd/notify-out-of-sync.sh root";
# before-resync-target
"/usr/lib/drbd/snapshot-resync-target-lvm.sh -p 15 -- -c 16k";
# after-resync-target
/usr/lib/drbd/unsnapshot-resync-target-lvm.sh;
}
startup {
# wfc-timeout degr-wfc-timeout outdated-wfc-timeout
wait-after-sb
}
disk {
# on-io-error fencing use-bmbv no-disk-barrier
no-disk-flushes
# no-disk-drain no-md-flushes max-bio-bvecs
}
net {
# sndbuf-size rcvbuf-size timeout connect-int ping-int
ping-timeout max-buffers
# max-epoch-size ko-count allow-two-primaries cram-hmac-alg
shared-secret
# after-sb-0pri after-sb-1pri after-sb-2pri
data-integrity-alg no-tcp-cork
}
syncer {
# rate after al-extents use-rle cpu-mask verify-alg
csums-alg
}
}
Oriondisk
resource oriondisk {
protocol C;
startup {
wfc-timeout 20;
degr-wfc-timeout 20;
become-primary-on both;
}
net {
max-epoch-size 8000;
max-buffers 8000;
sndbuf-size 512K;
allow-two-primaries;
after-sb-0pri discard-zero-changes;
after-sb-1pri discard-secondary;
}
syncer {
rate 80M;
}
disk{
fencing resource-only;
}
handlers {
pri-on-incon-degr "/usr/lib/drbd/notify-pri-on-incon-degr.sh;
/usr/lib/drbd/notify-emergency-reboot.sh; echo b > /proc/sysrq-trigger ;
reboot -f";
pri-lost-after-sb "/usr/lib/drbd/notify-pri-lost-after-sb.sh;
/usr/lib/drbd/notify-emergency-reboot.sh; echo b > /proc/sysrq-trigger ;
reboot -f";
local-io-error "/usr/lib/drbd/notify-io-error.sh;
/usr/lib/drbd/notify-emergency-shutdown.sh; echo o > /proc/sysrq-trigger ;
halt -f";
out-of-sync "/usr/lib/drbd/notify-out-of-sync.sh root";
split-brain "/usr/lib/drbd/notify-split-brain.sh root";
}
on acf81a.orionsystems.net {
device /dev/drbd1;
disk /dev/sdb1;
flexible-meta-disk internal;
address 10.2.81.101:7789;
}
on acf81b.orionsystems.net {
device /dev/drbd1;
disk /dev/sdb1;
flexible-meta-disk internal;
address 10.2.81.102:7789;
}
}
----------------------------------------------------------------------------
-------------------------------------------------
Timothy F Moyer
Orion Systems Inc.
352.410.1639
---
This email has been checked for viruses by AVG.
http://www.avg.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20180502/7c7260d9/attachment.htm>
More information about the drbd-user
mailing list