Kickstart File For Software Raid

Home » CentOS » Kickstart File For Software Raid
CentOS 3 Comments

I am using a kickstart file for CentOS 7

raid / –device=md0 –fstype=”xfs”
–level=1 –useexisting raid /home –noformat –device=md1
–level=1 –useexisting

It is erroring out on the –useexisting.

The exact text is:
RAID volume “0” specified with “–useexisting” does not exist.

What did I do wrong?

Jerry

3 thoughts on - Kickstart File For Software Raid

  • Sorry – I did not include that I am actually “updating” a system from C6 to C7 and it has an existing RAID /dev/md0 and /dev/md1. Hit send to quick.

    Jerry

  • It still needs to know what partitions are being used for that device. So it is parsing –useexisting as the drives which make up md0

    I am guessing the syntax is supposed to be:

    part raid.0011 –usepart=/dev/sda1
    part raid.0012 –usepart=/dev/sdb1

    raid / –device=md0 –fstype=”xfs” –level=1 –useexisting raid.0011
    raid.0012

    This will still reformat the raid device from the man page:

    –useexisting – Use an existing RAID device and reformat it.

  • Hi Stephen,

    Thanks! So I think this is what I need then. part raid.0011 –usepart/dev/sda1
    part raid.0021 –usepart/dev/sdb2
    part raid.0013 –usepart/dev/sda3
    part raid.0022 –usepart/dev/sdb3
    raid / –device=md0 –fstype=”xfs” –level=1
    –useexisting raid.0011 raid.0021
    raid /home –noformat –device=md1 –level=1
    –useexisting raid.0013 raid.0023

    for /dev/sda and /dev/sdb with the 1 partition being / and 3 partition being /home to reformat /root and noformat of /home

    Thanks,

    Jerry