<?xml version="1.0" ?><entry xmlns="http://www.w3.org/2005/Atom" xmlns:planet="http://planet.intertwingly.net/"><id>tag:blogger.com,1999:blog-3437301763614556691.post-5390044633486265637</id><link href="https://blog.achernya.com/feeds/5390044633486265637/comments/default" rel="replies" title="Post Comments" type="application/atom+xml"/><link href="https://blog.achernya.com/2013/04/installing-fedora-18-with-lvm-and-mdadm.html#comment-form" rel="replies" title="0 Comments" type="text/html"/><link href="https://www.blogger.com/feeds/3437301763614556691/posts/default/5390044633486265637" rel="edit" type="application/atom+xml"/><link href="https://www.blogger.com/feeds/3437301763614556691/posts/default/5390044633486265637" rel="self" type="application/atom+xml"/><link href="https://blog.achernya.com/2013/04/installing-fedora-18-with-lvm-and-mdadm.html" rel="alternate" title="Installing Fedora 18 with LVM and mdadm RAID" type="text/html"/><title>Installing Fedora 18 with LVM and mdadm RAID</title><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">A few days ago, I was installing a Fedora 18 on a brand-new machine, which had two <a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16822136533">1TB SATA hard drives</a> which I wanted to put into a RAID1 (mirroring) configuration. <a href="http://linux.die.net/man/8/mdadm">mdadm</a> makes managing software RAID on Linux easy, and the Fedora Installer (anaconda) has always had extremely powerful tools for setting up a RAID.<br/>
<br/>
Anaconda also supports Logical Volume Manager (LVM), which is part of the recommended configuration for Fedora, because it adds lots of cool features, like being able to have non-contiguous partitions, moving partitions around the disk, between disks, and even spanning disks!<br/>
<br/>
Combining the data redundant of mdadm with the partitioning features of LVM is a common strategy, but unfortunately one that's not longer supported in Fedora 18's Anaconda. In fact, there's an <a href="https://bugzilla.redhat.com/show_bug.cgi?id=888863">open bug</a> on the subject, and a very heated discussion on the <a href="http://thread.gmane.org/gmane.linux.redhat.fedora.general/424426">mailing lists</a>.<br/>
<br/>
The official solution is to forego the graphical installer entirely, and is to use a kickstart script -- Anaconda's automated install mode. After a lot of trial and error, I managed to get a kickstart that works, but only when the installer was booted with <span style="font-family: Courier New, Courier, monospace;">noefi</span><span style="font-family: inherit;">. The kickstart was copied onto a FAT32-formatted flash drive as the file </span><span style="font-family: Courier New, Courier, monospace;">ks.cfg</span><span style="font-family: inherit;">, and loaded with the boot parameter </span><span style="font-family: Courier New, Courier, monospace;">ks=hd:/sdc1/ks.cfg</span><br/>
<span style="font-family: Courier New, Courier, monospace;"><br/></span>
<span style="font-family: inherit;">This kickstart has one down side: it formats the entire raw disks, so it's not suitable for adding a Fedora installation to an existing LVM-with-mdadm configuration. I'm still investigating how to get anaconda to cooperate when the RAID and LVM is already configured.</span><br/>
<br/>
<div class="gistLoad" id="gist-5343519">
Loading this gist...</div></div></content><updated planet:format="November 02, 2014 01:36 AM">2014-11-02T01:36:21Z</updated><published planet:format="April 09, 2013 07:31 AM">2013-04-09T07:31:00Z</published><author><name>Alex Chernyakhovsky</name><email>noreply@blogger.com</email><uri>http://www.blogger.com/profile/11975049716533800589</uri></author><source><id>tag:blogger.com,1999:blog-3437301763614556691</id><author><name>Alex Chernyakhovsky</name><email>noreply@blogger.com</email><uri>http://www.blogger.com/profile/11975049716533800589</uri></author><link href="https://blog.achernya.com/feeds/posts/default" rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml"/><link href="https://www.blogger.com/feeds/3437301763614556691/posts/default" rel="self" type="application/atom+xml"/><link href="https://blog.achernya.com/" rel="alternate" type="text/html"/><link href="http://pubsubhubbub.appspot.com/" rel="hub" type="text/html"/><title>Alex Chernyakhovsky</title><updated planet:format="October 24, 2024 03:12 PM">2024-10-24T15:12:40Z</updated><planet:format>atom10</planet:format><planet:http_etag>W/&quot;b9560f01078294003119e3f65e1a161abcb19a55264a5e7f77bec04138bc5da6&quot;</planet:http_etag><planet:days_per_page>0</planet:days_per_page><planet:http_last_modified>Thu, 24 Oct 2024 15:12:40 GMT</planet:http_last_modified><planet:bozo>false</planet:bozo><planet:encoding>utf-8</planet:encoding><planet:items_per_page>60</planet:items_per_page><planet:css-id>alex-chernyakhovsky</planet:css-id><planet:name>Alex Chernyakhovsky</planet:name><planet:http_location>https://blog.achernya.com/feeds/posts/default</planet:http_location><planet:http_status>301</planet:http_status></source></entry>