Re: automatic repartitioning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Yes, it can be done.
Kickstart configs are the solution.

Note:  I generally do not have more than one LV or physical partition
that is set to --grow.  But it was out of simplicity and I didn't have
a need.

Given the online documentation, it does look like you can specify more
than one.  But it does appear to only apply to LVM LVs.
Look for the following line in the documentation [0].
logvol / --vgname=myvg --size=1 --name=rootvol --grow --percent=90

I won't get around to testing this until Monday, so if you find
something out before then please share!
I can see this being plenty helpful for a web server kickstart I have
(where /var grows and / is fixed ... might be nice to have them
balance out a bit).


[0] https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Installation_Guide/s1-kickstart2-options.html

---~~.~~---
Mike
//  SilverTip257  //


On Fri, Sep 21, 2012 at 5:19 PM, Abel Lopez <alopgeek@xxxxxxxxx> wrote:
> Hello all.
> Does anyone have any suggestions for making centos cloud images that can automatically repartition the root device to resize the filesystem?
>
> All the Ubuntu UEC images do this, so using the same image, you can launch cloud instances of a variety of flavors and the VM instance will repartition the root disk and resize the fs.
> The Ubuntu images utilize scripts in the initramfs dpkg that handle this. Just curious if anyone has been able to replicate this functionality.
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux