|
|
[root@h ~]# rbd rm volume-738bde6e-4fc6-4701-9fd5-d8cb95d7d6dd.backup.base -p backups
% O9 g& `* u5 u; a" a* S2021-06-03 16:02:32.837 7f9e061c0b00 -1 librbd::image::PreRemoveRequest: 0x558fba771c40 check_image_snaps: image has snapshots - not removing$ Y, o, p: z( |# Q4 {
Removing image: 0% complete...failed." y* b2 `7 S1 R+ g9 b0 h
rbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.
5 J, G# v7 | i( @ v; u6 l4 f. K
解决办法:* ^; I+ t) ]: [9 _# C
[root@h ~]# rbd snap purge -p backups volume-738bde6e-4fc6-4701-9fd5-d8cb95d7d6dd.backup.base
1 b& [- v& i4 j8 t9 }! s2 I$ QRemoving all snapshots: 100% complete...done.0 M9 {# y) o' R" a3 C" m
[root@h ~]# rbd rm volume-738bde6e-4fc6-4701-9fd5-d8cb95d7d6dd.backup.base -p backups
* t" G; w) |+ J' B% B* kRemoving image: 100% complete...done.8 [' H7 g. q' D: L$ A1 J
[root@h ~]#
+ S) t7 m+ }4 R* X |
|