Github user ustcweizhou commented on the pull request:
https://github.com/apache/cloudstack/pull/1145#issuecomment-161243997
@wilderrodrigues I just tested.
I set the storage.cleanup.interval to 60s, the storage.cleanup.delay to
120s.
I restored a VM, then the old volume of the vm will be in 'Destroy' state
```
mysql> select id,name,uuid,created,updated,removed,state from volumes where
id=7574\G
*************************** 1. row ***************************
id: 7574
name: ROOT-7558
uuid: 82c5991d-5211-4fd8-bd8b-f1285cc50574
created: 2015-11-30 08:27:36
updated: 2015-12-02 09:50:34
removed: NULL
state: Destroy
1 row in set (0.00 sec)
```
The volume is expunged after 2-3 minutes.
```
mysql> select id,name,uuid,created,updated,removed,state from volumes where
id=7574\G
*************************** 1. row ***************************
id: 7574
name: ROOT-7558
uuid: 82c5991d-5211-4fd8-bd8b-f1285cc50574
created: 2015-11-30 08:27:36
updated: 2015-12-02 09:53:31
removed: 2015-12-02 09:53:31
state: Expunged
1 row in set (0.00 sec)
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---