You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Amir Abbasi <ab...@tebyanidc.ir> on 2015/12/05 07:19:53 UTC

How to replace Primary Storage

Hi,

 

I've added a new Primary Storage to a VMware zone and want to replace that
with old one. Both of them are VMFC (FC). What do you recommend for live
migration? What would happened if I enable maintenance mode for old Primary
storage? 

 

Thanks


Re: How to replace Primary Storage

Posted by Stavros Konstantaras <s....@uva.nl>.
I agree with Stephan, 

Live migration between Hosts with their own primary local storage works totally fine with ACS 4.5 and XenServer 6.5. I tried it not only between hosts within the same cluster but also between hosts belonging in different cluster. The same concept works fine also with ACS 4.6 and XenServer Dundee. 

What fais to work with local storage is High Availability (that will require shared primary storage). At least I haven’t find a way yet to make it work. 

Cheers
Stavros

----------------------------
Stavros Konstantaras
Science faculty Research IT support (FEIOG) 
University of Amsterdam, Science Park 904, 1098 XH

Fingerprint: E5E5 9B19 D1CD 88CD 4763  3465 A8DC 7C92 330F D59A

> On 14 Dec 2015, at 09:59, Stephan Seitz <s....@secretresearchfacility.com> wrote:
> 
> Am Montag, den 07.12.2015, 11:04 +0000 schrieb Abhinandan Prateek: 
>> Live migration across primary storages is not supported by cloudstack.
> 
> Abhinandan,
> 
> afaik, this is wrong. I've done that w/ acs 4.5 and xenserver 6.5.
> 
> cheers,
> 
> Stephan
> 


Re: How to replace Primary Storage

Posted by Stephan Seitz <s....@secretresearchfacility.com>.
Am Montag, den 07.12.2015, 11:04 +0000 schrieb Abhinandan Prateek: 
> Live migration across primary storages is not supported by cloudstack.

Abhinandan,

afaik, this is wrong. I've done that w/ acs 4.5 and xenserver 6.5.

cheers,

Stephan


Re: How to replace Primary Storage

Posted by Abhinandan Prateek <ab...@shapeblue.com>.
Live migration across primary storages is not supported by cloudstack.

If you enable maintenance mode of primary all the Vms using  it will be stooped.





On 05/12/15, 11:49 AM, "Amir Abbasi" <ab...@tebyanidc.ir> wrote:

>Hi,
>
>
>
>I've added a new Primary Storage to a VMware zone and want to replace that
>with old one. Both of them are VMFC (FC). What do you recommend for live
>migration? What would happened if I enable maintenance mode for old Primary
>storage?
>
>
>
>Thanks
>
Find out more about ShapeBlue and our range of CloudStack related services

IaaS Cloud Design & Build<http://shapeblue.com/iaas-cloud-design-and-build//>
CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/>
CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
CloudStack Software Engineering<http://shapeblue.com/cloudstack-software-engineering/>
CloudStack Infrastructure Support<http://shapeblue.com/cloudstack-infrastructure-support/>
CloudStack Bootcamp Training Courses<http://shapeblue.com/cloudstack-training/>

This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd is a company registered by The Republic of South Africa and is traded under license from Shape Blue Ltd. ShapeBlue is a registered trademark.

RE: How to replace Primary Storage

Posted by Amir Abbasi <ab...@tebyanidc.ir>.
I got it. After migrating the configuration file of the datastore and
rebooting the VM that is fine now. is this process risky, I am going to that
for functional VM's.

thanks

-----Original Message-----
From: Kevin Walker [mailto:kwalker@virtualviolet.net] 
Sent: Sunday, January 3, 2016 4:27 PM
To: users@cloudstack.apache.org
Subject: Re: How to replace Primary Storage

Are you able to storage vmotion the VM's across?

Kind regards

Kevin Walker
+968 99371303
+44 7714303479

On Jan 3, 2016, at 16:18, Amir Abbasi <ab...@tebyanidc.ir> wrote:

Hi,

I've enabled maintenance mode on Primary storage 1 and it stopped and moved
all vm' on that storage and moved to another PS automatically. But only vmdk
files have been moved and "vmx, log and other small files related to Vm's
still exist on Primary storage 1. This is why I can't unmount that from
vmware. Any idea about forcing CS/VMware to recreate those config files on
new PS. I know if I stop the VM's and move storages to third PS will fix the
problem probably.

-----Original Message-----
From: Amir Abbasi [mailto:abbasi@tebyanidc.ir]
Sent: Tuesday, December 8, 2015 7:46 AM
To: users@cloudstack.apache.org
Subject: RE: How to replace Primary Storage

Hi,

Thanks, as I found in older documents if I enable maintenance mode ol
Primary Storage then CS will try to move all storages to another Primary
Storage with same tag. Has anyone tried that?

-----Original Message-----
From: Ahmad Emneina [mailto:aemneina@gmail.com]
Sent: Monday, December 7, 2015 11:30 PM
To: Cloudstack users mailing list
Subject: Re: How to replace Primary Storage

Hey Amir, this should be doable behind the scenes with vCenter. It will
involve live storage migration, then massaging the cloudstack db (volumes
table pool_id and folder references). If snapshots are involved, its a bit
more involved.

> On Fri, Dec 4, 2015 at 10:19 PM, Amir Abbasi <ab...@tebyanidc.ir> wrote:
> 
> Hi,
> 
> 
> 
> I've added a new Primary Storage to a VMware zone and want to replace 
> that with old one. Both of them are VMFC (FC). What do you recommend 
> for live migration? What would happened if I enable maintenance mode 
> for old Primary storage?
> 
> 
> 
> Thanks


Re: How to replace Primary Storage

Posted by Kevin Walker <kw...@virtualviolet.net>.
Are you able to storage vmotion the VM's across?

Kind regards

Kevin Walker
+968 99371303
+44 7714303479

On Jan 3, 2016, at 16:18, Amir Abbasi <ab...@tebyanidc.ir> wrote:

Hi,

I've enabled maintenance mode on Primary storage 1 and it stopped and moved all vm' on that storage and moved to another PS automatically. But only vmdk files have been moved and "vmx, log and other small files related to Vm's still exist on Primary storage 1. This is why I can't unmount that from vmware. Any idea about forcing CS/VMware to recreate those config files on new PS. I know if I stop the VM's and move storages to third PS will fix the problem probably.

-----Original Message-----
From: Amir Abbasi [mailto:abbasi@tebyanidc.ir] 
Sent: Tuesday, December 8, 2015 7:46 AM
To: users@cloudstack.apache.org
Subject: RE: How to replace Primary Storage

Hi,

Thanks, as I found in older documents if I enable maintenance mode ol Primary Storage then CS will try to move all storages to another Primary Storage with same tag. Has anyone tried that?

-----Original Message-----
From: Ahmad Emneina [mailto:aemneina@gmail.com]
Sent: Monday, December 7, 2015 11:30 PM
To: Cloudstack users mailing list
Subject: Re: How to replace Primary Storage

Hey Amir, this should be doable behind the scenes with vCenter. It will involve live storage migration, then massaging the cloudstack db (volumes table pool_id and folder references). If snapshots are involved, its a bit more involved.

> On Fri, Dec 4, 2015 at 10:19 PM, Amir Abbasi <ab...@tebyanidc.ir> wrote:
> 
> Hi,
> 
> 
> 
> I've added a new Primary Storage to a VMware zone and want to replace 
> that with old one. Both of them are VMFC (FC). What do you recommend 
> for live migration? What would happened if I enable maintenance mode 
> for old Primary storage?
> 
> 
> 
> Thanks


RE: How to replace Primary Storage

Posted by Amir Abbasi <ab...@tebyanidc.ir>.
Hi,

I've enabled maintenance mode on Primary storage 1 and it stopped and moved all vm' on that storage and moved to another PS automatically. But only vmdk files have been moved and "vmx, log and other small files related to Vm's still exist on Primary storage 1. This is why I can't unmount that from vmware. Any idea about forcing CS/VMware to recreate those config files on new PS. I know if I stop the VM's and move storages to third PS will fix the problem probably.

-----Original Message-----
From: Amir Abbasi [mailto:abbasi@tebyanidc.ir] 
Sent: Tuesday, December 8, 2015 7:46 AM
To: users@cloudstack.apache.org
Subject: RE: How to replace Primary Storage

Hi,

Thanks, as I found in older documents if I enable maintenance mode ol Primary Storage then CS will try to move all storages to another Primary Storage with same tag. Has anyone tried that?

-----Original Message-----
From: Ahmad Emneina [mailto:aemneina@gmail.com]
Sent: Monday, December 7, 2015 11:30 PM
To: Cloudstack users mailing list
Subject: Re: How to replace Primary Storage

Hey Amir, this should be doable behind the scenes with vCenter. It will involve live storage migration, then massaging the cloudstack db (volumes table pool_id and folder references). If snapshots are involved, its a bit more involved.

On Fri, Dec 4, 2015 at 10:19 PM, Amir Abbasi <ab...@tebyanidc.ir> wrote:

> Hi,
>
>
>
> I've added a new Primary Storage to a VMware zone and want to replace 
> that with old one. Both of them are VMFC (FC). What do you recommend 
> for live migration? What would happened if I enable maintenance mode 
> for old Primary storage?
>
>
>
> Thanks
>
>


RE: How to replace Primary Storage

Posted by Jeremy Peterson <jp...@acentek.net>.
We are using XenServer 6.5 ACS 4.5 iSCSI LUN's for Primary and when I enabled multipathing I enabled maintenance mode for the LUN in question and I see all vm's migrate to another they did not reboot or shutdown.  Once in maintenance I was able to remove it from ACS and XenServer and then re-add in each location.

I haven't had to do it again since then but using shared storage I was able to reproduce what you mentioned below about old documentation. 

Jeremy


-----Original Message-----
From: Dag Sonstebo [mailto:Dag.Sonstebo@shapeblue.com] 
Sent: Tuesday, December 8, 2015 2:39 AM
To: users@cloudstack.apache.org
Subject: Re: How to replace Primary Storage

Hi Amir

Not tried it - but as Ahmad pointed out just make sure your DB matches real VMFS location, otherwise the two platforms go out of sync.

Regards,

Dag Sonstebo
Cloud Architect
ShapeBlue






On 08/12/2015, 04:15, "Amir Abbasi" <ab...@tebyanidc.ir> wrote:

>Hi,
>
>Thanks, as I found in older documents if I enable maintenance mode ol Primary Storage then CS will try to move all storages to another Primary Storage with same tag. Has anyone tried that?
>
>-----Original Message-----
>From: Ahmad Emneina [mailto:aemneina@gmail.com]
>Sent: Monday, December 7, 2015 11:30 PM
>To: Cloudstack users mailing list
>Subject: Re: How to replace Primary Storage
>
>Hey Amir, this should be doable behind the scenes with vCenter. It will involve live storage migration, then massaging the cloudstack db (volumes table pool_id and folder references). If snapshots are involved, its a bit more involved.
>
>On Fri, Dec 4, 2015 at 10:19 PM, Amir Abbasi <ab...@tebyanidc.ir> wrote:
>
>> Hi,
>>
>>
>>
>> I've added a new Primary Storage to a VMware zone and want to replace 
>> that with old one. Both of them are VMFC (FC). What do you recommend 
>> for live migration? What would happened if I enable maintenance mode 
>> for old Primary storage?
>>
>>
>>
>> Thanks
>>
>>
>
Find out more about ShapeBlue and our range of CloudStack related services

IaaS Cloud Design & Build<http://shapeblue.com/iaas-cloud-design-and-build//>
CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/>
CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
CloudStack Software Engineering<http://shapeblue.com/cloudstack-software-engineering/>
CloudStack Infrastructure Support<http://shapeblue.com/cloudstack-infrastructure-support/>
CloudStack Bootcamp Training Courses<http://shapeblue.com/cloudstack-training/>

This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd is a company registered by The Republic of South Africa and is traded under license from Shape Blue Ltd. ShapeBlue is a registered trademark.

Re: How to replace Primary Storage

Posted by Dag Sonstebo <Da...@shapeblue.com>.
Hi Amir

Not tried it - but as Ahmad pointed out just make sure your DB matches real VMFS location, otherwise the two platforms go out of sync.

Regards,

Dag Sonstebo
Cloud Architect
ShapeBlue






On 08/12/2015, 04:15, "Amir Abbasi" <ab...@tebyanidc.ir> wrote:

>Hi,
>
>Thanks, as I found in older documents if I enable maintenance mode ol Primary Storage then CS will try to move all storages to another Primary Storage with same tag. Has anyone tried that?
>
>-----Original Message-----
>From: Ahmad Emneina [mailto:aemneina@gmail.com]
>Sent: Monday, December 7, 2015 11:30 PM
>To: Cloudstack users mailing list
>Subject: Re: How to replace Primary Storage
>
>Hey Amir, this should be doable behind the scenes with vCenter. It will involve live storage migration, then massaging the cloudstack db (volumes table pool_id and folder references). If snapshots are involved, its a bit more involved.
>
>On Fri, Dec 4, 2015 at 10:19 PM, Amir Abbasi <ab...@tebyanidc.ir> wrote:
>
>> Hi,
>>
>>
>>
>> I've added a new Primary Storage to a VMware zone and want to replace
>> that with old one. Both of them are VMFC (FC). What do you recommend
>> for live migration? What would happened if I enable maintenance mode
>> for old Primary storage?
>>
>>
>>
>> Thanks
>>
>>
>
Find out more about ShapeBlue and our range of CloudStack related services

IaaS Cloud Design & Build<http://shapeblue.com/iaas-cloud-design-and-build//>
CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/>
CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
CloudStack Software Engineering<http://shapeblue.com/cloudstack-software-engineering/>
CloudStack Infrastructure Support<http://shapeblue.com/cloudstack-infrastructure-support/>
CloudStack Bootcamp Training Courses<http://shapeblue.com/cloudstack-training/>

This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd is a company registered by The Republic of South Africa and is traded under license from Shape Blue Ltd. ShapeBlue is a registered trademark.

RE: How to replace Primary Storage

Posted by Amir Abbasi <ab...@tebyanidc.ir>.
Hi,

Thanks, as I found in older documents if I enable maintenance mode ol Primary Storage then CS will try to move all storages to another Primary Storage with same tag. Has anyone tried that?

-----Original Message-----
From: Ahmad Emneina [mailto:aemneina@gmail.com] 
Sent: Monday, December 7, 2015 11:30 PM
To: Cloudstack users mailing list
Subject: Re: How to replace Primary Storage

Hey Amir, this should be doable behind the scenes with vCenter. It will involve live storage migration, then massaging the cloudstack db (volumes table pool_id and folder references). If snapshots are involved, its a bit more involved.

On Fri, Dec 4, 2015 at 10:19 PM, Amir Abbasi <ab...@tebyanidc.ir> wrote:

> Hi,
>
>
>
> I've added a new Primary Storage to a VMware zone and want to replace 
> that with old one. Both of them are VMFC (FC). What do you recommend 
> for live migration? What would happened if I enable maintenance mode 
> for old Primary storage?
>
>
>
> Thanks
>
>


Re: How to replace Primary Storage

Posted by Ahmad Emneina <ae...@gmail.com>.
Hey Amir, this should be doable behind the scenes with vCenter. It will
involve live storage migration, then massaging the cloudstack db (volumes
table pool_id and folder references). If snapshots are involved, its a bit
more involved.

On Fri, Dec 4, 2015 at 10:19 PM, Amir Abbasi <ab...@tebyanidc.ir> wrote:

> Hi,
>
>
>
> I've added a new Primary Storage to a VMware zone and want to replace that
> with old one. Both of them are VMFC (FC). What do you recommend for live
> migration? What would happened if I enable maintenance mode for old Primary
> storage?
>
>
>
> Thanks
>
>