If we build the ceph cluster without using btrfs, it returns error if
the osd_data and mon_data directory doesn't exist.
diff --git a/src/mkcephfs.in b/src/mkcephfs.in
index 0d86c75..5bb94ae 100644
--- a/src/mkcephfs.in
+++ b/src/mkcephfs.in
@@ -246,6 +246,8 @@ if [ -n "$initdaemon" ]; then
name="$type.$id"
if [ $type = "osd" ]; then
+ get_conf osd_data "" "osd data"
+ test -d $osd_data || mkdir -p $osd_data
$BINDIR/cosd -c $conf --monmap $dir/monmap -i $id --mkfs
create_private_key
fi
@@ -255,6 +257,8 @@ if [ -n "$initdaemon" ]; then
fi
if [ $type = "mon" ]; then
+ get_conf mon_data "" "mon data"
+ test -d $mon_data || mkdir -p $mon_data
$BINDIR/cmon -c $conf --mkfs -i $id --monmap $dir/monmap
--osdmap $dir/osdmap -k $dir/keyring.mon
fi
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html