Ceph cannot delete the cephfs

yyyy

Member
Nov 28, 2023
68
2
8
hi all, here is the output of me following the guide for deleting cephfs, for some reason it errors out and the cephfs still shows in the gui:
root@pve:~# umount -l -f /mnt/pve/
umount: /mnt/pve/: not mounted.
root@pve:~# ls /mnt
cassandra_data pve
root@pve:~# ls /mnt/pve/
cephfs1
root@pve:~# ls /mnt/pve/cephfs1/
root@pve:~# pveceph fs destroy cephfs1 --remove-pools 1 --remove-storage 1
error with 'fs rm': mon_cmd failed - all MDS daemons must be inactive/failed before removing filesystem. See `ceph fs fail`.
root@pve:~# ceph fs fail
Invalid command: missing required parameter fs_name(<string>)
fs fail <fs_name> : bring the file system down and all of its ranks
Error EINVAL: invalid command
root@dws-zve-5:~# ceph fs fail cephfs1
cephfs1 marked not joinable; MDS cannot join the cluster. All MDS ranks marked failed.


Someone suggested this guide on another thread but the instruction do not work as per the above output:

https://pve.proxmox.com/pve-docs/chapter-pveceph.html#_destroy_cephfs
 
I am not a "real" Ceph user with a lot of experience. Nevertheless I was in your situation yesterday: yes, some documented steps seem to deny to work without sidesteps.

Then I was successful after stopping (or was it deleting? Don't remember) all MDS as your quote suggests also. After running ceph fs rm mycephfilesystemname --yes-i-really-mean-it the filesystems were gone. As this is my test-cluster (!!!) I was sure I really meant it ;-)

Good luck
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!