|
|
[root@compute01 ~]# rbd rm -p images 71ac5d32-3d99-464b-8036-0222e1f824ac& U Q2 c5 ]9 n$ T5 |9 g# E3 H& a
2021-10-20 10:15:05.643 7fbf1a9f4b00 -1 librbd::image::PreRemoveRequest: 0x55e04f399c00 check_image_snaps: image has snapshots - not removing/ Y8 T; ^$ F0 S" O8 ^ E1 T2 t
Removing image: 0% complete...failed.
8 a3 V9 E1 S: F7 D9 w8 brbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.
: |5 J$ s! A* J9 H2 p; z& H[root@compute01 ~]# rbd snap purge -p images 71ac5d32-3d99-464b-8036-0222e1f824ac
* F7 f6 F1 j, m- W# q% Grbd: error removing snapshot(s) 'snap', which is protected - these must be unprotected with `rbd snap unprotect`.
+ @+ K; L) I( j g8 KRemoving all snapshots: 0% complete...failed.4 U7 w6 L! j- t3 x* |2 y
) s7 }+ q+ p4 M3 P5 z
[root@compute01 ~]# rbd snap unprotect -p images 71ac5d32-3d99-464b-8036-0222e1f824ac@snap
$ L6 D6 B4 W! D. M* T; ^1 Z) Z: N[root@compute01 ~]# rbd rm -p images 71ac5d32-3d99-464b-8036-0222e1f824ac
7 b s% v8 S( b4 a+ Q5 Z6 a2021-10-20 10:15:50.933 7fe397affb00 -1 librbd::image::PreRemoveRequest: 0x5637cc38bdf0 check_image_snaps: image has snapshots - not removing
; f( o) ?$ h7 @; WRemoving image: 0% complete...failed.( [$ @% a1 ^, N" G6 ?/ Z
rbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.
5 J5 A' s$ V3 l5 T0 ^1 E% L[root@compute01 ~]# rbd snap purge -p images 71ac5d32-3d99-464b-8036-0222e1f824ac+ w- `( _7 S7 t- s/ p( }
Removing all snapshots: 100% complete...done." \- I+ t1 f# L1 d! F! k
[root@compute01 ~]# rbd rm -p images 71ac5d32-3d99-464b-8036-0222e1f824ac6 @! A" V8 q, M4 [7 ^3 j' e
Removing image: 100% complete...done.
9 i8 f- y9 K, R; n- k' H8 Y[root@compute01 ~]#
& P9 c q4 j4 h |
|