Reuse existing partitions

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

 



I am attempting to reuse the partitions on our setup.  I have six partitions over two disks.  The server is configured like this.

sda1,sdb1 -> raid1 mirror, mounted on /
sda2,sdb2 -> raid1 mirror, mounted as swap
sda3      -> LVM
sdb3      -> LVM

I want to preserve the layout of the disks, and the data on sda3, and sdb3.  I don't care about the data on sda1, sdb1, sda2, and sdb2, and I want to reinstall on sda1, sdb1, sda2, and sdb2 given the current layout.  I fed Anaconda the following disk configuration hoping to achieve the above.

clearpart --none
partition raid.01 --asprimary --ondisk sda --size 10000 --onpart sda1
partition raid.02 --asprimary --ondisk sdb --size 10000 --onpart sdb1
raid / --level 1 --fsoptions="barrier=1" --device md0 raid.01 raid.02
partition raid.11 --size 512 --ondisk sda --onpart sda2
partition raid.12 --size 512 --ondisk sdb --onpart sdb2
raid swap --level 1 --device md1 raid.11 raid.12

That configuration yields the following back trace.

  File "/usr/lib/anaconda/partRequests.py", line 662, in getActualSize
    partsize = req.getActualSize(partitions, diskset)
  File "/usr/lib/anaconda/autopart.py", line 980, in processPartitioning
    request.size = request.getActualSize(requests, diskset)
  File "/usr/lib/anaconda/autopart.py", line 1008, in doPartitioning
    processPartitioning(diskset, requests, newParts)
  File "/usr/lib/anaconda/autopart.py", line 1476, in doAutoPartition
    doPartitioning(diskset, partitions, doRefresh = 0)
  File "/usr/lib/anaconda/dispatch.py", line 201, in moveStep
    rc = stepFunc(self.anaconda)
  File "/usr/lib/anaconda/dispatch.py", line 124, in gotoNext
    self.moveStep()
  File "/usr/lib/anaconda/dispatch.py", line 223, in currentStep
    self.gotoNext()
  File "/usr/lib/anaconda/text.py", line 539, in run
    (step, instance) = anaconda.dispatch.currentStep()
  File "/usr/bin/anaconda", line 970, in ?
    anaconda.intf.run(anaconda)
AttributeError: 'NoneType' object has no attribute 'getActualSize'


I am instrumenting Anaconda now to figure out what is going wrong, but I wanted to post to the newsgroup if someone else knows what I am doing wrong.


This is what I have learned so far.

Step partitionobjinit - All of the disk partitions are properly enumerated.  setFromDisk() creates PreexistingPartitionSpecs, and puts them in the correct type.

(My debug messages from getActualSize())
13:30:40 DEBUG   : request=Existing Part Request -- mountpoint: None uniqueID: 1
  type: software RAID  format: None  badblocks: None
  device: sda1 drive: sda  primary: None
  size: 10001.3730469  grow: 0  maxsize: None
  start: 63  end: 20482874  migrate: None    fslabel: None  origfstype: software RAID
  bytesPerInode: 4096  options: 'None'

Step autopartitionexecute -  When Anaconda iterates over the raid members it does a lookup by a uniqueID.  I can tell from my previous debug messages that those partitions exist for the given unique ID, but when it is executed this time through the partitions are gone?!?  Any ideas?

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux