Auto-resize partition when create VM

2013-11-21 Thread Fariborz Navidan
Hi. When a new VM from template is created the main partition is not resized to the sized defined in disk offering. So the volume has space but not usable. How make it resize automatically when a VM is created? Regards.

Re: Auto-resize partition when create VM

2013-11-21 Thread Nux!
On 21.11.2013 10:57, Fariborz Navidan wrote: Hi. When a new VM from template is created the main partition is not resized to the sized defined in disk offering. So the volume has space but not usable. How make it resize automatically when a VM is created? When you create an instance from a

Re: Auto-resize partition when create VM

2013-11-21 Thread Fariborz Navidan
SolusVM does this autpmatically! Isn't it possible to make it fully ready just after instance is created? On Thu, Nov 21, 2013 at 2:33 PM, Nux! n...@li.nux.ro wrote: On 21.11.2013 10:57, Fariborz Navidan wrote: Hi. When a new VM from template is created the main partition is not resized

Re: Auto-resize partition when create VM

2013-11-21 Thread Nux!
On 21.11.2013 11:11, Fariborz Navidan wrote: SolusVM does this autpmatically! Isn't it possible to make it fully ready just after instance is created? Well, it's not the cloud software's job to format and mount your drives. If you are not comfortable with doing it manually you can install

Re: Auto-resize partition when create VM

2013-11-21 Thread Nux!
On 21.11.2013 11:19, Fariborz Navidan wrote: Hi. I want to cloudstack for vps service provisioning. So end user should be confortable and can start using his/her right away. Am I choosing wrong system for this purpose? Th reason I choose CloudStack is that it is free and let me offer

Re: Auto-resize partition when create VM

2013-11-21 Thread Fariborz Navidan
If I use LVM on template, can I add a script that resizes the root logical volume (LV) via LVM on the first boot? Then how to get the allocated disk size from cloudstack? Regards. TIA On Thu, Nov 21, 2013 at 2:54 PM, Nux! n...@li.nux.ro wrote: On 21.11.2013 11:19, Fariborz Navidan wrote:

Re: Auto-resize partition when create VM

2013-11-21 Thread Nux!
On 21.11.2013 11:30, Fariborz Navidan wrote: If I use LVM on template, can I add a script that resizes the root logical volume (LV) via LVM on the first boot? Then how to get the allocated disk size from cloudstack? If you user LVM inside the template, then once you add another disk (if

Re: Auto-resize partition when create VM

2013-11-21 Thread Fariborz Navidan
Hi. Can I write down the above into a shell script and add it to first boot? Can I then resize the root volume? On Thu, Nov 21, 2013 at 3:22 PM, Nux! n...@li.nux.ro wrote: On 21.11.2013 11:30, Fariborz Navidan wrote: If I use LVM on template, can I add a script that resizes the root logical

Re: Auto-resize partition when create VM

2013-11-21 Thread Nux!
On 21.11.2013 12:05, Fariborz Navidan wrote: Hi. Can I write down the above into a shell script and add it to first boot? Can I then resize the root volume? Yes, those commands will extend your root LVM over to the new DATA disk that you added. However, you must only run that ONCE, running

Re: Auto-resize partition when create VM

2013-11-21 Thread Shanker Balan
On 21-Nov-2013, at 5:40 pm, Nux! n...@li.nux.ro wrote: On 21.11.2013 12:05, Fariborz Navidan wrote: Hi. Can I write down the above into a shell script and add it to first boot? Can I then resize the root volume? Yes, those commands will extend your root LVM over to the new DATA disk that

Re: Auto-resize partition when create VM

2013-11-21 Thread Carlos ReƔtegui
Fariborz Not sure if it is clear from your emails or not but the disk size you are selecting in the add instance wizard is not the root disk size, instead it is the size of an extra disk that will be available and attached to your instance. Hopefully Nux's emails make more sense to you now.