Hi Len,

Thank you very much for your instructions.


-----Original Message-----
From: Len Bellemore [mailto:[email protected]] 
Sent: Tuesday, June 17, 2014 2:39 PM
To: [email protected]
Subject: RE: CloudStack Volume Life Cycle

Hi Suneel,

I've had this where I restarted the management servers while the volumes or vms 
were expunging.
Bear in mind that the volumes might still actually be expunging and can take a 
bit of time to finally disappear.

If you're absolutely sure that the volumes are stuck in that state, you can 
edit the database to force CS into  thinking the volumes have been deleted.

First back up the cloud database:
 mysqldump -u root -p cloud >/tmp/cloud_dbdump.sql

Log into mysql:
mysql -u root -p

use the Cloud database:
use cloud;

Verify which volumes are in the incorrect state:
select id, name, instance_id, uuid, folder from volumes where removed is null 
and state='Expunged'\G update volumes set removed=now() where id=<id of volume> 
;

This will remove the volume from the UI, the sytem will believe that the volume 
has been removed, but you must still manually remove the volume from the NFS 
share if need be.

-----Original Message-----
From: Venkata Suneel Babu Mallela [mailto:[email protected]]
Sent: 17 June 2014 10:01
To: [email protected]
Subject: CloudStack Volume Life Cycle

Hi All,

I tried to delete a volume from CloudStack UI, but it is struck at "Expunging" 
state. Manually I've changed volume state from "Expunging" to "Destroy" in 
cloud.volumes table. After 60 seconds the state becomes "Expunging". I tried 
lot of times but still the state is at "Expunging". Is there any recommended 
way to remove the volumes from CloudStack UI and Physically.

Thank you,
Suneel Mallela

________________________________
IMPORTANT NOTICE. This electronic message contains information from Control 
Circle Ltd, which may be privileged or confidential. The information is 
intended for use only by the individual(s) or entity named above. If you are 
not the intended recipient, be aware that any disclosure, copying, distribution 
or use of the contents of this information is strictly prohibited. If you have 
received this electronic message in error, please notify me by telephone or 
email (to the number or email address above) immediately. Activity and use of 
the ControlCircle e-mail system is monitored to secure its effective operation 
and for other lawful business purposes. Communications using this system will 
also be monitored and may be recorded to secure effective operation and for 
other lawful business purposes

Reply via email to