Hi Imran, If you create a VM from template then the root disk adopts the size of the original template – and the disk size your select is for *additional data disks*. So you probably now how a 5GB root disk and a 300GB data disk attached.
In that case you should no use LVM to extend the root partition if you ever want to rely on volume snapshots. There is no mechanism in CloudStack to exactly time snapshots of two disks part of the same volume group – hence you can never use this for recovery. All in all CloudStack works on the premise that your VM system volume resides on a single disk – hence you will run into problems if you go outside these boundaries. Your best bet is to either 1) build from ISO and select the 300GB disk – which will now apply to the root disk, or 2) resize your root disk and use the LVM processes described in the other emails to expand into the free space. Regards, Dag Sonstebo Cloud Architect ShapeBlue On 03/08/2017, 11:15, "Imran Ahmed" <im...@eaxiom.net> wrote: Hi Dag, Thanks for your prompt reply. During the creation of new instance I set the size of root disk to 300G. Once the instance was created , the device /dev/vda was created with 300G size. However the LVM partition still shows 5G size. (same is shown under in df -h) Regards, Imran -----Original Message----- From: Dag Sonstebo [mailto:dag.sonst...@shapeblue.com] Sent: Thursday, August 03, 2017 3:08 PM To: users@cloudstack.apache.org Subject: Re: Instance with a larger disk size then Template Hi Imran, Can you elaborate – you say your template had a 5GB root disk. Did you resize this, or did you add a disk? If you resized it then all you need to do is use your LVM and filesystem tools to expand your partition. Regards, Dag Sonstebo Cloud Architect ShapeBlue On 03/08/2017, 11:00, "Imran Ahmed" <im...@eaxiom.net> wrote: Hi All, I am creating an instance with a 300GB disk from a CentOS 7 template that has 5GB disk (LVM Based). The issue is that the root LVM partition inside the new VM instance still shows 5GB . The device size (/dev/vda) however shows 300GB. The question is what is the best strategy to resize the root LVM partition so that I could use all 300G. Kind regards, Imran dag.sonst...@shapeblue.com www.shapeblue.com 53 Chandos Place, Covent Garden, London WC2N 4HSUK @shapeblue dag.sonst...@shapeblue.com www.shapeblue.com 53 Chandos Place, Covent Garden, London WC2N 4HSUK @shapeblue