the ceph-mds daemon count is preventing an unmount of fuse clients
and the stop of any existing mds-daemons
fixup for
8a4a432e8b6e
Fixes: https://tracker.ceph.com/issues/55902
Signed-off-by: Michael Fritch <mfritch@suse.com>
#Get fuse mounts of the cluster
num_of_ceph_mdss=$(ps -e | grep \ ceph-mds$ | wc -l)
- if test num_of_ceph_mdss -ne 0; then
+ if test $num_of_ceph_mdss -ne 0; then
CEPH_FUSE_MNTS=$("${CEPH_BIN}"/ceph -c $conf_fn tell mds.* client ls 2>/dev/null | grep mount_point | tr -d '",' | awk '{print $2}')
[ -n "$CEPH_FUSE_MNTS" ] && sudo umount -f $CEPH_FUSE_MNTS
fi