From 6b1835a92c76c20b6ef638b9dcd4420b8ff389e8 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 9 Jul 2012 18:17:54 -0700 Subject: [PATCH] vstart.sh: blow away mon directory on creation/start Now that ceph-mon doesn't blow away the mon data content, we need to. Signed-off-by: Sage Weil --- src/vstart.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/vstart.sh b/src/vstart.sh index 1a5cf68349e7b..ea8803e15b342 100755 --- a/src/vstart.sh +++ b/src/vstart.sh @@ -335,6 +335,9 @@ EOF for f in $MONS do + cmd="rm -rf dev/mon.$f" + echo $cmd + $cmd cmd="$CEPH_BIN/ceph-mon --mkfs -c $conf -i $f --monmap=$monmap_fn" [ "$cephx" -eq 1 ] && cmd="$cmd --keyring=$keyring_fn" echo $cmd -- 2.39.5