Re: HA-enabled VM

2016-10-08 Thread Sergey Levitskiy
As it turned out on existing VMs it is not enough to change it service offering 
since the setting persists during the VM creation and remains the same.
You need to update it for each VM
You can use this sample to update a given service offering and all active VMs 
that were started up from it to be HA enabled (rerplace X with a name of 
your service offering).  Then stop/start all VMs to activate this:

update cloud.vm_instance i  
join cloud.disk_offering do on do.id=i.service_offering_id 
join service_offering so on so.id=do.id
set i.ha_enabled=1, so.ha_enabled=1
where i.removed is null and do.name = 'X'




On 10/8/16, 7:19 AM, "Gian Paolo Buono"  wrote:

I've  tried it but not work..any other suggestions?
 bye
On 10/07/2016 02:46 PM, Sergey Levitskiy wrote:

You can find all service offerings used by those VM and change in 
service_offereing table a field ha_enabled to ’1’. After that Stop/Start VMs 
should make them HA.


On 10/7/16, 5:40 AM, "Gian Paolo Buono" 
 wrote:

Thanks Boris,

It works.. The problem is that I  have 100 vm without HA, there is a
charm to enable the HA to all vm  ?

Thanks

On 10/07/2016 02:18 PM, Boris Stoyanov wrote:
> Hi Gian Paolo,
>
> In order to have a VM in HA Enabled state you need to create that VM 
with Compute Offering that has “Offer HA” checked.
>
> Thanks,
> Boris Stoyanov
> boris.stoya...@shapeblue.com
> www.shapeblue.com
> 53 Chandos Place, Covent Garden, London  WC2N 4HSUK
> @shapeblue
>
>
>
> On Oct 7, 2016, at 3:01 PM, Gian Paolo Buono 
 wrote:
>> Hi all,
>>
>> how can i set HA Enabled to yes, in the istance of Vm ? If can't 
modify
>> that parameter.
>>
>> Thanks








Re: AW: HA-enabled VM

2016-10-08 Thread Gian Paolo Buono
I've tried with the tag HA but not work :(

On 10/07/2016 02:14 PM, Jeroen Keerl wrote:

Use tag "HA",should of course be set on the hosts as well.Might be that that'll 
only work if your template has the HA tag set


Von meinem Samsung Galaxy Smartphone gesendet.

 Ursprüngliche Nachricht 
Von: Gian Paolo Buono 
 Datum: 
07.10.2016  14:03  (GMT+01:00) An: 
users@cloudstack.apache.org 
Betreff: HA-enabled VM 
Hi all,

how can i set HA Enabled to yes, in the istance of Vm ? If can't modify
that parameter.

Thanks




Jeroen Keerl


Keerl IT Services GmbH
Birkenstraße 1b . 21521 Aumühle

+49 177 6320 317

www.keerl-it.com
i...@keerl-it.com

Geschäftsführer. Jacobus J. Keerl
Registergericht Lubeck. HRB-Nr. 14511

Unsere Allgemeine Geschäftsbedingungen finden Sie hier.







Re: HA-enabled VM

2016-10-08 Thread Gian Paolo Buono
I've  tried it but not work..any other suggestions?
 bye
On 10/07/2016 02:46 PM, Sergey Levitskiy wrote:

You can find all service offerings used by those VM and change in 
service_offereing table a field ha_enabled to ’1’. After that Stop/Start VMs 
should make them HA.


On 10/7/16, 5:40 AM, "Gian Paolo Buono" 
 wrote:

Thanks Boris,

It works.. The problem is that I  have 100 vm without HA, there is a
charm to enable the HA to all vm  ?

Thanks

On 10/07/2016 02:18 PM, Boris Stoyanov wrote:
> Hi Gian Paolo,
>
> In order to have a VM in HA Enabled state you need to create that VM with 
Compute Offering that has “Offer HA” checked.
>
> Thanks,
> Boris Stoyanov
> boris.stoya...@shapeblue.com
> www.shapeblue.com
> 53 Chandos Place, Covent Garden, London  WC2N 4HSUK
> @shapeblue
>
>
>
> On Oct 7, 2016, at 3:01 PM, Gian Paolo Buono 
 wrote:
>> Hi all,
>>
>> how can i set HA Enabled to yes, in the istance of Vm ? If can't modify
>> that parameter.
>>
>> Thanks






Lost vhd file in cloudstack

2016-10-08 Thread vivek . kumar


Hello Guys,


I have a setup of acs 4.5.2 with 4 xenserver's 6.5,  one day while migrating  
root disk of a vm  to another storage pool its gives me error.


I tried to start my vm but it couldn't start and said unable to start due to 
insufficient capacity so I checked the logs and try to migrates again and this 
time it gave me error that unable to reach storage pool and the  uuid that u 
supplied is invalid. So I check the vhd file location from the db and searched 
it on my primary storage and found nothing that time. 


Then I logged in to my xen server and checked the location of that vhd  it gave 
me 3 uuid of that vms so I checked that these 3 vhd was there in my primary 
storage, and here comes the main point that these 3 vhd were very small in size 
however my original vhd would be around 100GB,  and then I did manually entry 
of that vhd path in my database but successfully to start the vm but with no 
data.


So where do I find the the old vhd file name..


So anyone have any idea that we can find the old vhd name.


Regards


Vivek Kumar