- 积分
- 16840
在线时间 小时
最后登录1970-1-1
|

楼主 |
发表于 2021-10-20 10:28:49
|
显示全部楼层
[root@compute01 ~]# rbd rm -p images 9e2e2558-a91f-4dcf-849e-86ee10c304fc% j0 b2 j" @4 C
2021-10-20 10:27:24.373 7fe16f8eeb00 -1 librbd::image::PreRemoveRequest: 0x563e1382ec20 check_image_snaps: image has snapshots - not removing4 h: u" q* m! { \. Q; C
Removing image: 0% complete...failed.# W/ q4 U. e, ~/ y- q6 b' e, o. D: m
rbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.
% s: ~. C& E% \1 p, c4 U[root@compute01 ~]# rbd snap purge -p images 9e2e2558-a91f-4dcf-849e-86ee10c304fc6 @# d$ U9 N; |6 u" ~# b: L8 ~6 l! x
rbd: error removing snapshot(s) 'snap', which is protected - these must be unprotected with `rbd snap unprotect`.1 b j) D1 K& i, w6 t6 h x1 H
Removing all snapshots: 0% complete...failed.
, ^0 k8 ]3 Q4 K0 x4 l+ ?, ?5 M! C
7 q1 z, J- {7 g9 g0 F; V: m[root@compute01 ~]# rbd snap unprotect -p images 9e2e2558-a91f-4dcf-849e-86ee10c304fc@snap
h. G* Z7 J9 t6 Z* n; r[root@compute01 ~]# rbd snap purge -p images 9e2e2558-a91f-4dcf-849e-86ee10c304fc7 A8 V# t e2 v/ h }
Removing all snapshots: 100% complete...done.
5 |; J+ D4 @0 U+ f4 j2 \! I[root@compute01 ~]# rbd rm -p images 9e2e2558-a91f-4dcf-849e-86ee10c304fc, G- Z: r4 \1 T6 C" a' I# M
Removing image: 100% complete...done. |
|