diff --git a/ceph-osd/templates/bin/osd/_directory.sh.tpl b/ceph-osd/templates/bin/osd/_directory.sh.tpl index 0edd8c5139..255412c7f8 100644 --- a/ceph-osd/templates/bin/osd/_directory.sh.tpl +++ b/ceph-osd/templates/bin/osd/_directory.sh.tpl @@ -30,7 +30,7 @@ if [[ ! -d /var/lib/ceph/osd ]]; then fi # check if anything is present, if not, create an osd and its directory -if [[ -n "$(find /var/lib/ceph/osd -prune -empty)" ]]; then +if [[ -n "$(find /var/lib/ceph/osd -type d -empty ! -name "lost+found")" ]]; then echo "Creating osd" UUID=$(uuidgen) OSD_SECRET=$(ceph-authtool --gen-print-key)