V
V
vlarkanov2017-10-09 15:41:30
linux
vlarkanov, 2017-10-09 15:41:30

CEPH: how to remove pools from CephFS?

Hello colleagues! There are two pools, cephfs_data and cephfs_metadata. CephFS is pumped on them. When creating pools, I specified too many PGs for them, I want to delete the pools. I'm trying like this:


# ceph osd pool delete cephfs_data cephfs_data --yes-i-really-really-mean-it
Error EBUSY: pool 'cephfs_data' is in use by CephFS
# ceph fs rm cephfs
Error EINVAL: all MDS daemons must be inactive before removing filesystem
ceph mds stop 0
Error EINVAL: can't tell the root (0) or tableserver (0) to deactivate

In general, a fairy tale about a white bull turns out. How to do the right thing - stop MDS, remove CephFS, remove pools?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Bulat Valiev, 2019-01-15
@vlarkanov

systemctl stop ceph-mds.target
killall ceph-mds
ceph mds cluster_down
ceph mds fail 0
ceph fs rm cephfs name --yes-i-really-mean-it
ceph osd pool delete cephfs data pool cephfs data pool --yes-i- really-really-mean-it
ceph osd pool delete cephfs metadata pool cephfs metadata pool --yes-i-really-really-mean-it
rm -rf "/var/lib/ceph/mds/ cluster-metadata server "
ceph auth del mds."$hostname"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question