[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

using a raid as one disk of a another raid in kickstart file



Hello,

I am trying to use anaconda kickstart file to ready my target raid
scheme. I will make /tmp as Raid 0+1 which will be made of md0
(sdb+sdc) and sdd. Kickstart should firstly create md0 as raid0 type
and then usethis md0 and fourth disk sdd to create a raid partition.
Then md1 will be used to create /var.

For this purpose, I added "/dev/md0" as first disk and raid.03 as
second disk of this raid. Then anaconda gives the error "Tried to use
undefined partition /dev/md0 in RAID specification". Line 55 is "raid
/tmp --level=1 --device=md2 /dev/md0 raid.03"

The error Anaconda has given is also below.I think for raid part,
anaconda wants a partition that he created with part. As developers
and advanced users, Do you see any way to reach this aim?


clearpart --all --initlabel

part raid.01 --size=10000 --ondisk=sdb
part raid.02 --size=10000 --ondisk=sdc
part raid.03 --size=10000 --ondisk=sdd

# swap
part swap --size=2048 --ondisk=sdb
part swap --size=2048 --ondisk=sdc
part swap --size=2048 --ondisk=sdd

# /var
part raid.11 --size=1 --grow --ondisk=sdb
part raid.12 --size=1 --grow --ondisk=sdc
part raid.13 --size=1 --grow --ondisk=sdd

part / --fstype ext3 --size=100 --grow --ondisk=sda --asprimary --label=/
raid /tmpmd0 --level=0 --device=md0 raid.01 raid.02
raid /tmpmd1 --level=0 --device=md1 raid.11 raid.12
#line55
raid /tmp --level=1 --device=md2 /dev/md0 raid.03
raid /var --level=1 --device=md3 /dev/md1 raid.13



 +----------------+ Error Parsing Kickstart Config +-----------------+
 | The following error was found while parsing your kickstart        |
 | configuration:                                                    |
 |                                                                   |
 | The following problem occurred on line 55 of the kickstart file:  |
 |                                                                   |
 | Tried to use undefined partition /dev/md0 in RAID specification   |
    ....
 +-------------------------------------------------------------------+


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]