ceph supprimer le pool

ceph osd pool rm vms vms --yes-i-really-really-mean-it
Error EPERM: WARNING: this will *PERMANENTLY DESTROY* all data stored in pool vms.  If you are *ABSOLUTELY CERTAIN* that is what you want, pass the pool name *twice*, followed by --yes-i-really-really-mean-it.

Vérifiez si vous avez l'autorisation de supprimer le pool

ceph --show-config |grep mon_allow_pool_delete
mon_allow_pool_delete = false

Ajouter et supprimer des autorisations de pool

cd /etc/ceph/
cat /etc/ceph/ceph.conf 
[global]
mon_allow_pool_delete = true

Fichier de configuration de distribution

ceph-deploy --overwrite-conf admin ceph01 ceph02 ceph03

Redémarrez les services mon et mgr de tous les nœuds

[root@ceph01 ceph]# systemctl list-units --type=service|grep ceph[email protected]                   loaded failed failed  Ceph disk activation: /dev/vdc1
  [email protected]                      loaded active running Ceph metadata server daemon
  [email protected]                      loaded active running Ceph cluster manager daemon
● [email protected]                     loaded failed failed  Ceph cluster monitor daemon
  [email protected]                      loaded active running Ceph cluster monitor daemon
  [email protected]                           loaded active running Ceph object storage daemon osd.0
  [email protected]                           loaded active running Ceph object storage daemon osd.3
  [email protected]                           loaded active running Ceph object storage daemon osd.6
● [email protected]                      loaded failed failed  Ceph object storage daemon osd.ceph01
● [email protected]                  loaded failed failed  Ceph rados gateway
● [email protected] loaded failed failed  Ceph rados gateway
  [email protected]         loaded active running Ceph rados gateway
[root@ceph01 ceph]# systemctl restart [email protected]
[root@ceph01 ceph]# systemctl restart [email protected]

或者
[root@ceph01 ceph]# systemctl restart ceph-mgr@target
[root@ceph01 ceph]# systemctl restart ceph-mon@target
[root@ceph02 ~]# systemctl list-units --type=service|grep ceph
  [email protected]            loaded active running Ceph metadata server daemon
● [email protected]            loaded failed failed  Ceph cluster manager daemon
  [email protected]            loaded active running Ceph cluster manager daemon
● [email protected]            loaded failed failed  Ceph cluster monitor daemon
  [email protected]            loaded active running Ceph cluster monitor daemon
  [email protected]                 loaded active running Ceph object storage daemon osd.1
[root@ceph02 ~]# systemctl restart [email protected]
[root@ceph02 ~]# systemctl restart [email protected]

或者
[root@ceph02 ceph]# systemctl restart ceph-mgr@target
[root@ceph02 ceph]# systemctl restart ceph-mon@target
[root@ceph03 ~]# systemctl list-units --type=service|grep ceph
  [email protected]                               loaded active running Ceph metadata server daemon
  [email protected]                               loaded active running Ceph cluster manager daemon
● [email protected]                               loaded failed failed  Ceph cluster monitor daemon
  [email protected]                               loaded active running Ceph cluster monitor daemon
  [email protected]                                    loaded active running Ceph object storage daemon osd.2
[root@ceph03 ~]# systemctl restart [email protected]
[root@ceph03 ~]# systemctl restart [email protected]

或者
[root@ceph03 ceph]# systemctl restart ceph-mgr@target
[root@ceph03 ceph]# systemctl restart ceph-mon@target

Supprimer le pool

Remarque: Le nom du pool doit être entré deux fois et s'il s'agit d'un volume de cache, il ne peut pas être supprimé.

ceph osd pool rm vms vms --yes-i-really-really-mean-it

Impossible de supprimer le volume de cache (normal)

ceph osd pool rm volumes volumes  --yes-i-really-really-mean-it
Error EBUSY: pool 'volumes' has tiers cache-pool

Je suppose que tu aimes

Origine blog.csdn.net/weixin_40548182/article/details/111636379
conseillé
Classement