From: Alexandre Marangone Date: Mon, 25 Mar 2013 19:42:19 +0000 (-0700) Subject: Create mon data dir before calling ceph-mon --mkfs X-Git-Tag: v0.2.0~37^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F17%2Fhead;p=ceph-cookbooks.git Create mon data dir before calling ceph-mon --mkfs Signed-off-by: Alexandre Marangone --- diff --git a/recipes/mon.rb b/recipes/mon.rb index f523d0e..5cd76de 100644 --- a/recipes/mon.rb +++ b/recipes/mon.rb @@ -41,6 +41,7 @@ execute 'ceph-mon mkfs' do command <<-EOH set -e mkdir -p /var/run/ceph +mkdir -p /var/lib/ceph/mon/ceph-#{node['hostname']} # TODO chef creates doesn't seem to suppressing re-runs, do it manually if [ -e '/var/lib/ceph/mon/ceph-#{node["hostname"]}/done' ]; then echo 'ceph-mon mkfs already done, skipping'