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 
> you added.
> However, you must only run that ONCE, running it at every boot will likely 
> wipe out the data from it and re-add it to the LVM so be careful.
> Another gotcha is that if you add yet another DATA disk, it will be called 
> /dev/vdc or /dev/vdd and so on, you will need to add some extra logic into 
> your scripts to make sure you will not lose any data.
>

cloud-init has resize hooks. Maybe those could work on CloudStack templates 
also.


--
@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

CloudStack Bootcamp Training on 27/28 November, Bangalore
http://www.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 is a registered trademark.

Reply via email to