From 3f0a09fe995c3b7ac265bcb5704b3c03540962f6 Mon Sep 17 00:00:00 2001 From: dougbtv Date: Tue, 3 Jan 2017 14:03:30 -0500 Subject: [PATCH] Add docs about partition resizing for CentOS The CentOS custom cloud image example is missing the proper depedency to grow the root partition and also omits that the root partition should be the last partition created during disk partitioning. Change-Id: I9a35393c933472d86a21830ff6077e28fee68745 --- doc/image-guide/source/centos-image.rst | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/doc/image-guide/source/centos-image.rst b/doc/image-guide/source/centos-image.rst index 78b4dc1c12..e8f6408c0e 100644 --- a/doc/image-guide/source/centos-image.rst +++ b/doc/image-guide/source/centos-image.rst @@ -122,8 +122,11 @@ three partitions (``/boot``, ``/``, ``swap``), which works fine. Alternatively, you might want to create a single ext4 partition that is mounted to ``/``, which also works fine. -If unsure, use the default partition scheme for the installer -because no scheme is better than another. +If unsure, use the default partition scheme for the installer. +While no scheme is inherently better than another, having the +partition that you want to dynamically grow at the end of the +list will allow it to grow without crossing another +partition's boundary. Select installation option -------------------------- @@ -235,6 +238,18 @@ to the configuration file: user: admin +Install cloud-utils-growpart to allow partitions to resize +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +In order for the root partition to properly resize one must +install cloud-utils-growpart which contains the proper tools +to allow the disk to resize using cloud-init. + +.. code-block:: console + + # yum install cloud-utils-growpart + + Write a script to fetch the public key (if no cloud-init) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~