Installing onto existing LVM partition causes traceback

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

 



Hi list,

CentOS 5.1, x86_64, while trying to reinstall a machine, trying to keep existing LVM vgs. The below disk section causes anaconda to stop with a traceback. The machine's 4 disks are divided thusly:

sd[ab]1: RAID1, 100MB, for /boot; erase during install
sd[ab]2: RAID1, 15GB, for 'dom0' volume group; don't erase during install
   dom0 volume group; don't erase during install
      root logvol; erase and reformat existing lv during install
sd[ab]3: swap partitions
sd[ab]4: RAID1, 735GB; sd[cd]1: RAID1, 750GB; don't erase during install
   vg1 volume group; don't erase during install
      many existing logical volumes that shouldn't be erased

The traceback occurs both when creating both the dom0 and vg1 volume groups. If the 'volgroup' line is commented out or the '--noformat' option is removed, the kickstart will continue. I left the original, working lines in, commented out, for information.

In the traceback, anaconda stops like this (I copied what I hope is the useful information):

   AttributeError: 'NoneType' object has no attribute 'size'
   /var/lib/anaconda/partRequests.py line 774, getDevice
       if (r.size > 0) or (r.device is not None):
   /var/lib/anaconda/partRequests.py line 192, toEntry
device = self.getDevice <http://dcantrel.fedorapeople.org/anaconda/API/devel/d5/db7/classpartRequests_1_1RequestSpec.html#9b0731cd35a514741676c2e932bcd3c2>(partitions)
   /var/lib/anaconda/partitioning.py line 80, partitioningComplete
       entry = request.toEntry(anaconda.id.partitions)

What is wrong with the code? I haven't found anyone with this same error by googling. Plenty of folks have had trouble reusing existing devices in the past, but they didn't experience tracebacks. Thanks for looking.

   John

# disk:  for reinstall
bootloader --location=mbr --driveorder=sda,sdb
clearpart --none
# /boot:  raid1/md0 on sd[ab]1 (100MB)
part raid.00 --onpart=sda1 --noformat
part raid.01 --onpart=sdb1 --noformat
raid /boot --fstype ext3 --level=1 --device=md0 raid.00 raid.01
# /:  lvm/dom0 (5G) on raid1/md1 (15G) on sd[ab]2
part raid.10 --onpart=sda2 --noformat
part raid.11 --onpart=sdb2 --noformat
#raid pv.01 --level=1 --device=md1 raid.10 raid.11 # original line at first install
raid pv.01 --level=1 --device=md1 raid.10 raid.11 --noformat
#volgroup dom0 pv.01    # original line at first install
volgroup dom0 pv.01 --noformat
#logvol / --name=root --vgname=dom0 --size=5000 --fstype=ext3 # original line at first install
logvol / --name=root --vgname=dom0 --useexisting  --fstype=ext3
# swap
part swap --onpart=sda3
part swap --onpart=sdb3
# vg1
part raid.20 --onpart=sda4 --noformat
part raid.21 --onpart=sdb4 --noformat
raid pv.02 --noformat --level=1 --device=md2 raid.20 raid.21
part raid.30 --onpart=sdc1 --noformat
part raid.31 --onpart=sdd1 --noformat
raid pv.03 --noformat --level=1 --device=md3 raid.30 raid.31
#volgroup vg1 pv.02 pv.03 --useexisting --noformat
#logvol /d/distro/centos --fstype=ext3 --vgname=vg1 --name=dist-centos --useexisting --noformat #logvol /d/distro/fedora --fstype=ext3 --vgname=vg1 --name=dist-fedora --useexisting --noformat #logvol /d/distro/as --fstype=ext3 --vgname=vg1 --name=dist-as --useexisting --noformat

_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list

[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux