<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://alteeve.com/w/index.php?action=history&amp;feed=atom&amp;title=Install_CentOS7_with_Software_RAID_1</id>
	<title>Install CentOS7 with Software RAID 1 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://alteeve.com/w/index.php?action=history&amp;feed=atom&amp;title=Install_CentOS7_with_Software_RAID_1"/>
	<link rel="alternate" type="text/html" href="https://alteeve.com/w/index.php?title=Install_CentOS7_with_Software_RAID_1&amp;action=history"/>
	<updated>2026-04-24T01:33:50Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://alteeve.com/w/index.php?title=Install_CentOS7_with_Software_RAID_1&amp;diff=6276&amp;oldid=prev</id>
		<title>Digimer at 20:01, 5 October 2014</title>
		<link rel="alternate" type="text/html" href="https://alteeve.com/w/index.php?title=Install_CentOS7_with_Software_RAID_1&amp;diff=6276&amp;oldid=prev"/>
		<updated>2014-10-05T20:01:16Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:01, 5 October 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{howto header}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{howto header}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{note|1=This is an &#039;informal&#039; tutorial, written in the first person and not edited to the same degree as full tutorials.}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= The Goal =&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= The Goal =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key an_wiki-mediawiki-:diff:1.41:old-6275:rev-6276:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Digimer</name></author>
	</entry>
	<entry>
		<id>https://alteeve.com/w/index.php?title=Install_CentOS7_with_Software_RAID_1&amp;diff=6275&amp;oldid=prev</id>
		<title>Digimer: /* Booting Off Both Disks */</title>
		<link rel="alternate" type="text/html" href="https://alteeve.com/w/index.php?title=Install_CentOS7_with_Software_RAID_1&amp;diff=6275&amp;oldid=prev"/>
		<updated>2014-10-05T20:00:12Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Booting Off Both Disks&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;a href=&quot;https://alteeve.com/w/index.php?title=Install_CentOS7_with_Software_RAID_1&amp;amp;diff=6275&amp;amp;oldid=6274&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Digimer</name></author>
	</entry>
	<entry>
		<id>https://alteeve.com/w/index.php?title=Install_CentOS7_with_Software_RAID_1&amp;diff=6274&amp;oldid=prev</id>
		<title>Digimer: Created page with &quot;{{howto header}}  = The Goal =  A problem I had been struggling with since the release of RHEL/CentOS 7 is how to install on a software RAID 1 array such that either disk coul...&quot;</title>
		<link rel="alternate" type="text/html" href="https://alteeve.com/w/index.php?title=Install_CentOS7_with_Software_RAID_1&amp;diff=6274&amp;oldid=prev"/>
		<updated>2014-10-05T19:48:18Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{howto header}}  = The Goal =  A problem I had been struggling with since the release of RHEL/CentOS 7 is how to install on a software RAID 1 array such that either disk coul...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Páàjì titun&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{howto header}}&lt;br /&gt;
&lt;br /&gt;
= The Goal =&lt;br /&gt;
&lt;br /&gt;
A problem I had been struggling with since the release of RHEL/CentOS 7 is how to install on a software RAID 1 array such that either disk could be used to boot.&lt;br /&gt;
&lt;br /&gt;
= The Problem =&lt;br /&gt;
&lt;br /&gt;
There are two problems;&lt;br /&gt;
&lt;br /&gt;
# The default behaviour of anaconda prevents the creation of the biosboot partition on both disks. When I tried to to manually create the partitions by dropping to shell, anaconda would later fault out and the install would not complete. To get around this, a [[kickstart]] script is needed, which was booted off of a [[PXE]] server.&lt;br /&gt;
# After the kickstart install, only one disk was bootable. Trying to install grup on the second disk caused a crash.&lt;br /&gt;
&lt;br /&gt;
= The Fixes =&lt;br /&gt;
&lt;br /&gt;
== Install ==&lt;br /&gt;
&lt;br /&gt;
I have a [[Setting_Up_a_PXE_Server_on_an_RPM-based_OS|PXE Server]] already, so I decided to create a kickstart script and added an entry for it.&lt;br /&gt;
&lt;br /&gt;
* [[Setting Up a PXE Server on an RPM-based OS]]&lt;br /&gt;
&lt;br /&gt;
The kickstart script used to perform the CentOS 7 install was:&lt;br /&gt;
&lt;br /&gt;
{{note|1=Update this to match the IP of your PXE server and update the partition sizes, host name and desired VG name to what you want.}}&lt;br /&gt;
&lt;br /&gt;
{{note|1=The &amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;root&amp;lt;/span&amp;gt; password is &amp;#039;&amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;initial&amp;lt;/span&amp;gt;&amp;#039;.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
#version=RHEL7&lt;br /&gt;
# System authorization information&lt;br /&gt;
auth --enableshadow --passalgo=sha512&lt;br /&gt;
&lt;br /&gt;
# Use network installation&lt;br /&gt;
url --url=&amp;quot;http://10.255.255.254/c7/x86_64/img/&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Run the Setup Agent on first boot&lt;br /&gt;
firstboot --disable&lt;br /&gt;
ignoredisk --only-use=sda,sdb&lt;br /&gt;
&lt;br /&gt;
# Keyboard layouts&lt;br /&gt;
keyboard us&lt;br /&gt;
&lt;br /&gt;
# System language&lt;br /&gt;
lang en_CA.UTF-8&lt;br /&gt;
&lt;br /&gt;
# Network information&lt;br /&gt;
network  --bootproto=dhcp --ipv6=auto --activate&lt;br /&gt;
network  --hostname=an-nas02.kw01.alteeve.ca&lt;br /&gt;
&lt;br /&gt;
# Root password&lt;br /&gt;
rootpw --iscrypted $6$0riSEDMyCvHPdhCv$lvuhEOqU2yo9szCJHtAsVUK3maHyWlpZmVi6PCRkrOfifL/38J7SaGUopehv/rzwQvhqxNla/jPvD10uwuPY4/&lt;br /&gt;
&lt;br /&gt;
# System timezone&lt;br /&gt;
timezone Europe/London --isUtc&lt;br /&gt;
&lt;br /&gt;
# System bootloader configuration&lt;br /&gt;
bootloader --location=mbr --boot-drive=sda&lt;br /&gt;
&lt;br /&gt;
# Partition clearing information&lt;br /&gt;
clearpart --drives=sda,sdb --all --initlabel &lt;br /&gt;
&lt;br /&gt;
# Disk partitioning information&lt;br /&gt;
part biosboot --fstype=biosboot --size=2 --ondisk=sda&lt;br /&gt;
part biosboot --fstype=biosboot --size=2 --ondisk=sdb&lt;br /&gt;
&lt;br /&gt;
part raid.11 --size=500 --grow --ondisk=sda&lt;br /&gt;
part raid.12 --size=500 --grow --ondisk=sdb&lt;br /&gt;
&lt;br /&gt;
raid pv.11 --fstype=&amp;quot;lvmpv&amp;quot; --level=1 --device=md0 raid.11 raid.12&lt;br /&gt;
&lt;br /&gt;
volgroup an-nas02_vg0 --pesize=4096 pv.11&lt;br /&gt;
&lt;br /&gt;
logvol swap  --fstype=&amp;quot;swap&amp;quot; --size=32768  --name=lv_swap --vgname=an-nas02_vg0&lt;br /&gt;
logvol /boot --fstype=&amp;quot;xfs&amp;quot;  --size=512    --name=lv_boot --vgname=an-nas02_vg0&lt;br /&gt;
logvol /     --fstype=&amp;quot;xfs&amp;quot;  --size=256000 --name=lv_root --vgname=an-nas02_vg0&lt;br /&gt;
&lt;br /&gt;
eula --agreed&lt;br /&gt;
&lt;br /&gt;
%packages&lt;br /&gt;
@core&lt;br /&gt;
vim&lt;br /&gt;
perl&lt;br /&gt;
&lt;br /&gt;
%end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To boot off of this kickstart file, I used the following PXE boot entry:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
LABEL c7_x86_64&lt;br /&gt;
        MENU LABEL ^2) CentOS 7 x86_64 - an-nas02&lt;br /&gt;
        KERNEL boot/c7/x86_64/vmlinuz&lt;br /&gt;
        APPEND initrd=boot/c7/x86_64/initrd.img inst.repo=http://10.255.255.254/c7/x86_64/img/ ks=http://10.255.255.254/c7/x86_64/ks/an-nas02.ks&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this in place, boot off of the PXE server, select the entry and go grab a coffee. When you get back, the install should be finished.&lt;br /&gt;
&lt;br /&gt;
== Booting Off Both Disks ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{footer}}&lt;/div&gt;</summary>
		<author><name>Digimer</name></author>
	</entry>
</feed>