|
|
[root@compute01 ~]# rbd rm volume-03a72731-8c6c-4263-a576-4f093f813acb -p vms
0 f1 W/ u6 B5 S& g: H# ^2021-05-26 10:29:18.708 7f313f7fe700 -1 librbd::image::PreRemoveRequest: 0x55bb24753310 handle_exclusive_lock: cannot obtain exclusive lock - not removing
3 @5 G- u- h P |Removing image: 0% complete...failed.5 K6 G8 X" d4 `+ R/ d+ A
rbd: error: image still has watchers
, U X+ @% S4 V3 H# ?6 o- eThis 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.
, m! c+ |2 E, z, h! d
* |$ q0 e. T6 H8 T, V+ Z[root@compute01 ~]# rbd unmap vms/volume-938ca1ed-eea8-4daa-a5ae-1bf336da1b69
* x2 ]8 J. a. W+ Wrbd: vms/volume-938ca1ed-eea8-4daa-a5ae-1bf336da1b69: not a mapped image or snapshot( ^9 s" `. F( q* r7 x' M3 k
rbd: unmap failed: (22) Invalid argument( a7 [6 ?" h3 |' s- o
[root@compute01 ~]# rbd unmap volume-938ca1ed-eea8-4daa-a5ae-1bf336da1b69 -p vms
* y$ f. Y l2 e: N1 E% l& r! u. q" Yrbd: vms/volume-938ca1ed-eea8-4daa-a5ae-1bf336da1b69: not a mapped image or snapshot) U% y7 j, E2 L) H
rbd: unmap failed: (22) Invalid argument
* N$ ?) \( z- H( w$ T1 f[root@compute01 ~]# rbd rm volume-938ca1ed-eea8-4daa-a5ae-1bf336da1b69 -p vms
" a% B G; v! W' a7 {Removing image: 100% complete...done.
. {0 M: F' G% c/ a6 v
* \* L) K; ~2 }3 y, e' e1 P5 v |
|