librbd::image::RemoveRequest: check_image_watchers: image has watchers – not removing

Merhabalar,

Ceph kümesi içerisinde rbd silme işlemi yaparken aşağıdaki hata ile karşılaştım. Biraz araştırmam sonucunda bazı izleyiciler rbd görüntüsünü izlediği için silmeye izin vermediğini anladım. Hata üzerinde de bu şekilde belirtiyor.

Aldığım hata:

[root@host ~]# rbd rm domain
2020-12-15 22:33:06.446 7f22737fe700 -1 librbd::image::RemoveRequest: 0x563d651eb2b0 check_image_watchers: image has watchers – not removing
Removing image: 0% complete…failed.
rbd: error: image still has watchers
This means the image is still open or the client using it crashed. Try again after closing/unmapping it or waiting 30s for the crashed client to timeout.

Nasıl çözdüm?:

[root@host ~]# rbd status domain
Watchers:
watcher=192.168.2.1:0/93411799 client.7597848 cookie=18446462598732842027
watcher=192.168.2.1:0/93411799 client.7597848 cookie=18446462598732842028
watcher=192.168.2.1:0/93411799 client.7597848 cookie=18446462598732842029

[root@host ~]# ceph osd blacklist add 192.168.2.1:0/93411799
blacklisting 192.168.2.1:0/93411799 until 2020-12-15 23:55:22.893370 (3600 sec)

[root@host ~]# rbd status domain
Watchers: none

[root@host ~]# rbd rm domain
Removing image: 100% complete…done.

[root@host ~]# ceph osd blacklist rm 192.168.2.1:0/93411799
un-blacklisting 192.168.2.1:0/93411799

[root@host ~]# ceph osd blacklist ls
listed 0 entries

Bir cevap yazın

E-posta hesabınız yayımlanmayacak.

Bu site reCAPTCHA ve Google tarafından korunmaktadır Gizlilik Politikası ve Kullanım Şartları uygula.