]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
vstart: use paired MDSes with a specified standby.
authorGreg Farnum <gregory.farnum@dreamhost.com>
Thu, 28 Jul 2011 00:41:09 +0000 (17:41 -0700)
committerGreg Farnum <gregory.farnum@dreamhost.com>
Thu, 28 Jul 2011 00:42:31 +0000 (17:42 -0700)
I think this is a bit cleaner than specifying ranks manually.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
src/vstart.sh

index ecce59b94bb40d841b3ef994e2728edc00d73897..9df6aaecfe09d73bc85264897111170b2156f494 100755 (executable)
@@ -408,12 +408,11 @@ EOF
                fi
                if [ "$standby" -eq 1 ]; then
                    cat <<EOF >> $conf
-;        mds standby replay = true
-       mds standby for rank = $mds
+       mds standby for name = ${name}s
 [mds.${name}s]
         keyring = dev/mds.${name}s.keyring
-;        mds standby replay = true
-        mds standby for rank = $mds
+        mds standby replay = true
+        mds standby for name = ${name}
 EOF
                fi
            fi