mirror of
https://github.com/ceph/ceph
synced 2024-12-24 20:33:27 +00:00
dadf4c769b
Signed-off-by: Sage Weil <sage@redhat.com>
22 lines
459 B
Bash
Executable File
22 lines
459 B
Bash
Executable File
#!/bin/sh -ex
|
|
|
|
ceph config set mgr mgr/localpool/subtree host
|
|
ceph config set mgr mgr/localpool/failure_domain osd
|
|
ceph mgr module enable localpool
|
|
|
|
while ! ceph osd pool ls | grep '^by-host-'
|
|
do
|
|
sleep 5
|
|
done
|
|
|
|
ceph mgr module disable localpool
|
|
for p in `ceph osd pool ls | grep '^by-host-'`
|
|
do
|
|
ceph osd pool rm $p $p --yes-i-really-really-mean-it
|
|
done
|
|
|
|
ceph config rm mgr mgr/localpool/subtree
|
|
ceph config rm mgr mgr/localpool/failure_domain
|
|
|
|
echo OK
|