From 904fb27f0d35e9a87d25d3a643e7fb273fae4401 Mon Sep 17 00:00:00 2001 From: Alexandre Marangone Date: Mon, 25 Mar 2013 12:42:19 -0700 Subject: [PATCH] Create mon data dir before calling ceph-mon --mkfs Signed-off-by: Alexandre Marangone --- recipes/mon.rb | 1 + 1 file changed, 1 insertion(+) 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' -- 2.47.3