]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
vstart.sh: enable nfs-ganesha mgmt. in dashboard. 33691/head
authorAlfonso Martínez <almartin@redhat.com>
Fri, 6 Mar 2020 11:50:06 +0000 (12:50 +0100)
committerAlfonso Martínez <almartin@redhat.com>
Fri, 6 Mar 2020 11:50:06 +0000 (12:50 +0100)
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
src/vstart.sh

index 2327e923a56b8bd08d54af6a8b0a0553acbd8b11..ae7d8e31a5fcd7867e1d3d2ca9af82be0ba2c7e9 100755 (executable)
@@ -589,6 +589,7 @@ prepare_conf() {
         mon osd full ratio = .99
         mon osd nearfull ratio = .99
         mon osd backfillfull ratio = .99
+        mon_max_pg_per_osd = ${MON_MAX_PG_PER_OSD:-1000}
         erasure code dir = $EC_PATH
         plugin dir = $CEPH_LIB
         filestore fd cache size = 32
@@ -1155,7 +1156,15 @@ EOF
         # Wait few seconds for grace period to be removed
         sleep 2
         prun ganesha-rados-grace -p nfs-ganesha -n ganesha
-done
+
+        if $with_mgr_dashboard; then
+            $CEPH_BIN/rados -p nfs-ganesha put "conf-$name" "$ganesha_dir/ganesha.conf"
+        fi
+    done
+
+    if $with_mgr_dashboard; then
+        ceph_adm dashboard set-ganesha-clusters-rados-pool-namespace nfs-ganesha
+    fi
 }
 
 if [ "$debug" -eq 0 ]; then