]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
vstart: build osdmap of correct size
authorSage Weil <sage@newdream.net>
Mon, 19 Oct 2009 18:26:28 +0000 (11:26 -0700)
committerSage Weil <sage@newdream.net>
Mon, 19 Oct 2009 18:26:28 +0000 (11:26 -0700)
src/vstart.sh

index f382c3d295e743853def4a1dd27b8c208e22dd9c..5d1d15ff2c958e557a71ab7bb942f9d5ac54467b 100755 (executable)
@@ -183,7 +183,7 @@ echo "ip $IP"
 if [ "$start_mon" -eq 1 ]; then
        if [ "$new" -eq 1 ]; then
        # build and inject an initial osd map
-               $CEPH_BIN/osdmaptool --clobber --createsimple 4 .ceph_osdmap --pg_bits 2
+               $CEPH_BIN/osdmaptool --clobber --createsimple $CEPH_NUM_OSD .ceph_osdmap --pg_bits 2
        fi
 
        if [ "$new" -eq 1 ]; then