|
|
楼主 |
发表于 2021-10-20 10:27:03
|
显示全部楼层
[root@compute01 ~]# rbd rm -p images 8c306caa-632e-4a7d-b77d-4805e50a34a9) a" E4 T) A8 }3 A0 q9 J
2021-10-20 10:25:27.261 7fc063adcb00 -1 librbd::image::PreRemoveRequest: 0x557a1efcfbc0 check_image_snaps: image has snapshots - not removing
% s) R' O, v! }& |Removing image: 0% complete...failed.7 W6 }+ Q$ W, F* S
rbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.! i, I* D4 H$ E
[root@compute01 ~]# rbd snap purge -p images 8c306caa-632e-4a7d-b77d-4805e50a34a9
; Y0 Q) D) s$ trbd: error removing snapshot(s) 'snap', which is protected - these must be unprotected with `rbd snap unprotect`.
% n, F/ ^, {+ C7 `0 VRemoving all snapshots: 0% complete...failed.
+ o9 ~/ U8 e$ t' r# v" n[root@compute01 ~]# rbd snap unprotect -p images 8c306caa-632e-4a7d-b77d-4805e50a34a9- N* [/ _) C0 u9 a
rbd: snapshot name was not specified
6 G* e5 `! B" T( U- T8 N[root@compute01 ~]# rbd snap unprotect -p images 8c306caa-632e-4a7d-b77d-4805e50a34a9@snap1 q W/ K a4 b3 L6 V+ k: L) B# ]
[root@compute01 ~]# rbd snap purge -p images 8c306caa-632e-4a7d-b77d-4805e50a34a9
. E$ f r- o, k* a5 B& ^Removing all snapshots: 100% complete...done.
9 }! e! e7 h1 r& Z1 S' [' F {[root@compute01 ~]# rbd rm -p images 8c306caa-632e-4a7d-b77d-4805e50a34a9
" M3 ^4 ]3 a% H" Z) c1 ZRemoving image: 100% complete...done. |
|