|
|
楼主 |
发表于 2021-10-20 10:27:03
|
显示全部楼层
[root@compute01 ~]# rbd rm -p images 8c306caa-632e-4a7d-b77d-4805e50a34a96 ]0 s' D' u: L$ n6 [
2021-10-20 10:25:27.261 7fc063adcb00 -1 librbd::image::PreRemoveRequest: 0x557a1efcfbc0 check_image_snaps: image has snapshots - not removing
* E+ c% x W$ P% uRemoving image: 0% complete...failed.. G. j4 T7 w2 [( T4 a4 i' r
rbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.
, l2 |8 {$ X2 i0 k" w[root@compute01 ~]# rbd snap purge -p images 8c306caa-632e-4a7d-b77d-4805e50a34a90 A. ]! W* Z& z# c% D; x2 V' ^/ N
rbd: error removing snapshot(s) 'snap', which is protected - these must be unprotected with `rbd snap unprotect`.+ n; v/ d2 k$ z' X
Removing all snapshots: 0% complete...failed.* u3 B' }7 O) ]7 j$ i- `( f" p
[root@compute01 ~]# rbd snap unprotect -p images 8c306caa-632e-4a7d-b77d-4805e50a34a9
! C$ E/ @! q' |% N. _rbd: snapshot name was not specified
8 s) Y! R, `6 _. C9 R# g[root@compute01 ~]# rbd snap unprotect -p images 8c306caa-632e-4a7d-b77d-4805e50a34a9@snap, g0 A3 B) i* D p
[root@compute01 ~]# rbd snap purge -p images 8c306caa-632e-4a7d-b77d-4805e50a34a9
' O. F, h0 ^$ @) Y- ]Removing all snapshots: 100% complete...done." f2 ?* m. ~* h3 b' l
[root@compute01 ~]# rbd rm -p images 8c306caa-632e-4a7d-b77d-4805e50a34a9
9 b8 u [, r$ @* Z6 q7 ZRemoving image: 100% complete...done. |
|