]> git.proxmox.com Git - ceph.git/blob - ceph/src/test/cli-integration/balancer/misplaced.t
import ceph 14.2.5
[ceph.git] / ceph / src / test / cli-integration / balancer / misplaced.t
1 $ ceph osd pool create balancer_opt 128
2 pool 'balancer_opt' created
3 $ ceph osd pool application enable balancer_opt rados
4 enabled application 'rados' on pool 'balancer_opt'
5 $ rados bench -p balancer_opt 50 write --no-cleanup > /dev/null
6 $ ceph balancer on
7 $ ceph balancer mode crush-compat
8 $ ceph balancer ls
9 []
10 $ ceph config set osd.* target_max_misplaced_ratio .07
11 $ ceph balancer eval
12 current cluster score [0-9]*\.?[0-9]+.* (re)
13 # Turn off active balancer to use manual commands
14 $ ceph balancer off
15 $ ceph balancer optimize test_plan balancer_opt
16 $ ceph balancer ls
17 [
18 "test_plan"
19 ]
20 $ ceph balancer execute test_plan
21 $ ceph balancer eval
22 current cluster score [0-9]*\.?[0-9]+.* (re)
23 # Plan is gone after execution ?
24 $ ceph balancer execute test_plan
25 Error ENOENT: plan test_plan not found
26 [2]
27 $ ceph osd pool rm balancer_opt balancer_opt --yes-i-really-really-mean-it
28 pool 'balancer_opt' removed