Red Hat Bugzilla – Bug 613478
Anaconda wrongly complains when trying to clone disk partitioning for a mirror software RAID
Last modified: 2010-07-12 09:36:19 EDT
Description of problem:
I have a machine with disks /dev/sda and /dev/sdb.
The partitioning shall be simple:
/dev/sda = [ sda1 ][ sda2 ]
/dev/sdb = [ sdb1 ][ sdb2 ]
with /dev/sda1 as /boot
/dev/sdb1 as /xboot (basically, a throwaway)
and a software RAID1 on /dev/sda2 + /dev/sdb2
[I'm working from notes here so this is just "as near as I noted it down". Will try again after Fedora 13 is running using a new pair of disks]
Step 1: Partition /dev/sda in anaconda
/dev/sda1 => 200 MiB, force primary partition
/dev/sda2 => remainder of disk, make it a "RAID partition"
Step 2: Clone /dev/sda's structure to /dev/sdb
"Create Software RAID" -
"RAID Clone" - Source "/dev/sda", Target: "/dev/sdb"
Anaconda says: "The source drive you selected has
partitions which are not constrained to the drive /dev/sda"
This is wrong, all the partitions on /dev/sda have been explicitly constrained to be on /dev/sda. It is also irrelevant as I want to clone /dev/sda to /dev/sdb.
Workaround: Give up on the drive cloning approach.
Create /boot, ext4, force primary, 200 MiB on /dev/sda --> yields /dev/sda1
Rest of /dev/sda: mark as software RAID, froce primary --> yields /dev/sda2
Do exactly the same on /dev/sbd (using /xboot as mountpoint)
Then combine /dev/sda1 and /dev/sdb1 into /dev/md0 RAID1
On this hardware, tried twice.
Clone mode has apparently been broken at least as far back as our big storage rewrite, receives little use, and no testing. For those reasons, we've simply removed this feature for F14.