Force Delete Cinder Volume OpenStack

[root@controller~]# cinder list
[root@controller~]# cinder reset-state --state available $VOLUME_UUID
[root@controller~]# cinder reset-state --attach-status detached $VOLUME_UUID
[root@controller~]# cinder delete $VOLUME_UUID
[root@controller~]# mysql -u root -p
mysql> use cinder;
mysql>update volumes set attach_status='detached',status='available' where id ='$VOLUME_UUID';
[root@controller~]# cinder delete $VOLUME_UUID
mysql>update volumes set deleted=1,status='deleted',deleted_at=now(),updated_at=now() where deleted=0 and id='$VOLUME_UUID';

Comments