Force Delete Cinder Volume OpenStack

[[email protected]~]# cinder list
[[email protected]~]# cinder reset-state --state available $VOLUME_UUID
[[email protected]~]# cinder reset-state --attach-status detached $VOLUME_UUID
[[email protected]~]# cinder delete $VOLUME_UUID
[[email protected]~]# mysql -u root -p
mysql> use cinder;
mysql>update volumes set attach_status='detached',status='available' where id ='$VOLUME_UUID';
[[email protected]~]# 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