[CentOS] CentOS 7 install on one RAID 1 [SOLVED]

Tue Jan 24 19:29:07 UTC 2017
Valeri Galtsev <galtsev at kicp.uchicago.edu>

On Tue, January 24, 2017 1:10 pm, m.roth at 5-cent.us wrote:
> Gordon Messmer wrote:
>> On 01/24/2017 08:33 AM, m.roth at 5-cent.us wrote:
>>>     I'm building a new box, and I want three partitions - /boot, /, and
>>> swap, on*one*  RAID 1, not three separate partitions. Other than
>>> <alt-f2> mdadm...,*is*  there any way in the graphical installer to do
>>> this? All I see is a way to make three separate partitions.
> If that wasn't clear, I meant to make the two drives into a single RAID 1,
> *then* partition that for root, swap, and boot.
>> I don't know the answer to that question, but what I can tell you is
>> that I handle software RAID setup in kickstart, creating the partitions
>> manually, so that I can replace drives using a shell script.  Making the
> <snip>
> Trouble is, it's for this one box. Next box, or the one after, will be
> happy with the kickstart as it is.
> The solved part: I did the <alt-F2> and created the RAID 1.

The trouble is: this will be not part of your /root/initial-setup-ks.cfg
file after installation completes. That means, you will have to do that
part (which basically makes drives members of software RAID - mirror)
before kickstart installation on each box. Or you may need to add this
part at the very top of your kickstart file, followed by something like

 mdadm --assemble --scan

- I'm not certain though to what extent it is doable. I'm a "hardware
RAID" guy...


> I went back to
> the GUI, and tried to rescan... it didn't find it, didn't show any drives,
> then it showed the two real drives... then it gagged, and crashed, and
> rebooted. HOWEVER, when I tried the next time, anaconda's probing found
> the RAID, and I'm installing now.
> *phew*
>          mark
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> https://lists.centos.org/mailman/listinfo/centos

Valeri Galtsev
Sr System Administrator
Department of Astronomy and Astrophysics
Kavli Institute for Cosmological Physics
University of Chicago
Phone: 773-702-4247