|
|
[root@compute01 ~]# rbd rm -p images 71ac5d32-3d99-464b-8036-0222e1f824ac
: T; |# _3 X8 j& n2021-10-20 10:15:05.643 7fbf1a9f4b00 -1 librbd::image::PreRemoveRequest: 0x55e04f399c00 check_image_snaps: image has snapshots - not removing
$ S- M0 R" Y/ v( f0 \Removing image: 0% complete...failed.) p! [0 Y4 g6 {3 o! _' n/ E
rbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.
% j/ F( C, @' B g; b4 ?1 [[root@compute01 ~]# rbd snap purge -p images 71ac5d32-3d99-464b-8036-0222e1f824ac" p% N; i' g( X9 o$ e3 q
rbd: error removing snapshot(s) 'snap', which is protected - these must be unprotected with `rbd snap unprotect`.
9 X$ O- C* |2 ^' GRemoving all snapshots: 0% complete...failed.
k; ~8 E% i8 _7 W, j4 _0 {, s" {' v+ Z+ `& O! L% z
[root@compute01 ~]# rbd snap unprotect -p images 71ac5d32-3d99-464b-8036-0222e1f824ac@snap+ H6 m; i' K. ?- [) C# b
[root@compute01 ~]# rbd rm -p images 71ac5d32-3d99-464b-8036-0222e1f824ac
( k n G% t9 p5 H* Q+ t5 D8 q2021-10-20 10:15:50.933 7fe397affb00 -1 librbd::image::PreRemoveRequest: 0x5637cc38bdf0 check_image_snaps: image has snapshots - not removing
+ y1 i. M: g+ C) ARemoving image: 0% complete...failed.
8 y& D2 f9 K. `* O5 D5 Y8 B, Hrbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.
+ v% d1 D" m: e! ^7 b5 m2 [[root@compute01 ~]# rbd snap purge -p images 71ac5d32-3d99-464b-8036-0222e1f824ac2 \7 N% S5 Y1 g. I' I3 e: \5 j; M
Removing all snapshots: 100% complete...done.
) b, p+ X; K2 q. y+ K[root@compute01 ~]# rbd rm -p images 71ac5d32-3d99-464b-8036-0222e1f824ac
9 ^9 c; Z. K8 r& \. `3 |5 u/ uRemoving image: 100% complete...done.
0 x' j7 @1 x9 P1 ^4 Q[root@compute01 ~]#
* d. | r. T. B2 [ |
|