[install-guide/F21-rewrite] Added advanced partitioning example to Kickstart Syntax Reference

pbokoc pbokoc at fedoraproject.org
Mon Sep 15 22:32:34 UTC 2014


commit a1457ddf1db634f9821f8f3987c5682b08ad5602
Author: Petr Bokoc <pbokoc at redhat.com>
Date:   Tue Sep 16 00:25:07 2014 +0200

    Added advanced partitioning example to Kickstart Syntax Reference

 en-US/Kickstart_Syntax_Reference.xml |   62 +++++++++++++++++++++++++++++----
 1 files changed, 54 insertions(+), 8 deletions(-)
---
diff --git a/en-US/Kickstart_Syntax_Reference.xml b/en-US/Kickstart_Syntax_Reference.xml
index 2cd7cb0..eaba6fb 100644
--- a/en-US/Kickstart_Syntax_Reference.xml
+++ b/en-US/Kickstart_Syntax_Reference.xml
@@ -450,15 +450,61 @@
     </section>
     
     <section id="sect-kickstart-examples">
-		<title>Example Kickstart Configurations</title>
+        <title>Example Kickstart Configurations</title>
 
-		<section id="sect-kickstart-partitioning-example">
-			<title>Advanced Partitioning Example</title>
-			<para>
-				text
-			</para>
-		</section>
+        <section id="sect-kickstart-partitioning-example">
+            <title>Advanced Partitioning Example</title>
+            <para>
+                The following is an integrated example showing the <command>clearpart</command>, <command>zerombr</command>, <command>part</command>, <command>raid</command>, <command>volgroup</command>, and <command>logvol</command> Kickstart options in action:
+            </para>
+            <example>
+                <title>Advanced Partitioning Example</title>
+                <programlisting>
+<command>clearpart  --drives=hda,hdc</command>
+<command>zerombr</command>
+# Raid 1 IDE config 
+<command>part raid.11 --size 1000  --asprimary --ondrive=hda</command> 
+<command>part raid.12 --size 1000  --asprimary --ondrive=hda</command>
+<command>part raid.13 --size 2000  --asprimary --ondrive=hda</command>
+<command>part raid.14 --size 8000              --ondrive=hda</command>
+<command>part raid.15 --size 16384 --grow      --ondrive=hda</command>   
+<command>part raid.21 --size 1000  --asprimary --ondrive=hdc</command>
+<command>part raid.22 --size 1000  --asprimary --ondrive=hdc</command>
+<command>part raid.23 --size 2000  --asprimary --ondrive=hdc</command>
+<command>part raid.24 --size 8000              --ondrive=hdc</command>
+<command>part raid.25 --size 16384 --grow      --ondrive=hdc</command>
 
-	</section>
+# You can add --spares=x  
+<command>raid /     --fstype xfs  --device root  --level=RAID1 raid.11 raid.21</command>
+<command>raid /safe --fstype xfs  --device safe  --level=RAID1 raid.12 raid.22</command>
+<command>raid swap  --fstype swap --device swap  --level=RAID1 raid.13 raid.23</command>
+<command>raid /usr  --fstype xfs  --device usr   --level=RAID1 raid.14 raid.24</command>
+<command>raid pv.01 --fstype xfs  --device pv.01 --level=RAID1 raid.15 raid.25</command>
+
+# LVM configuration so that we can resize /var and /usr/local later
+<command>volgroup sysvg pv.01</command>
+<command>logvol /var           --vgname=sysvg --size=8000     --name=var</command> 
+<command>logvol /var/freespace --vgname=sysvg --size=8000     --name=freespacetouse</command>
+<command>logvol /usr/local     --vgname=sysvg --size=1 --grow --name=usrlocal</command>
+                </programlisting>
+                <para>
+                    This advanced example implements LVM over RAID, as well as the ability to resize various directories for future growth.
+                </para>
+                <para>
+                    First, the <command>clearpart</command> command is used on drives <systemitem>hda</systemitem> and <systemitem>hdc</systemitem> to wipe them. The <command>zerombr</command> command initializes unused partition tables.
+                </para>
+                <para>
+                    Then, the two drives are partitioned to prepare them for RAID configuration. Each drive is divided into five partitions, and each drive is partitioned into an identical layout.
+                </para>
+                <para>
+                    The next part uses these pairs of physical partitions to create a software RAID device with RAID1 level (mirroring). The first four RAID devices are used for <filename>/</filename> (root), <filename>/safe</filename>, <systemitem>swap</systemitem> and <filename>/usr</filename>. The fifth, largest pair of partitions is named <literal>pv.01</literal> and will be used in the following part as a physical volume for LVM.
+                </para>
+                <para>
+                    Finally, the last set of commands first creates a volume group named <literal>sysvg</literal> on the <literal>pv.01</literal> physical volume. Then, three logical volumes (<literal>/var</literal>, <literal>/var/freespace</literal> and <literal>/usr/local</literal>) are created and added to the <literal>sysvg</literal> volume group. The <literal>/var</literal> and <literal>/var/freespace</literal> volumes have a set size of 8 GB, and the <literal>/usr/local</literal> volume uses the <option>--grow</option> option to fill all remaining available space.
+                </para>
+            </example>
+        </section>
+
+    </section>
     
 </appendix>
\ No newline at end of file


More information about the docs-commits mailing list