|
|
[root@h ~]# rbd rm volume-738bde6e-4fc6-4701-9fd5-d8cb95d7d6dd.backup.base -p backups+ k4 ?. ^. u1 n: g$ x! x: o$ Q
2021-06-03 16:02:32.837 7f9e061c0b00 -1 librbd::image::PreRemoveRequest: 0x558fba771c40 check_image_snaps: image has snapshots - not removing! f+ @- z$ M7 F2 N6 Z
Removing image: 0% complete...failed.7 r2 |1 ?) h8 W+ l* m
rbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.0 f$ A1 \0 y' w+ n; D/ L: H
/ T) h, ~0 E" v3 n/ c9 H5 A- I, H解决办法:
1 {8 x; `: o' Y- W[root@h ~]# rbd snap purge -p backups volume-738bde6e-4fc6-4701-9fd5-d8cb95d7d6dd.backup.base; }; D6 W- o- J# d- U
Removing all snapshots: 100% complete...done.
0 b" U& `' |1 c) a9 v[root@h ~]# rbd rm volume-738bde6e-4fc6-4701-9fd5-d8cb95d7d6dd.backup.base -p backups
( R$ H( z# }, W# y d5 [Removing image: 100% complete...done. e/ U/ e5 g; d% `
[root@h ~]#
. y: b* |2 H6 v' Y& h, ~' X. ? |
|