[CentOS] error in kickstart file for raid1 setup

Paul Heinlein heinlein at madboa.com
Thu Jun 7 16:41:28 UTC 2007

On Thu, 7 Jun 2007, Dave wrote:

> Hello,
>   I'm trying to do a kickstart install of centos5. I'm pulling it off a 
> network server and i'm getting an error, in the parsing of the file. It 
> refers to line 31, i'm not going to show the complete file, but here is the 
> indicated line:
> raid swap --fstype swap --level=RAID1 raid.4 raid.7
> and the raid lines:
> part raid.7 --size=512 --ondisk=hdb
> part raid.4 --size=512 --ondisk=hda
> My parse error message is:
> "option --device is required"

This worked for me. It adds the --device option to each raid line.

part raid.01 --size=300  --ondisk=sda --asprimary
part raid.02 --size=300  --ondisk=sdb --asprimary
part raid.11 --size=1024 --ondisk=sda --asprimary
part raid.12 --size=1024 --ondisk=sdb --asprimary
part raid.21 --size=1    --ondisk=sda --asprimary --grow
part raid.22 --size=1    --ondisk=sdb --asprimary --grow
raid /boot --fstype ext3 --level=RAID1 --device=md0 raid.01 raid.02
raid swap  --fstype swap --level=RAID1 --device=md1 raid.11 raid.12
raid /     --fstype ext3 --level=RAID1 --device=md2 raid.21 raid.22

Paul Heinlein <> heinlein at madboa.com <> http://www.madboa.com/

More information about the CentOS mailing list