]>
Commit | Line | Data |
---|---|---|
3efd9988 FG |
1 | #!/bin/sh -ex |
2 | ||
11fdf7f2 TL |
3 | ceph config set mgr mgr/localpool/subtree host |
4 | ceph config set mgr mgr/localpool/failure_domain osd | |
3efd9988 FG |
5 | ceph mgr module enable localpool |
6 | ||
7 | while ! ceph osd pool ls | grep '^by-host-' | |
8 | do | |
9 | sleep 5 | |
10 | done | |
11 | ||
12 | ceph mgr module disable localpool | |
13 | for p in `ceph osd pool ls | grep '^by-host-'` | |
14 | do | |
15 | ceph osd pool rm $p $p --yes-i-really-really-mean-it | |
16 | done | |
17 | ||
11fdf7f2 TL |
18 | ceph config rm mgr mgr/localpool/subtree |
19 | ceph config rm mgr mgr/localpool/failure_domain | |
3efd9988 FG |
20 | |
21 | echo OK |