Remove Snapshot Before Rbd

syndicated
1
2
3
4
5
6
7
8
9
10
11
12
$ rbd rm rbd/myrbd
2013-07-30 14:10:13.341184 7f9e11922760 -1 librbd: image has snapshots - not removing
Removing image: 0% complete...failed.
rbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.
$ rbd snap ls rbd/myrbd
SNAPID NAME       SIZE 
    10 snap1 102400 KB 
    12 snap2 102400 KB 
$ rbd snap purge rbd/myrbd
Removing all snapshots: 100% complete...done.
$ rbd rm rbd/myrbd
Removing image: 100% complete...done.