I would also recommend altering template_zone_ref (removed field to
null) and making the state in vm_template as 'Active'.
Last but not the least even if they are gone from secondary storage you
can recover the templates from the vms created from templates.
On 19/09/14 4:23 PM, ilya musayev
Hi CloudStack Users,
Is there any chance to UNdelete an user and recover all the previous ISOS
and templates ?
Cheers
How long ago were they deleted and what are your expunge intervals
Regards
Geoff Higginbottom
CTO / Cloud Architect
D: +44 20 3603 0542tel:+442036030542 | S: +44 20 3603 0540tel:+442036030540
| M: +447968161581tel:+447968161581
Like 10 hours ago we have backups but I can see the templates are gonne
from secondary storage
On Sep 19, 2014 5:33 PM, Geoff Higginbottom
geoff.higginbot...@shapeblue.com wrote:
How long ago were they deleted and what are your expunge intervals
Regards
Geoff Higginbottom
CTO / Cloud
You should be able to restore the templates to sec storage and revert the
deletion in the DB by removing the entries from the 'removed' column in the
various tables such as account, domain, template etc.
Regards
Geoff Higginbottom
CTO / Cloud Architect
D: +44 20 3603 0542tel:+442036030542 |
Assuming the data still resides (you need to check you secondary store),
you can alter the removed field for that record and it will bring it
back in the UI.
Review:
SELECT * FROM cloud.vm_template; - alter removed field to null
SELECT * FROM cloud.template_store_ref; - local_path for location