]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
tasks/ceph: enable dirfrags in cephfs
authorJohn Spray <john.spray@redhat.com>
Fri, 5 Aug 2016 14:12:18 +0000 (15:12 +0100)
committerJohn Spray <john.spray@redhat.com>
Fri, 23 Sep 2016 10:04:54 +0000 (11:04 +0100)
Otherwise places we set mds_bal_frag have
no effect.

Signed-off-by: John Spray <john.spray@redhat.com>
tasks/ceph.py

index 3c4b3f4accd16cf454a7be4136ce66bb87298d42..6afe8955dee45904808ebaeaf3669ce939b2e91c 100644 (file)
@@ -310,6 +310,16 @@ def cephfs_setup(ctx, config):
             'ceph',
             '--cluster', cluster_name,
             'mds', 'set_max_mds', str(num_active)])
+        mon_remote.run(
+            args=[
+                'sudo',
+                'adjust-ulimits',
+                'ceph-coverage',
+                coverage_dir,
+                'ceph', 'mds', 'set', 'allow_dirfrags', 'true',
+                '--yes-i-really-mean-it'],
+           check_status=False,  # probably old version, upgrade test
+        )
 
     yield