Kickstart installation do not work when moving from LVM on top of software raid to plain software raid.
Environment
- Red Hat Enterprise Linux 5.8
Issue
During re-installation and moving from LVM on top of software raid to plain software raid we see the following error and installation stops:
From the anaconda.log
22:44:42 CRITICAL: Traceback (most recent call first):
File "/usr/lib/anaconda/partRequests.py", line 811, in getDevice
if (r.size > 0) or (r.device is not None):
File "/usr/lib/anaconda/partRequests.py", line 202, in toEntry
device = self.getDevice(partitions)
File "/usr/lib/anaconda/partitioning.py", line 124, in partitioningComplete
entry = request.toEntry(anaconda.id.partitions)
File "/usr/lib/anaconda/dispatch.py", line 207, in moveStep
rc = stepFunc(self.anaconda)
File "/usr/lib/anaconda/dispatch.py", line 130, in gotoNext
self.moveStep()
File "/usr/lib/anaconda/dispatch.py", line 229, in currentStep
self.gotoNext()
File "/usr/lib/anaconda/text.py", line 677, in run
(step, instance) = anaconda.dispatch.currentStep()
File "/usr/bin/anaconda", line 980, in ?
anaconda.intf.run(anaconda)
AttributeError: 'NoneType' object has no attribute 'size'
The partition section from the kickstart configuration file changed in the following way:
part raid.31 --size=12805 --asprimary --onpart=sda1
part raid.32 --size=12805 --asprimary --onpart=sdb1
#raid pv.01 --device=md3 --level=1 raid.31 raid.32
raid /sw --device=md3 --fstype=ext3 --level=1 raid.31 raid.32
#volgroup vg pv.01
#logvol /data --vgname=vg --name=data --size=40960 --fstype=ext3 --fsoptions="acl,user_xattr,noatime,nodiratime"
#logvol /sw --vgname=apvg --name=sw --size=8192 --fstype=ext3 --fsoptions="acl,user_xattr,noatime,nodiratime"
Resolution
Remove the LVM information from both legs of the software raid devices using:
# dd if=/dev/zero of=/dev/sdaX bs=512 count=10
Diagnostic Steps
From the anaconda.log the LVM information is present on the devices to be used.
22:44:41 DEBUG : done starting mpaths. Drivelist: ['sde', 'sdd', 'sda', 'sdb', 'sdc']
22:44:41 DEBUG : adding drive sde to disk list
22:44:41 DEBUG : adding drive sdd to disk list
22:44:41 DEBUG : adding drive sda to disk list
22:44:41 DEBUG : adding drive sdb to disk list
22:44:41 DEBUG : adding drive sdc to disk list
22:44:41 DEBUG : using preexisting size of 120800.0 for volume group vg
22:44:41 DEBUG : using preexisting size of 120800.0 for volume group vg
22:44:41 INFO : moving (1) to step partitiondone
22:44:42 INFO : Running kickstart %%traceback script(s)
22:44:42 INFO : All kickstart %%traceback script(s) have been run
22:44:42 CRITICAL: Traceback (most recent call first):
File "/usr/lib/anaconda/partRequests.py", line 811, in getDevice
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
