From 9f160e141a485fc1578a0e62ab14f639f78c5f2c Mon Sep 17 00:00:00 2001 From: Milind Changire Date: Mon, 11 Nov 2019 20:28:17 +0530 Subject: [PATCH] vstart.sh: highlight presence of stray conf If there's a stray conf file present in /etc/ceph/ceph.conf, then it leads to a misbehaving cluster. Probably an unresponsive cluster as well. Fixes: https://tracker.ceph.com/issues/42643 Signed-off-by: Milind Changire --- src/vstart.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/vstart.sh b/src/vstart.sh index 8b630110f9c2..dc06adbfec3c 100755 --- a/src/vstart.sh +++ b/src/vstart.sh @@ -1412,3 +1412,16 @@ echo "" echo "CEPH_DEV=1" +# always keep this section at the very bottom of this file +STRAY_CONF_PATH="/etc/ceph/ceph.conf" +if [ -f "$STRAY_CONF_PATH" -a -n "$conf_fn" -a ! "$conf_fn" -ef "$STRAY_CONF_PATH" ]; then + echo "" + echo "" + echo "WARNING:" + echo " Please remove stray $STRAY_CONF_PATH if not needed." + echo " Your conf files $conf_fn and $STRAY_CONF_PATH may not be in sync" + echo " and may lead to undesired results." + echo "" + echo "NOTE:" + echo " Remember to restart cluster after removing $STRAY_CONF_PATH" +fi -- 2.47.3