]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
vstart.sh: fix fs set max_mds bug 37836/head
authorjinmyeonglee <jinious1111@naver.com>
Thu, 22 Oct 2020 08:25:51 +0000 (17:25 +0900)
committerNathan Cutler <ncutler@suse.com>
Tue, 27 Oct 2020 08:24:13 +0000 (09:24 +0100)
Fix a bug where the name used when creating a volume and the name used when setting max_mds were different.
Fixes: https://tracker.ceph.com/issues/47946
Signed-off-by: Jinmyeong Lee <jinmyeong.lee@linecorp.com>
(cherry picked from commit 6a9445c2cbe6c0c7045bfaed007cc1920ad132ed)

src/vstart.sh

index 0e95d5e2b36c0689384ea3cc278f647d0298db74..9507ebf1b9d4e13b7a3be7de94807f4d7ee5dac3 100755 (executable)
@@ -1085,7 +1085,7 @@ do
     [ $fs -eq $CEPH_NUM_FS ] && break
     fs=$(($fs + 1))
     if [ "$CEPH_MAX_MDS" -gt 1 ]; then
-        ceph_adm fs set "cephfs_${name}" max_mds "$CEPH_MAX_MDS"
+        ceph_adm fs set "${name}" max_mds "$CEPH_MAX_MDS"
     fi
 done