Bug 29544 - kickstarting an already raided disk fails
Summary: kickstarting an already raided disk fails
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: anaconda
Version: 7.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Michael Fulbright
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-02-26 13:39 UTC by Anders Blomdell
Modified: 2007-04-18 16:31 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2001-03-13 00:34:16 UTC
Embargoed:


Attachments (Terms of Use)

Description Anders Blomdell 2001-02-26 13:39:24 UTC
Trying to do a kickstart installationon an already partitioned disk fails
when trying to use raid. With this info in the kickstart file:

  part / --usepart hda1
  part swap --usepart hda5
  part swap --usepart hdb5
  part raid.11 --usepart hda6 
  part raid.12 --usepart hdb6 
  raid /homeA --level 1 --device md0 raid.11 raid.12

I get the following error:

Traceback (innermost last):
  File "./anaconda", line 329, in ?
    instClass = Kickstart(kickstart, serial)
  File "/usr/lib/anaconda/kickstart.py", line 605, in Kickstart
    ksClass = KickstartBase(file, serial)
  File "/usr/lib/anaconda/kickstart.py", line 566, in __init__
    self.readKickstart(file)
  File "/usr/lib/anaconda/kickstart.py", line 440, in readKickstart
    handlers[args[0]](args[1:])
  File "/usr/lib/anaconda/kickstart.py", line 486, in defineRaid
    self.addRaidEntry(mntPoint, raidDev, level, extra)
  File "/usr/lib/anaconda/installclass.py", line 63, in addRaidEntry
    raise ValueError, "unknown raid device %s" % (device,)
ValueError: unknown raid device raid.11

The reason seems to be that preformatted partitions are not put in the 
self.partitions list, but only in the fstab.



IMHO: the partitioning code is so smart that mere mortals have trouble 
understanding it; perhaps it would be a good idea to simplify it and put the 
optimization burden on the person who writes the kickstart file? As it is 
now, using kickstart and more complex partitioning is almost as burdensome 
as installing windows (lots of retries until one gets a working 
configuration).

Comment 1 Michael Fulbright 2001-02-26 16:34:58 UTC
This issue has been resolved in internal CVS. You can work around it by
allocating at least one of your partitions.

To address the second concern, in the future we plan on having a way to dump an
existing installation to floppy in the form of a kickstart file so that you will
have a known good starting point.

Comment 2 Anders Blomdell 2001-03-06 10:11:59 UTC
Ok, I would really like to try the rawhide version, but I can't find the 

RedHat/instimage anywhere in the rawhide tree! How do I create one myself?





Comment 3 Anders Blomdell 2001-03-08 17:30:01 UTC
Above is the statement:
  This issue has been resolved in internal CVS.

But I still get the same error with RawHide from 2000-03-05!!


Comment 4 Michael Fulbright 2001-03-12 17:06:43 UTC
I will investigate.

Comment 5 Michael Fulbright 2001-03-13 00:34:12 UTC
Ok I think I have this one fixed now in the internal CVS tree. I have used your
ks.cfg sucessfully (and confirmed it did not work originally).


Note You need to log in before you can comment on or make changes to this bug.