Hi Shanker , Please check following procedure , Let us know if you require more detail.
Scaling up is two-step process ======================== 1-While deploying vm CS configure memory-static-min(=memory in compute offering) , memory-static-max(=4*memory-static -min) based on vm current CO . 2-Choos a compute offering and dynamically scale up memory ,memory in CO must be <=memory static-max . To support these two steps following required ==================================== 1-xen server tools in vm 2-xen server license How Cloudstack making sure these things are installed ========================================= 1- Dynamically Scalable ="yes/No" If it is No and u try to scale up u will see following error " Unable to Scale the vm: 3e245053-4310-4154-8753-d5fd1015193c as vm does not have tools to support dynamic scaling" 2- Enable.dynamic.scale.vm ="True/False" If it is false and u try to scaleup u will see following error " oud.exception.PermissionDeniedException: Dynamically scaling virtual machines is disabled for this zone, please contact your admin" If it is true and while scaling up vm you see following error " Cannot scale up the vm because of memory constraint violation: 0 <= memory-static-min(536870912) <= memory-dynamic-min(1073741824) <= memory-dynamic-max(1073741824) <= memory-static-max(536870912)" This is because you may have enabled parameter " Enable.dynamic.scale.vm" after vm deployment . please stop and start vm ,this action will allow cloudstack to configure memory-static-min and memory static-max on xen server host.on xen host you can check these values by using this command xe vm-list params=all uuid=<uuid of vm>| grep mem Best practice ========== 1-Please read the admin guide " http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.2.0/html/Admin_Guide/changing-service-offering-for-vm.html" 2-Use licensed xen server host. 3- set Enable.dynamic.scale.vm ="True. 4-Doply vm using a template which have xen tools installed 5-Go for scaling up. Thanks Prashant -----Original Message----- From: Shanker Balan [mailto:shanker.ba...@shapeblue.com] Sent: Friday, December 20, 2013 11:27 AM To: CloudStack-Users Subject: Re: Dynamic Scaling Of CPU and RAM not working On 20-Dec-2013, at 11:13 am, Ryan Lei <ryan...@cht.com.tw> wrote: > By the way, I remember seeing this kind of error message, too. > > Cannot scale up the vm because of memory constraint violation: > 0 <= memory-static-min <= memory-dynamic-min <= memory-dynamic-max <= > memory-static-max Let me RTFM https://cwiki.apache.org/confluence/display/CLOUDSTACK/Dynamic+scaling+of+CPU+and+RAM also. I didnt do it the first time around. -- @shankerbalan M: +91 98860 60539 | O: +91 (80) 67935867 shanker.ba...@shapeblue.com | www.shapeblue.com | Twitter:@shapeblue ShapeBlue Services India LLP, 22nd floor, Unit 2201A, World Trade Centre, Bangalore - 560 055 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 is a registered trademark.