|
|
[root@compute01 ~]# rbd rm volume-03a72731-8c6c-4263-a576-4f093f813acb -p vms
+ o# J9 n$ d1 z4 M6 H2021-05-26 10:29:18.708 7f313f7fe700 -1 librbd::image::PreRemoveRequest: 0x55bb24753310 handle_exclusive_lock: cannot obtain exclusive lock - not removing3 o( M( H8 l) k9 V4 `4 Q! e
Removing image: 0% complete...failed., m( K! t) o- X
rbd: error: image still has watchers
\: L6 L V. ^" c: W$ Z" L2 OThis 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.1 D) D* t( Q- q; k1 P9 U3 o
) h, {: b8 G0 [( H; A" o
[root@compute01 ~]# rbd unmap vms/volume-938ca1ed-eea8-4daa-a5ae-1bf336da1b69* I/ N/ ]) \( \& }" \2 U: J
rbd: vms/volume-938ca1ed-eea8-4daa-a5ae-1bf336da1b69: not a mapped image or snapshot* S5 f' U1 F* S3 t' V5 A
rbd: unmap failed: (22) Invalid argument
( Y' V& j3 {/ n7 q. p1 Q4 Q; C W[root@compute01 ~]# rbd unmap volume-938ca1ed-eea8-4daa-a5ae-1bf336da1b69 -p vms) U( K$ [$ n; f2 D
rbd: vms/volume-938ca1ed-eea8-4daa-a5ae-1bf336da1b69: not a mapped image or snapshot
- O2 E2 ]. y3 x4 |! I" K' @3 }, orbd: unmap failed: (22) Invalid argument
7 s/ T- F9 {6 u" h. H+ A[root@compute01 ~]# rbd rm volume-938ca1ed-eea8-4daa-a5ae-1bf336da1b69 -p vms- A0 I$ k% X7 D1 b& {
Removing image: 100% complete...done.: U5 f$ l3 |4 q" N4 q& J- @
2 {6 `2 `9 R" j- W6 L
|
|