You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Joaquin Angel Alonso Alvarez <ja...@izertis.com> on 2013/03/07 11:12:23 UTC

Backup projects?

Hi,
Is there a way to backup a project (VMs, and network configuration)?
The idea is to set-up laboratories and be able to get back to a particular state, even to delete the project and recover it for a similar future lab, not to start it all over.
Thanks in advance,

Joaquín Angel Alonso Alvarez
Administrador de Sistemas
Infraestructuras y Sistemas
Tel: +34 902932900
jalonso@izertis.com <ma...@izertis.com>
[Izertis]<http://www.izertis.com/>

Parque Científico - Tecnológico, Zona Intra
Avda. del Jardín Botánico 1345 - 33203 Gijón (Asturias)
Tel: +34 902 932 400 | Fax: +34 902 932 401
www.izertis.com <http://www.izertis.com>   [rss] <http://www.izertis.com/izertis/index.php?option=com_content&view=section&layout=blog&id=4&format=feed&type=rss>   [facebook] <http://www.facebook.com/pages/IZERTIS/216735738338230>   [twitter] <http://twitter.com/#!/IZERTIS>   [linkedin] <http://www.linkedin.com/company/izertis>   [youtube] <http://www.youtube.com/user/Izertis>


[arbol]Antes de imprimir este email piense si es necesario hacerlo. Proteger el medio ambiente está también en su mano.
AVISO LEGAL
Le informamos, como destinatario de este mensaje que el mismo va dirigido, de manera exclusiva, a su destinatario y contiene información confidencial y sujeta al secreto profesional, cuya divulgación no está permitida por la ley. Si Vd. no es el destinatario indicado, se le informa de que cualquier forma de distribución, reproducción o uso de esta comunicación y/o de la información contenida en la misma están estrictamente prohibidos y podría ser ilegal. Si Vd. ha recibido esta comunicación por error, por favor, notifíquelo inmediatamente al remitente contestando a este mensaje y proceda a continuación a destruirlo.



Re: Backup projects?

Posted by David Nalley <da...@gnsa.us>.
2013/3/7 Joaquin Angel Alonso Alvarez <ja...@izertis.com>
>
> Hi,
>
> Is there a way to backup a project (VMs, and network configuration)?
>
> The idea is to set-up laboratories and be able to get back to a particular state, even to delete the project and recover it for a similar future lab, not to start it all over.
>
> Thanks in advance,
>

So sorta:

In a less than ideal world you'd have snapshots of machines to
represent state that you care about and a marvin config file to
redeploy your environment. Bug again that's less than ideal, and it's
a role CloudStack isn't really designed to solve.

Ideally you'd be using configuration management. A puppet or a chef
would allow you to define how a machine is configured. Additionally,
there are, for sake of simplicity what we will call, plugins to each
of those systems that allow you to define network, machine size, etc.
So you could have a hadoop cluster configured thusly:

"name": "hadoop_cluster_a",
"description": "A small hadoop cluster with hbase",
"version": "1.0",
"environment": "production",
"servers": [
  {
    "name": "zookeeper-a, zookeeper-b, zookeeper-c",
    "description": "Zookeeper nodes",
    "template": "rhel-5.6-base",
    "service": "small",
    "port_rules": "2181",
    "run_list": "role[cluster_a], role[zookeeper_server]",
    "actions": [
      { "knife_ssh": ["role:zookeeper_server", "sudo chef-client"] }
    ]
  },
  {
    "name": "hadoop-master",
    "description": "Hadoop master node",
    "template": "rhel-5.6-base",
    "service": "large",
    "networks": "app-net, storage-net",
    "port_rules": "50070, 50030, 60010",
    "run_list": "role[cluster_a], role[hadoop_master], role[hbase_master]"
  },
  {
    "name": "hadoop-worker-a hadoop-worker-b hadoop-worker-c",
    "description": "Hadoop worker nodes",
    "template": "rhel-5.6-base",
    "service": "medium",
    "port_rules": "50075, 50060, 60030",
    "run_list": "role[cluster_a], role[hadoop_worker],
role[hbase_regionserver]",
    "actions": [
      { "knife_ssh": ["role:hadoop_master", "sudo chef-client"] },
      { "http_request": "http://${hadoop-master}:50070/index.jsp" }
    ]
  }