Move content from stx-gplv2 into stx-integ
Packages will be relocated to
stx-integ:
base/
bash
cgcs-users
cluster-resource-agents
dpkg
haproxy
libfdt
netpbm
rpm
database/
mariadb
filesystem/
iscsi-initiator-utils
filesystem/drbd/
drbd-tools
kernel/kernel-modules/
drbd
integrity
intel-e1000e
intel-i40e
intel-i40evf
intel-ixgbe
intel-ixgbevf
qat17
tpmdd
ldap/
ldapscripts
networking/
iptables
net-tools
Change-Id: Ibf3a0fc29dc2e6a0eeb02c98ff053bdb0443a9f0
Story: 2002801
Task: 22687
Signed-off-by: Scott Little <scott.little@windriver.com>
35 lines
1.3 KiB
Diff
35 lines
1.3 KiB
Diff
Index: git/scripts/drbd.ocf
|
|
===================================================================
|
|
--- git.orig/scripts/drbd.ocf
|
|
+++ git/scripts/drbd.ocf
|
|
@@ -418,6 +418,29 @@ drbd_condition() {
|
|
rc=$OCF_DATA_OUTDATED
|
|
ocf_log info "${OCF_RESKEY_drbd_resource} outdated"
|
|
;;
|
|
+ Inconsistent)
|
|
+ case "${DRBD_CSTATE}" in
|
|
+ StandAlone)
|
|
+ rc=$OCF_DATA_STANDALONE
|
|
+ if [ $status -eq $OCF_SUCCESS ]
|
|
+ then
|
|
+ ocf_log info "${OCF_RESKEY_drbd_resource} standby standalone, attempting to reconnect."
|
|
+ do_drbdadm connect ${OCF_RESKEY_drbd_resource}
|
|
+ else
|
|
+ ocf_log info "${OCF_RESKEY_drbd_resource} standalone"
|
|
+ fi
|
|
+ ;;
|
|
+ StartingSyncT | WFBitMapT | WFSyncUUID | SyncTarget | \
|
|
+ PausedSyncT)
|
|
+ rc=$OCF_DATA_SYNC
|
|
+ ocf_log info "${OCF_RESKEY_drbd_resource} sync"
|
|
+ ;;
|
|
+ *)
|
|
+ rc=$OCF_DATA_INCONSISTENT
|
|
+ ocf_log info "${OCF_RESKEY_drbd_resource} inconsistent"
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
*)
|
|
case "${DRBD_CSTATE}" in
|
|
StandAlone)
|