Ceph

[Ceph] rbd: error: image still has watchers

plastic2113 2025. 1. 3. 15:52
728x90
반응형

Symptoms..

블록 스토리지를 삭제하는 과정에서 아래와 같은 에러가 발생.

rbd: error: image still has watchers

librbd::image::RemoveRequest: 0x55ce6659a5c0 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.

 

status로 블록스토리지의 상태 확인.

rbd status [pool]/[volume]
Watchers:
  watcher=[host-ip]:0/638423566 client.590881464 cookie=140459389778944
728x90

Trouble_shooting..

위의 watcher를 blacklist처리. (1시간동안 추가)

ceph osd blacklist add [host-ip]:0/638423566
blacklisting [host-ip]:0/638423566 until [date] +1H (3600 sec)

 

EX) ceph osd blacklist add 10.1.0.5:0/123456789

반응형

Verifying..

원래 하려고 했던 작업 재실행.

rbd rm [pool]/[volume]

Removing image: 100% complete...done.
728x90
반응형