]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
vstart.sh: enable running with FS=0
authorJohn Spray <john.spray@redhat.com>
Fri, 23 Dec 2016 17:31:32 +0000 (17:31 +0000)
committerJohn Spray <john.spray@redhat.com>
Thu, 5 Jan 2017 13:43:40 +0000 (13:43 +0000)
Useful for vstart_runner.py to create a cluster
with no filesystem (CephFSTestCase does the
filesystem creation)

Signed-off-by: John Spray <john.spray@redhat.com>
src/vstart.sh

index 6be6757871b89d1261f3eade2860527e259882e1..e238f8ab3aece76b2aa122b423663f8f94de436a 100755 (executable)
@@ -701,19 +701,21 @@ EOF
 fi
 
 if [ "$start_mds" -eq 1 -a "$CEPH_NUM_MDS" -gt 0 ]; then
-    if [ "$CEPH_NUM_FS" -gt "1" ] ; then
-        ceph_adm fs flag set enable_multiple true --yes-i-really-mean-it
-    fi
+    if [ "$CEPH_NUM_FS" -gt "0" ] ; then
+        if [ "$CEPH_NUM_FS" -gt "1" ] ; then
+            ceph_adm fs flag set enable_multiple true --yes-i-really-mean-it
+        fi
 
-    fs=0
-    for name in a b c d e f g h i j k l m n o p
-    do
-        ceph_adm osd pool create "cephfs_data_${name}" 8
-        ceph_adm osd pool create "cephfs_metadata_${name}" 8
-        ceph_adm fs new "cephfs_${name}" "cephfs_metadata_${name}" "cephfs_data_${name}"
-        fs=$(($fs + 1))
-        [ $fs -eq $CEPH_NUM_FS ] && break
-    done
+        fs=0
+        for name in a b c d e f g h i j k l m n o p
+        do
+            ceph_adm osd pool create "cephfs_data_${name}" 8
+            ceph_adm osd pool create "cephfs_metadata_${name}" 8
+            ceph_adm fs new "cephfs_${name}" "cephfs_metadata_${name}" "cephfs_data_${name}"
+            fs=$(($fs + 1))
+            [ $fs -eq $CEPH_NUM_FS ] && break
+        done
+    fi
 
     mds=0
     for name in a b c d e f g h i j k l m n o p