You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Ugo Vasi <ug...@procne.it> on 2017/04/06 14:02:48 UTC
Change scope of storage pool
Hello guys,
I would like to know if it's possible change the scope of a storage pool
(primary storage server) from CLUSTER to ZONE.
I need to migrate some vm from an old storage to new one but the scope
differ.
Regards
Ugo
--
U g o V a s i <ug...@procne.it>
P r o c n e s.r.l >)
via Cotonificio 45 33010 Tavagnacco IT
phone: +390432486523 fax: +390432486523
Le informazioni contenute in questo messaggio sono riservate e
confidenziali ed � vietata la diffusione in qualunque modo eseguita.
Qualora Lei non fosse la persona a cui il presente messaggio �
destinato, La invitiamo ad eliminarlo e a non leggerlo, dandocene
gentilmente comunicazione.
Per qualsiasi informazione si prega di contattare support@procne.it .
Rif. D.L. 196/2003
Re: Change scope of storage pool
Posted by Rafael Weingärtner <ra...@gmail.com>.
This is another way to go. However, it is quite a hacking.
Do not forget that the hypervisor you are using has to have zone wide
primary storage support from ACS. I am not sure if every hypervisor has
such support.
On Thu, Apr 6, 2017 at 10:50 AM, Sergey Levitskiy <
Sergey.Levitskiy@autodesk.com> wrote:
> We made such changes once. You can run the following update statement
> against ACS DB and then un-manage/mange all clusters in the zone (replace
> vmware with your hypervisor name e.g Xen, KVM). Workjed just fine. Please
> test it in the Lab first.
>
> update storage_pool set scope=’ ZONE’, hypervisor=’VMware’, pod_id=null,
> cludter_id=null where uuid=’ XXXXXXXXXXXXXXX’
>
>
>
> On 4/6/17, 7:10 AM, "Rafael Weingärtner" <ra...@gmail.com>
> wrote:
>
> Cannot you plugin the new storage and then migrate VMs volumes for
> this new
> one?
> There is a command in the API that does just that:
> https://cloudstack.apache.org/api/apidocs-4.9/apis/migrateVolume.html
>
> 2017-04-06 10:02 GMT-04:00 Ugo Vasi <ug...@procne.it>:
>
> > Hello guys,
> > I would like to know if it's possible change the scope of a storage
> pool
> > (primary storage server) from CLUSTER to ZONE.
> > I need to migrate some vm from an old storage to new one but the
> scope
> > differ.
> >
> > Regards
> > Ugo
> >
> > --
> >
> > U g o V a s i <ug...@procne.it>
> > P r o c n e s.r.l >)
> > via Cotonificio 45 33010 Tavagnacco IT
> > phone: +390432486523 fax: +390432486523
> >
> > Le informazioni contenute in questo messaggio sono riservate e
> > confidenziali ed è vietata la diffusione in qualunque modo eseguita.
> > Qualora Lei non fosse la persona a cui il presente messaggio è
> > destinato, La invitiamo ad eliminarlo e a non leggerlo, dandocene
> > gentilmente comunicazione.
> > Per qualsiasi informazione si prega di contattare support@procne.it
> .
> > Rif. D.L. 196/2003
> >
> >
>
>
> --
> Rafael Weingärtner
>
>
>
--
Rafael Weingärtner
Re: Change scope of storage pool
Posted by Sergey Levitskiy <Se...@autodesk.com>.
We made such changes once. You can run the following update statement against ACS DB and then un-manage/mange all clusters in the zone (replace vmware with your hypervisor name e.g Xen, KVM). Workjed just fine. Please test it in the Lab first.
update storage_pool set scope=’ ZONE’, hypervisor=’VMware’, pod_id=null, cludter_id=null where uuid=’ XXXXXXXXXXXXXXX’
On 4/6/17, 7:10 AM, "Rafael Weingärtner" <ra...@gmail.com> wrote:
Cannot you plugin the new storage and then migrate VMs volumes for this new
one?
There is a command in the API that does just that:
https://cloudstack.apache.org/api/apidocs-4.9/apis/migrateVolume.html
2017-04-06 10:02 GMT-04:00 Ugo Vasi <ug...@procne.it>:
> Hello guys,
> I would like to know if it's possible change the scope of a storage pool
> (primary storage server) from CLUSTER to ZONE.
> I need to migrate some vm from an old storage to new one but the scope
> differ.
>
> Regards
> Ugo
>
> --
>
> U g o V a s i <ug...@procne.it>
> P r o c n e s.r.l >)
> via Cotonificio 45 33010 Tavagnacco IT
> phone: +390432486523 fax: +390432486523
>
> Le informazioni contenute in questo messaggio sono riservate e
> confidenziali ed è vietata la diffusione in qualunque modo eseguita.
> Qualora Lei non fosse la persona a cui il presente messaggio è
> destinato, La invitiamo ad eliminarlo e a non leggerlo, dandocene
> gentilmente comunicazione.
> Per qualsiasi informazione si prega di contattare support@procne.it .
> Rif. D.L. 196/2003
>
>
--
Rafael Weingärtner
Re: Change scope of storage pool
Posted by Simon Weller <sw...@ena.com>.
If I recall correctly (I might be wrong though), I thought you had to detach the volumes from the VM before you could do this, hence why I suggest the VM migrate call instead, as it handles figuring out the attached volumes.
- Si
________________________________
From: Rafael Weingärtner <ra...@gmail.com>
Sent: Thursday, April 6, 2017 9:10 AM
To: users@cloudstack.apache.org
Subject: Re: Change scope of storage pool
Cannot you plugin the new storage and then migrate VMs volumes for this new
one?
There is a command in the API that does just that:
https://cloudstack.apache.org/api/apidocs-4.9/apis/migrateVolume.html
2017-04-06 10:02 GMT-04:00 Ugo Vasi <ug...@procne.it>:
> Hello guys,
> I would like to know if it's possible change the scope of a storage pool
> (primary storage server) from CLUSTER to ZONE.
> I need to migrate some vm from an old storage to new one but the scope
> differ.
>
> Regards
> Ugo
>
> --
>
> U g o V a s i <ug...@procne.it>
> P r o c n e s.r.l >)
> via Cotonificio 45 33010 Tavagnacco IT
> phone: +390432486523 fax: +390432486523
>
> Le informazioni contenute in questo messaggio sono riservate e
> confidenziali ed è vietata la diffusione in qualunque modo eseguita.
> Qualora Lei non fosse la persona a cui il presente messaggio è
> destinato, La invitiamo ad eliminarlo e a non leggerlo, dandocene
> gentilmente comunicazione.
> Per qualsiasi informazione si prega di contattare support@procne.it .
> Rif. D.L. 196/2003
>
>
--
Rafael Weingärtner
Re: Change scope of storage pool
Posted by Rafael Weingärtner <ra...@gmail.com>.
Cannot you plugin the new storage and then migrate VMs volumes for this new
one?
There is a command in the API that does just that:
https://cloudstack.apache.org/api/apidocs-4.9/apis/migrateVolume.html
2017-04-06 10:02 GMT-04:00 Ugo Vasi <ug...@procne.it>:
> Hello guys,
> I would like to know if it's possible change the scope of a storage pool
> (primary storage server) from CLUSTER to ZONE.
> I need to migrate some vm from an old storage to new one but the scope
> differ.
>
> Regards
> Ugo
>
> --
>
> U g o V a s i <ug...@procne.it>
> P r o c n e s.r.l >)
> via Cotonificio 45 33010 Tavagnacco IT
> phone: +390432486523 fax: +390432486523
>
> Le informazioni contenute in questo messaggio sono riservate e
> confidenziali ed è vietata la diffusione in qualunque modo eseguita.
> Qualora Lei non fosse la persona a cui il presente messaggio è
> destinato, La invitiamo ad eliminarlo e a non leggerlo, dandocene
> gentilmente comunicazione.
> Per qualsiasi informazione si prega di contattare support@procne.it .
> Rif. D.L. 196/2003
>
>
--
Rafael Weingärtner
Re: Change scope of storage pool
Posted by Simon Weller <sw...@ena.com>.
Honestly, I've never tried to see if this would work.
So you can migrate to a different cluster, so why don't you setup up a couple of hosts in a different cluster tied to your new primary storage. You can then stop the vm, migrate it to the new cluster (Cloudstack uses secondary storage to do this by copying the image from primary -> secondary -> new primary.
- Si
________________________________
From: Ugo Vasi <ug...@procne.it>
Sent: Thursday, April 6, 2017 9:02 AM
To: users@cloudstack.apache.org
Subject: Change scope of storage pool
Hello guys,
I would like to know if it's possible change the scope of a storage pool
(primary storage server) from CLUSTER to ZONE.
I need to migrate some vm from an old storage to new one but the scope
differ.
Regards
Ugo
--
U g o V a s i <ug...@procne.it>
P r o c n e s.r.l >)
via Cotonificio 45 33010 Tavagnacco IT
phone: +390432486523 fax: +390432486523
Le informazioni contenute in questo messaggio sono riservate e
confidenziali ed è vietata la diffusione in qualunque modo eseguita.
Qualora Lei non fosse la persona a cui il presente messaggio è
destinato, La invitiamo ad eliminarlo e a non leggerlo, dandocene
gentilmente comunicazione.
Per qualsiasi informazione si prega di contattare support@procne.it .
Rif. D.L. 196/2003